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:
\[ 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
/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/
Thanks
Sudarsan
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:
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
\[ 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
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:
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
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
After many hours of pulling my hair out, I finally managed to use vmware-mount on both our ESX and Vcenter. I hop this helps anyone that is as frustrated as i was ove this.
Items in RED are values that will come from your ESX/VCenter Server.
Mount directly to a ESX Host: (“ha-datacenter/vm” is a constant for VMWare Mount on all ESX Servers)
vmware-mount Z: /i:"ha-datacenter/vm/Windows XPc" "vmware:storage1 Windows XPc/Windows XPc.vmdk" /h:vmware /u:root /s:password /v:1 (/v only needed if you have more than 1 volume to mount)
See Screen Shot 002, this will fill in the details on where all the info came from.
Mount through Vcenter
vmware-mount z: /v:1 /i:"Main/vm/Discovered Virtual Machine/Windows XPc" "vmware:storage1 Windows XPc/Windows XPc.vmdk" /h:master
Note "Main", "Discovered Virtual Machine" are taken off the VCenter Server from the Virtual Machines & Templates area. Also notice the the addition of “vm’ not sure why that is that way, but it works. I also left off the /u:username /s:password because I was verified off my current Windows login. If you wanted to use another account, the format would be:
vmware-mount z: /v:1 /i:"Main/vm/Discovered Virtual Machine/Windows XPc" "vmware:storage1 Windows XPc/Windows XPc.vmdk" /h:master /u:username /s:password
or if you get a message that the login failed try:
vmware-mount z: /v:1 /i:"Main/vm/Discovered Virtual Machine/Windows XPc" "vmware:storage1 Windows XPc/Windows XPc.vmdk" /h:master /u:domain\username /s:password
See Screen Shot 004
Fyi: "Master" is my Vcenter located at 192.168.1.100 and "Vmware" is my VMWare host located at 192.168.1.250. I could of used IP Addresses instead.
Robert
Btw, also be sure that you are using the correct vmware-mount. The VMWare Disk Mount i downloaded from VMWare looks like it is only capable of mounting local disks. You can tell this by typing vmware-mount /?.
Output from the vmware-mount from VMWare DiskMount Utility:
VMware DiskMount Utility version 5.5.0 build-18463
Copyright (c) 1998-2003 VMware, Inc. All rights reserved.
This utility mounts VMware virtual disks under Microsoft Windows.
Use "VMware-mount" without arguments to list the currently-mounted volumes.
/d deletes the mapping to a virtual drive volume
/f forcibly deletes the mapping to a virtual drive volume
/v:N mounts volume N of a virtual disk
/p displays the partitions (volumes) on a virtual disk
/y open the virtual disk whether or not a snapshot is in effect
/n do not open the virtual disk if a snapshot is in effect
/? displays this usage information
Output from VMware Virtual Disk Development Kit:
VMware DiskMount Utility version e.x.p build-157900
Copyright (c) 1998-2008 VMware, Inc.All rights reserved.
This utility mounts VMware virtual disks under Microsoft Windows.
Use "VMware-mount" without arguments to list the currently-mounted volumes.
/v:N mounts volume N of a virtual disk (default=1)
/d deletes the mapping to a virtual drive volume
/f forcibly deletes the mapping to a virtual drive volume
/p displays the partitions (volumes) on a virtual disk (local disks only)
/L lists the currently-mounted volumes
/i:InventoryPath inventory path of the VM owning the virtual disk
/m:[w|n] mount in read-'w'rite or 'n'on-persistent mode
/h:host name or address of server to access managed virtual disk
/u:userid user name on the server
/s:password password on the server
/P:port# port number to access the server (default=902)
/? displays this usage information
If you do not specify the userid and password parameters when connecting to VC, the current logged on user credentials are use
Mount examples: Local mount
VMware-mount z: E:\My Virtual Machines\WinXP\Disk1.vmdk
VMware-mount /m:n z: E:\My Virtual Machines\WinXP\Disk1.vmdk
VMware-mount z: E:\My Virtual Machines\WinXP\Disk1.vmdk
Mount examples: Remote mount
VMware-mount z: "[storageX] MyVm/Disk1.vmdk" /i:"ha-datacenter/vm/MyVm" /h:myesx.domain.com /u:userid /s:password
VMware-mount z: "[storageX] MyVm/Disk1.vmdk" /i:"Folder Name/My Datacenter/vm/MyVm" /h:myvc.domain.com /u:userid /s:password
VMware-mount z: "[storageX] MyVm/Disk1.vmdk" /i:"Folder Name/My Datacenter/vm/MyVm" /h:myvc.domain.com /u:userid /s:password
VMware-mount z: "[storageX] MyVm/Disk1.vmdk" /i:"Folder Name/My Datacenter/vm/MyVm" /h:myvc.domain.com
Robert
Also note that the paths to your VM is case sensitive!
Thanks a lot for your details RWFnetworking, finaly it works for me to from VC
the documentation is wrong , the folder name position is not in the proper place
Original doc
VMware-mount z: "[storageX] MyVm/Disk1.vmdk" /i:"Folder Name/My Datacenter/vm/MyVm" /h:myvc.domain.com /u:userid /s:password
Correct Doc should be
VMware-mount z: "[storageX] MyVm/Disk1.vmdk" /i:"My Datacenter/vm/Folder Name/MyVm" /h:myvc.domain.com /u:userid /s:password
