vmdev2009
Contributor
Contributor

Problem in using vmware-vdiskmanager

I downloaded the Virtual Disk Managersdk and created a new virtual disk with the follwoing options

vmware-vdiskmanager -c -a lsilogic -s 40GB -t 0 mydisk.vmdk

then i tired mounting this newly created disk using this command

vmware-mount J: "C:\My Virtual Machines\Windows98\Windows98.vmdk"

i got this error

Unable to mount the virtual disk. The disk may be in use by a virtual

machine, may not have enough volumes or mounted under another drive

letter. If not, verify that the file is a valid virtual disk file.

can someone point what i am doing wrong?

thanks,

mohit

0 Kudos
5 Replies
rahqa
VMware Employee
VMware Employee

On Windows hosts, you can mount volumes formatted with FAT (12/16/32) or NTFS only.

Refer http://www.vmware.com/support/developer/vddk/vddk111_diskmount.pdf

(page 7)

0 Kudos
vmdev2009
Contributor
Contributor

how do u format a newly created disk ?

0 Kudos
rahqa
VMware Employee
VMware Employee

The VMDK needs to be attached to a VM that has Operating system, and gets formatted at the OS level.

So what you create using vmware-vdiskmanager is just a vmdk file, and when you copy into a VMFS datastore and then add the same to a VM, after which you format the same.

I hope i answered your query right.

vmdev2009
Contributor
Contributor

Is there any set of api's to do the formating of vmdk disk it programatically ?

0 Kudos
rahqa
VMware Employee
VMware Employee

As far as i know, not at least in VDDK.

0 Kudos