0 Replies Latest reply on Mar 27, 2012 8:31 AM by aelsantex

    vmware-mount: The virtual machine cannot be found

    aelsantex Lurker

      Hello,

      I have a vmware datacenter and i have try to mount a disk from a source linux machine (vpnssllog) to another linux machine (webapplnx) the OS version on this machines are the same.

       

      i create a scripts and i run it:

       

      root@webapplnx:~$ vi vmMount.sh

      #!/bin/bash
      export LD_LIBRARY_PATH="/usr/lib/vmware-vix-disklib/lib64:$LD_LIBRARY_PATH"
      host="vceprdwin.corp.scmgroup.com"
      user="administrator"
      passwdfile="/root/vmpwd.txt"
      part_no="0"
      mount_dir="/mnt/xxx"
      img_path="[rimini_prod_vmfs_cml3850_03] vpnssllog/vpnssllog.vmdk"
      inv_path="SCM Group Rimini\vm\webapplnx"
      vmware-mount -v "${inv_path}" -u "${user}" -h "${host}" -F "${passwdfile}" "${img_path}" "${part_no}" "${mount_dir}"
      root@webapplnx:~$

      root@webapplnx:~$ ./vmMount.sh
      Failed to open disk: The virtual machine cannot be found (4000)
      Failed to mount disk '[rimini_prod_vmfs_cml3850_03] vpnssllog/vpnssllog.vmdk': Cannot open the virtual disk
      root@webapplnx:~$

       

      I take inv_path from the MOB (name field) and img_path from Edit settings of the virtual machine.

      From the log i take this messages:

       

      VixDiskLib: config options: libdir '/usr/lib/vmware', tmpDir '/tmp/vmware-root'.

      VixDiskLib: Attempting to locate advanced transport module in "/usr/lib/vmware/plugins64".

      VixDiskLib: Could not load default plugins from /usr/lib/vmware/plugins64/libdiskLibPlugin.so: Cannot open library: /usr/lib/vmware/plugins64/libdiskLibPlugin.so: cannot open shared object file: No such file or directory.

      DISKLIB-PLUGIN : Not loading plugin /usr/lib/vmware/plugins64: Not a shared library.

      VixDiskLib: Transport modes available: file:nbdssl:nbd.

      VixDiskLib: Advanced transport module not loaded.

      VMware VixDiskLib (5.0) Release build-427917

      >>>>>>>>> Starting FuseMount Process [PID: 3616] <<<<<<<<<

      UTIL: Change file descriptor limit from soft 1024,hard 1024 to soft 2048,hard 2048.

      --- Mounting Virtual Disk: [rimini_prod_vmfs_cml3850_03] vpnssllog/vpnssllog.vmdk ---

      Current user owns '[rimini_prod_vmfs_cml3850_03] vpnssllog/vpnssllog.vmdk'. Allowing mount.

      Disk flat file mounted under /var/run/vmware/fuse/7935656355595286143

      LIBFUSE   :Opening disk - vmSpec -vmPath=SCM Group Rimini\vm\webapplnx-, server -vceprdwin.corp.scmgroup.com-, disk -[rimini_prod_vmfs_cml3850_03] vpnssllog/vpnssllog.vmdk-

      VixDiskLibVimResolveHostName: Resolving IP address for hostname vceprdwin.corp.scmgroup.com.

      VixDiskLibVimResolveHostName: Resolved to 10.64.1.30.

      VixDiskLibVim: VixDiskLibVimLogin

      VixDiskLibVim: TicketFindVMByInvPath: vmxPath = -SCM Group Rimini\vm\webapplnx-

      VixDiskLibVim: TicketFindVMCb failure - VixError = 4000.

      VixDiskLibVim: VixDiskLibVimLogout

      LIBFUSE   : Failed to open disk: The virtual machine cannot be found (4000)

      Fuse initialization failed.

      Flat file '/var/run/vmware/fuse/7935656355595286143/flat' did not appear in the time limit.

      Maximum symlink level is 7

      Cannot link target dir (null): Bad address

      Failed to mount disk '[rimini_prod_vmfs_cml3850_03] vpnssllog/vpnssllog.vmdk': Cannot open the virtual disk

      VixDiskLib: VixDiskLib_Exit called. Unmatched Init calls so far: 1.

       

       

      Please Help me !!!