Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi I would like merge vmdk files into one single file. I use vmware-vdiskmanager.

I tried used this cmd

C:\Program Files (x86)\VMware\VMware Workstation>vmware-vdiskmanager -r C:\Users
\Mike\Documents\Virtual Machines\Windows Server 2008 R2 x64\Windows Server 2008 R
2 x64.vmdk -t 0 singlefile.vmdk
Diskname or some other argument is missing.
VMware Virtual Disk Manager - build 528992.
Usage: vmware-vdiskmanager.exe OPTIONS <disk-name> | <mount-point>

I don’t understand this error: Diskname or some other argument is missing. because I have file Windows Server 2008 R2 x64.vmdk in this location.

enter image description here

EDITED:

I tried this:

vmware-vdiskmanager.exe –r "C:\Users\Mike\Documents\Virtual Machines\Windows Server 2008 R2 x64\Windows Server 2008 R2 x64.vmdk" –t 0 "singlefile.vmdk"

and this

vmware-vdiskmanager.exe –r 'C:\Users\Mike\Documents\Virtual Machines\Windows Server 2008 R2 x64\Windows Server 2008 R2 x64.vmdk' –t 0 'singlefile.vmdk'

and last this

vmware-vdiskmanager.exe –r "C:\Users\Mike\Documents\Virtual Machines\Windows Server 2008 R2 x64\Windows Server 2008 R2 x64.vmdk" –t 0 "C:\Users\Mike\Documents\Virtual Machines\Windows Server 2008 R2 x64\singlefile.vmdk"

But error is same.

share|improve this question
    
I suggest you put quotes around the file path arguments and try again. – haimg Jan 1 '12 at 18:02

You have one mistake in your syntax.

Try this:

vmware-vdiskmanager.exe –r "C:\Users\Mike\Documents\Virtual Machines\Windows Server 2008 R2 x64\Windows Server 2008 R2 x64.vmdk" –t 0 singlefile.vmdk

Or you can create the new disk in a directory:

vmware-vdiskmanager.exe –r "C:\Users\Mike\Documents\Virtual Machines\Windows Server 2008 R2 x64\Windows Server 2008 R2 x64.vmdk" –t 0 "C:\Users\Mike\Documents\Virtual Machines\singlefile.vmdk"

But you have to run these commands in a console with administration rights.

share|improve this answer

I had the same problem. Unfortunately @Hadi's solution did not solve my issue. What did was cding to the directory where the vmdks were, and running the command from there.

I think the cause is that vmware-vdiskmanager.exe doesn't work with spaces in paths, possibly due to a problem with it's argument parser.

share|improve this answer

Do this

"C:\Program Files (x86)\VMware\VMware Workstation\vmware-vdiskmanager.exe" -r "C:\Users\Mike\Documents\Virtual Machines\Windows Server 2008 R2 x64\Windows Server 2008 R2 x64.vmdk" -t 0 singlefile.vmdk

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .