Avatar of noclav
 asked on

Change Vhdx Size from a dynamic expanding to smaller fixed.


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?
Windows Server 2012Hyper-V* Debian

Avatar of undefined
Last Comment
Lionel MM

8/22/2022 - Mon
Lionel MM

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Lionel MM

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

yes but didnt work
Lionel MM

what happened?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck