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
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)
how do u format a newly created disk ?
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.
Is there any set of api's to do the formating of vmdk disk it programatically ?
As far as i know, not at least in VDDK.