VMware Communities
mattad
Enthusiast
Enthusiast

How to merge multiple *.vmdks into one with vmware-diskmanager (syntax)?

As I heard vmware-diskmanager is able to merge/append multiple related *.vmdks into ONE target *.vmdk.

E.g.

mint-s001.vmdk

mint-s002.vmdk

....

mint-s008.vmdk

--->

mint.vmdk

How is the exacty command syntax for such an operation?

Matt

0 Kudos
4 Replies
WoodyZ
Immortal
Immortal

If you execute vmware-vdiskmanager without any parameters it displays internal help info and the syntax for converting a "twoGbMaxExtentSparse" disk to a "monolithicSparse" disk is:

vmware-vdiskmanager -r sourceDisk.vmdk -t 0 destinationDisk.vmdk

Also do not do this if the VM has Snapshots and if your not sure then archive (compress) and attach the vmware.log files (usually 4 of them) from the Virtual Machine.

Also have a look at: Virtual Disk Manager User's Guide

WoodyZ
Immortal
Immortal

Note:  If the name of the sourceDisk.vmdk and destinationDisk.vmdk are going to be the same then the destinationDisk.vmdk must be created in a different location then the sourceDisk.vmdk!  You can swap it out after the conversion. Smiley Wink

0 Kudos
AWo
Immortal
Immortal

If you mean to convert a splitted vmdk in one file....

Check: http://pubs.vmware.com/vsphere-50/topic/com.vmware.vddk.utils.doc_50/diskutils_diskmgr.5.3.html

This command converts (-r) a disk to the type defined by -t:

vmware-vdiskmanager -r <sourcedisk> -t <0|2|4|5|6> <targetdisk>

AWo

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos
aaronfranke
Contributor
Contributor

"vmware-vdiskmanager -r sourceDisk.vmdk -t 0 destinationDisk.vmdk"

My Terminal's contents:

aaronfranke@aaron-xubuntu:~/vmware/Windows 9$ ~/Downloads/vmware-vix-disklib-distrib/bin64/vmware-vdiskmanager -r "Windows 9.vmdk" -t 2 "Windows9.vmdk"

VixDiskLib: Invalid configuration file parameter. Failed to read configuration file.

DLSYM: Failed to resolve SSLv2_method: /usr/lib/vmware/lib/libssl.so.1.0.1/libssl.so.1.0.1: undefined symbol: SSLv2_method

The core dump limit is set to ZERO; no core dump should be expected

Core dumped.

A core file is available in "/home/aaronfranke/vmware/Windows 9/core"

VMware Virtual Disk Development Kit Error:

VMware Virtual Disk Development Kit unrecoverable error: (vthread-4)

DLSYM: Failed to resolve SSLv2_method: /usr/lib/vmware/lib/libssl.so.1.0.1/libssl.so.1.0.1: undefined symbol: SSLv2_method

A log file is available in "/tmp/vmware-aaronfranke/vmware-6012.log". 

You can request support. 

To collect data to submit to VMware technical support, run "vm-support".

We will respond on the basis of your support entitlement.

aaronfranke@aaron-xubuntu:~/vmware/Windows 9$

VMware issue - Pastebin.com

Why isn't it working?

0 Kudos