Tuesday, November 11, 2008

Splitting your VMware virtual disk into multiple files of 2 GB

When I created my VMware image, I used only one file for the entire virtual disk (vmdk file). If you want to split your single virtual disk file into multiple files, then you can use the virtual disk manager that comes with VMware. This tool is the vmware-vdiskmanager.exe located in the VMware installation directory.

If you want to split your current virtual disk file into multiple files, use one of the following commands:

1. For a growable virtual disk, use the following command to split into 2 GB:
vmware-vdiskmanager.exe -r old.vmdk -t 1 new.vmdk
or

2. For a preallocated virtual disk, use the following command to split in 2 GB:
vmware-vdiskmanager.exe -r old.vmdk -t 3 new.vmdk

6 comments:

Ben said...

Great, thanks for the above. I have a 20GB pre-allocated virtual disk that I want to split so I can easily copy to my external FAT32 formatted USB drive and this should do just that.

Ben said...

Thanks for the above! I have a 20GB pre-allocated disk that I want to split into 2GB files so that I can copy to an external FAT32 USB drive and this should do just that.

Beto said...

I had the same problem that Ben had.
Thank you very much!!!

Anonymous said...

Beautiful! I was having issues copying larger files from one drive to another (nothing like a failure 97% of the way through a 160GB file and having to start over). Now I can split this up and improve the copy process.

Francesco said...

Very useful, Thank you.
Francesco

Anonymous said...

Thank you! worked like a charm. I split the disk and did not have to re-build the VM.