2

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.

2
  • 1
    I suggest you put quotes around the file path arguments and try again.
    – haimg
    Jan 1, 2012 at 18:02
  • Yes Quotes and full path names, worked for me. Nov 21, 2016 at 8:18

4 Answers 4

1

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.

1

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

0

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.

0

I solved it using Command Prompt instead of PowerShell.
In both cases, with administrator privileges.
With PowerShell I kept getting that error, with the Prompt it worked right away.

I ran the command from C:\Program Files (x86)\VMware\VMware Workstation as per instructions, furthermore, I had no problems with the filename and path which contained spaces.

Hope to be of help to someone. 🤞

You must log in to answer this question.

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