Change Vhdx Size from a dynamic expanding  to smaller fixed.

noclav
noclav used Ask the Experts™
on
Hi,

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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Small Business IT Consultant
Commented:
Did you change the vhdx file type in vm properties to a fixed as well?
Lionel MMSmall Business IT Consultant

Commented:
the above should have resolved the issue if not let me know

Author

Commented:
yes but didnt work
Lionel MMSmall Business IT Consultant

Commented:
what happened?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial