I am using VMware-mount command to mount a remote VM. Command used is –
VMware-mount K: "<VM Path>" /i:"<inventory path>" /h:<ESX server IP> /u:<username> /s:<pwd>
However I get the error as below in log file –
p 17 15:39:38.007: Cannot connect to server 10.0.4.110:43397024: No connection could be made because the target machine actively refused itSep 17 15:39:39.014: CnxAuthdConnect: Returning false because CnxAuthdConnectTCP failed
Sep 17 15:39:39.014: CnxConnectAuthd: Returning false because CnxAuthdConnect failed
Sep 17 15:39:39.014: Cnx_Connect: Returning false because CnxConnectAuthd failed
Sep 17 15:39:39.014: Cnx_Connect: Error message: Failed to connect to server 10.0.4.110:43397024
Sep 17 15:39:39.014: Warning: Sep 17 15:39:39.014: [NFC ERROR] NfcNewAuthdConnectionEx: Failed to connect to peer. Error: Failed to connect to server 10.0.4.110:43397024
Sep 17 15:39:39.015: NBD_ClientOpen: Couldn't connect to 10.0.4.110:43397024 Failed to connect to server 10.0.4.110:43397024
Sep 17 15:39:39.015: DISKLIB-DSCPTR: : "ha-nfc://[rblv1-dev-esx01 - Local] DB1/DB1-000003.vmdk@10.0.4.110:43397024" : Failed to open NBD extent.
Sep 17 15:39:39.015: DISKLIB-LINK : "ha-nfc://[rblv1-dev-esx01 - Local] DB1/DB1-000003.vmdk@10.0.4.110:43397024" : failed to open (NBD_ERR_NETWORK_CONNECT).
Sep 17 15:39:39.015: DISKLIB-CHAIN : "ha-nfc://[rblv1-dev-esx01 - Local] DB1/DB1-000003.vmdk@10.0.4.110:43397024" : failed to open (NBD_ERR_NETWORK_CONNECT).
Sep 17 15:39:39.015: DISKLIB-LIB : Failed to open 'ha-nfc://[rblv1-dev-esx01 - Local] DB1/DB1-000003.vmdk@10.0.4.110:43397024' with flags 0xa NBD_ERR_NETWORK_CONNECT (2338).
Vmount-client.log
Sep 17 15:36:23.772: Plugin Pkt details Size 292 PktType 2 DiskFile = ha-nfc://[rblv1-dev-esx01 - Local] DB1/DB1-000003.vmdk@10.0.4.110:39074816!52 81 22 2c 94 92 b0 7a-e9 3e 3f 65 06 49 2f 9d, vol = 0, Desired Drive = 1024, openFlags = 0
Sep 17 15:36:25.701: Plugin failed with 922
Sep 17 15:36:25.702: Client: 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
PluginVolume failed. Details: The queue you specified does not exist
Errorcode = -2.
Any help, suggestion on this will be appreciated.
Thanks,
Mrunalini
which vddk version do you use ?
I had similar problems with one of the latest - if not the latest version - using a previous one fixed all problems
Vmount.log
p 17 15:39:38.007: Cannot connect to server 10.0.4.110:43397024: No connection could be made because the target machine actively refused itSep 17 15:39:39.014: CnxAuthdConnect: Returning false because CnxAuthdConnectTCP failed
Sep 17 15:39:39.014: CnxConnectAuthd: Returning false because CnxAuthdConnect failed
Sep 17 15:39:39.014: Cnx_Connect: Returning false because CnxConnectAuthd failed
Sep 17 15:39:39.014: Cnx_Connect: Error message: Failed to connect to server 10.0.4.110:43397024
The user specified is privileged to do that ..?
Sep 17 15:36:25.702: Client: 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
- If not, verify that the file is a valid virtual disk file.
PluginVolume failed. Details: The queue you specified does not exist
Errorcode = -2
Looks like its in use by another virtual machine.
~dGeorgey
Also consider the following when you mount virtual disks:
with a virtual machine.
Linux virtual disks on Linux hosts. Cross‐mounting is restricted as described below.
only), VMware Workstation 6, 5, or 4, VMware Player, VMware ACE, VMware Fusion, VMware Server 2
or 1, and VMware GSX Server 3.x and 2.5. However you cannot mount encrypted virtual disks.
Change these attributes before mounting the virtual disk.
already in use on the host.
disk has a mix of partitions or volumes where,for example, a partition is unformatted or is formatted with
a Linux operating system and another partition is formatted with a Windows operating system, you can
mount the Windows partition with Disk Mount.
Windows you can mount previous snapshots read‐only. On Linux you cannotmountprevious snapshots.
Using VMware Disk Mount
Note ::
using any other VMware interface. Doing so makes it impossible to unmount the partition.
2. Disk Mount runs from the command line on any version of Windows 2000, WindowsXP,Windows Server
2003, or Windows Vista, as well as any version of Linux that is supported as a host for VMware Workstation
~dGeorgey
I am trying using root user, and VM is shutdown and so not in use.
Did you check the above conditions are met .?
~dGeorgey
@Georgey
Looks like this is an issue with return port, if you check the log - the port number exceeds the maximum value of 65536 which should not be the case
Hello dGeorgey,
2 Questions :
===========
1. Need help to understand the point "You can only mount disks that are in a powered off virtual machine,or disks that are not are not associated with a virtual machine."
- If currently the VM is pointing to <vm_name>-000003.vmdk then I can mount <vm_name>-000002.vmdk or <vm_name>-000001.vmdk right?
2. what is exactly meant by "If you specify a virtual disk with snapshots, this command locates and mounts the last snapshot. On
Windows you can mount previous snapshots read‐only." ? i can mount an intermediate snapshot or i cannot? do i require to specicy any parameter in the command to be able to do that?
Check whether some firewall is blocking?
-SatyS
How can i restrict the port number to 65536?
Looks like she was able to connect to default 902 and if you check 10.0.4.110:randomnumber - the port number is greater than 65535 🙂
Mukul the same has been explained here in the doc page #7; http://www.vmware.com/pdf/VMwareDiskMount.pdf
~dGeorgey
All the conditions you mentioned are satisfied. I have also made the Windows registry changes as mentioned in the link -
VMware KB: Port 8085 in VMware vCenter Server
However, it is still using some random port number which is too long. As mentioned by virtualtsm, it is able to communicate on 902 port but then some random return port causing an error?
which vddk version do you use ?
I had similar problems with one of the latest - if not the latest version - using a previous one fixed all problems
I tried with previous versions VDDK 5.0 and VDDK 1.2.2. For both version, i got the error -
(vmware-mount.exe:3412): Glib-GObject-CRITICAL **: file ..\..\..\gobject\gparam.
c: line 1048: assertion `param_name != NULL' failed
(vmware-mount.exe:3412): Glib-GObject-WARNING **: ???: object class `VmodlVimAbo
utInfo' has no property named `(null)'
(vmware-mount.exe:3412): Glib-GObject-CRITICAL **: file ..\..\..\gobject\gparam.
c: line 1048: assertion `param_name != NULL' failed
(vmware-mount.exe:3412): Glib-GObject-WARNING **: ???: object class `VmodlVimAbo
utInfo' has no property named `(null)'
An unexpected error has occurred.
Hey continuum, it worked with VDDK 5.0 version.
I reinstalled vddk 5.0 and this time it worked. thanks a lot for your suggestion