In order to merge split vmdk files into one, you need to use the vmware-vdiskmanager command. However, this is only available if you have VMware Fusion or VMware Workstation installed. VMware Player doesn’t have this.
Luckily this little utility can be downloaded separately from the VMware site. It is the 1023856-vdiskmanager-windows-7.0.1.exe.zip
attachment that you will need.
Once downloaded, extract and rename 1023856-vdiskmanager-windows-7.0.1.exe
to vmware-vdiskmanager.exe
and copy or move to the directory where VMware Player is installed. For instance C:\Program Files (x86)\VMware\VMware Player
In order to merge vmdk files, open a Command Prompt and CD to the directory where the vmdk files are located. For instance CD \VMWareImages\MyImage
Assume you have the following vmdk files :
MyImage.vmdk
MyImage-s001.vmdk
MyImage-s002.vmdk
MyImage-s003.vmdk
MyImage-s004.vmdk
MyImage-s005.vmdk
MyImage-s006.vmdk
MyImage-s007.vmdk
MyImage-s008.vmdk
To merge them into one single vmdk file, use the following command:
C:\VMWareImages\MyImage>"\Program Files (x86)\VMware\VMware Player\vmware-vdiskmanager.exe" -r "MyImage.vmdk" -t 0 MyNewImage.vmdk
The new vmdk file will then be created:
Creating disk 'MyNewImage.vmdk'
Convert: 41% done.
Once done, either rename the original vmdk files or move them to a different directory. Finally rename MyNewImage.vmdk
to MyImage.vmdk
and you’re all set.
This is really helpful Thanks..can I also merge multiple vdisk files(not splitted) to single disk file(different partitions are installed on different disks)..
while merging second disk file, error comes “Failed to convert disk: The file already exists (0xc).”
It doesnt expand destination file.. Need help.
I’m not sure if you can merge different “unsplitted” vmdk files like that. But I can’t be entirely sure because I have never dealt with that particular situation before. Maybe Qemu has a utility that can do this: http://www.qemu.org/
I had to call vmware-vdiskmanager.exe with the most recent vmdk.
In the example above thst would be:
C:\VMWareImages\MyImage>”\Program Files (x86)\VMware\VMware Player\vmware-vdiskmanager.exe” -r “MyImage-s008.vmdk” -t 0 MyNewImage.vmdk
Koen,
I trawled the web looking for a way to merge multiple split vmdk files in VMWare Player, but all the hits assumed people had VMWare Fusion or Workstation. Not only have you answered my exact needs, but you have supplied clear instructions on how to perform the merge.
Many thanks!
Thanks so much for this – I knew there would be way but this was quick and simple!