Change Vhdx Size from a dynamic expanding to smaller fixed.

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?
noclavAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lionel MMSmall Business IT ConsultantCommented:
Did you change the vhdx file type in vm properties to a fixed as well?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Lionel MMSmall Business IT ConsultantCommented:
the above should have resolved the issue if not let me know
0
noclavAuthor Commented:
yes but didnt work
0
Lionel MMSmall Business IT ConsultantCommented:
what happened?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2012

From novice to tech pro — start learning today.