VMware Communities > VMware Developer > Forums > Virtual Disk Development Kit > Discussions

This Question is Answered

2 "helpful" answers available (6 pts)
7 Replies Last post: Dec 16, 2008 3:12 AM by sumanmshan
Reply

syntax for vmware-mount.exe

Apr 24, 2008 4:08 PM

Click to view continuum's profile Guru continuum 12,265 posts since
Dec 18, 2003


I'd like to mount a vmdk on an ESX 3.5 and try something like
vmware-mount.exe Q: /h:10.0.0.35 /u:root /s:password /i: ???? xp-sp2.vmdk
How do I specify /i ?

What does
Unable to get a Vim ticket for this virtual machine
mean ?

___________________________________

description of vmx-parameters: http://sanbarrow.com/vmx.html
VMware-liveCD: http://sanbarrow.com/moa.html

Reply Re: syntax for vmware-mount.exe Apr 24, 2008 4:34 PM
Click to view sudarsan's profile Expert sudarsan 263 posts since
Sep 20, 2006
VMware
/i is the inventory path of the vm.

Also the disk path should include the datastore name like "storage2 yourvm/harddisk1.vmdk"

The attached picture should clarify the above - it shows an example with VC - Note the vm after the datacenter name.

For ESX, it is similar, but the datacenter name is always ha-datacenter. So the path would look like ha-datacenter/vm/<vm path>

Thanks
Sudarsan
Attachments:
Reply Re: syntax for vmware-mount.exe Apr 24, 2008 4:59 PM
in response to: sudarsan
Click to view continuum's profile Guru continuum 12,265 posts since
Dec 18, 2003
I don't get it ?

Thanks for the screenshot - but how do I specify for an ESX host ?

I tried
vmware-mount Q: /i:"ha-datacenter/esx305.localdomain/vm/xp-sp2" "local12gigs xp-sp2/xp-sp2.vmdk" /h:10.0.0.35 /u:root /s:password /v:1

Storage name is 'local12gigs' and the editor for disks displays 'local12gigs xp-sp2/xp-sp2.vmdk'

___________________________________

description of vmx-parameters: http://sanbarrow.com/vmx.html
VMware-liveCD: http://sanbarrow.com/moa.html

Reply Re: syntax for vmware-mount.exe Apr 24, 2008 5:05 PM
in response to: continuum
Click to view sudarsan's profile Expert sudarsan 263 posts since
Sep 20, 2006
VMware
What is esx305.localdomain in your command line?

I am guessing this would work:

vmware-mount Q: /i:"ha-datacenter/vm/xp-sp2" "local12gigs xp-sp2/xp-sp2.vmdk" /h:10.0.0.35 /u:root /s:password /v:1

-Sudarsan
Reply Re: syntax for vmware-mount.exe Apr 24, 2008 5:07 PM
in response to: sudarsan
Click to view sudarsan's profile Expert sudarsan 263 posts since
Sep 20, 2006
VMware
[ seems special, so let us try this again.

vmware-mount Q: /i:"ha-datacenter/vm/xp-sp2" "[local12gigs] xp-sp2/xp-sp2.vmdk" /h:10.0.0.35 /u:root /s:password /v:1
Reply Re: syntax for vmware-mount.exe Apr 25, 2008 6:59 AM
in response to: sudarsan
Click to view continuum's profile Guru continuum 12,265 posts since
Dec 18, 2003

Thanks a lot - got it working now.
Hey - this new option is pretty useful for a cold clone cd - now you can clone large data disks by copying just the data you want with robocopy

Ulli

___________________________________

description of vmx-parameters: http://sanbarrow.com/vmx.html
VMware-liveCD: http://sanbarrow.com/moa.html

Reply Re: syntax for vmware-mount.exe Dec 10, 2008 3:23 AM
in response to: sudarsan
Click to view singhpdeep's profile Lurker singhpdeep 2 posts since
Oct 3, 2008
I'm also facing same problem and I want to use this command pl. help me out how I can use this command I'm not understanding this so if possblie help me out in details how to use this command.

PS
Reply Re: syntax for vmware-mount.exe Dec 16, 2008 3:12 AM
in response to: sudarsan
Click to view sumanmshan's profile Lurker sumanmshan 1 posts since
Dec 16, 2008

Hi all,

I am trying to mount a remote disk(.vmdk) to my local machine which is also linux.

Iam using the follwoing command to mount the disk:

vmware-mount -v ha-datacenter/vm/TestVM -h 10.0.0.1 -u root -F password "DataStoreName TestVM/TestVM.vmdk" /mountPoint

But its not mounting the disk and throwing the following error:

Failed to open disk: Unknown error (1)
Failed to mount disk "DataStoreName TestVM/TestVM.vmdk" : Cannot open the virtual disk

can anyone help me out at this stage, where do I go wrong???

Thank you.

Suman


Actions