troubleshooting Question

Change Vhdx Size from a dynamic expanding  to smaller fixed.

Avatar of noclav
noclav asked on
Windows Server 2012Hyper-V* Debian
4 Comments1 Solution276 ViewsLast Modified:

The situation: Windows Server 2012 Hyper-V host, with a debian Guest dynamically expanding Virtual Hard disk up to 128GB (deb.vhdx)

What I'm trying to do: Convert the deb.vhdx to a fixed disk with a size of 30GB and move it to a ssd drive.

I booted up with gparted and resized it but hyper v still sees the full size of 128. I tried converting to fix disk for the full amount and shrinking it via gparted and same thing. i also booted into the vm and ran this command sfill -fllz . and then shrank it via gparted and still hyper v still shows 128GB.

Is this possible to do with out imaging the partition to a new vhd?
Lionel MM
Small Business IT Consultant

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros