Connecting VMs to Their Disks
In any case in which the datastore fails to map to the VM after migration, use the following procedure to remap the
VMX files.
STEP 1
Connect directly to the ESX host service console, logging in as root.
STEP 2
List path and names of registered VM .vmx files on the current host. Run the command: vmware-cmd -l
STEP 3
Register the virtual machine from the ESX command line using:
vmware-cmd -s register
/vmfs/volumes/<datastore>/<virtual_machine_directory>/<virtual_machine_name>.
vmx
Where:
• <datastore> represents the datastore name
• <virtual_machine_directory> represents the directory containing the virtual machine files
• <virtual_machine_name> represents the name of the virtual machine files.
The following is an example:
vmware-cmd -s register /vmfs/volumes/Storage1/vm1/vm1.vmx
A return code =1 signals success.
Here is an example of using the VIM command:
#vim-cmd solo/registervm /vmfs/vol/datastore/dir/vm.vmx
Using the directory in the example above:
#vim-cmd solo/registerv /vmfs/volumes/Storage1/vm1/vm1.vmx
Drobo ! 2460 North First Street, Suite 100, San Jose, CA ! www.drobo.com ! 1.866.97.DROBO
Copyright 2012 Drobo, Inc. Data Robotics, Drobo, DroboEllite, DroboPro, BeyondRAID, and Smart Volumes are trademarks of
Drobo, Inc., which may be registered in some jurisdictions. All other trademarks used are owned by their respective owners.
All rights reserved. Specifications subject to change without notice. ! HT-0028-01 ! April 2012