VMFAQ.com - FAQing about virtualization since 2008
Search:     Advanced search
Browse by category:
Contact Us

Can I grow an existing virtual disk (.vmdk file)?

Add comment
Views: 3758
Votes: 3
Comments: 0
Posted: 18 Jan, 2008
by: Huhtinen H.
Updated: 06 Jun, 2008
by: Huhtinen H.

A VMDK file can be grown while no virtual machine is using it. Growng the VMDK only makes the virtual harddrive bigger - filesystem within the VMDK must still be grown with other methods (for instance on Windows, diskpart).

On ESX:
vmkfstools -X <newsize>G filename.vmdk. On ESX 3.5, you can also edit the VM settings and edit the harddrive when the VM is not running.

Note that on ESX the filename.vmdk file is just a  file containing metainformation and "filename-flat.vmdk" is the actual data file. However, vmkfstools operations are used on the metafile

On VMware Server Workstation and VMware Fusion:
vmware-vdiskmanager -x <newsize>Gb filename.vmdk

 For instance, if growing an existing vmdk file named "server1.vmdk" and it is to be grown so it's new size is 20GB, the command would be:

On ESX:
vmkfstools -X 20GB server1.vmdk

On Server/Workstation/Fusion
vmware-vdiskmanager -x 20Gb server1.vmdk

On Fusion vmware-vdiskmanager is located by default at /Library/Application Support/VMware Fusion/vmware-vdiskmanager

Others in this Category
document My virtual machine's clock is inaccurate. What can be done to make it more accurate?
document Is a raw lun (RDM) faster than a VMDK on a VMFS? Does physical or virtual RDM mapping make a difference?
document How can I convert an existing computer into a virtual one? ..or a virtual machine into a physical one?
document "Invalid DSN" when trying to install 64 bit vCenter Server
document Need to mount a snapshotted LUN or a LUN that was suddenly lost
document Upgrading VMware Tools fails on Windows Server 2008 with the message "Error 1316. A network error occured while attempting to read from the file C:\Windows\Installer\VMware Tools.msi"
document I keep ketting strange com.vmware.vcIntegrity reconfiguration messages
document I'm trying to install ESX4, but it stalls at 26% then slowly goes up to 29% and then nothing happens
document I'm trying to install VMware Tools on Linux, but nothing happens
document Which hardware can I install ESX on?
» More articles



RSS