VMware

This Question is Answered

1 "helpful" answer available (6 pts)
3 Replies Last post: Nov 6, 2009 11:45 AM by RDPetruska  

Resize Fixed Size VMDK posted: Nov 6, 2009 11:35 AM

Click to view mike16's profile Novice 9 posts since
Mar 6, 2007
Im trying to resize a vmhd. I know I have to convert it to a new vmhd to do so. Ive been searching for a little while and got a good idea on how to do it, but something must be wrong in my syntax.

Here's what I have.

C:\Virtual Machines\VM1>"c:\Program Files\VMware\VMware Server\vmware-vdiskmanager.exe" -r VM1.vmdk -t 2 -s 14GB VM1_reduced.vmdk

from what I think the syntax is, convert VM1.vmdk into a fixed disk (-t 2), size 14GB, new name of VMDK

but when I run that, it stays the original size which is about 16GB. (Yes there is free space available in the host which is a windows 2003 server OS)

Any thoughts?

Re: Resize Fixed Size VMDK

1. Nov 6, 2009 11:40 AM in response to: mike16
Click to view RDPetruska's profile Guru 15,877 posts since
Jan 11, 2005

I think you are trying to do 2 steps with 1 command, which you cannot do. If you want, you can use my Windows GUI wrapper for the vmware-vdiskmanager utility, to avoid syntax errors (and invalid commands). See my profile for website.

Realize that once you have expanded the vmdk file, you will also have to (inside the guest) either create a new partition, or extend the existing partition, to fill that new blank space.

Re: Resize Fixed Size VMDK

3. Nov 6, 2009 11:45 AM in response to: mike16
Click to view RDPetruska's profile Guru 15,877 posts since
Jan 11, 2005
Ahh... you cannot reduce the maximum defined size of a virtual disk with vmware-vdiskmanager (or any other VMware tool, for that matter). You must create a new virtual disk and ghost/clone the existing disk over to the new one; then replace the original disk with the new one in your VM.

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities