We can see from the output that the inventory ID for this VM is ‘9’Ĭheck if VMID ‘9’ has a snapshot: vim-cmd vmsvc/get.snapshot 9 List the inventory ID of the virtual machine ‘MartinWIN7’ which is being migrated to the new datastore: Log into the ESXi host as ‘root’ via SSH.Ģ. Note: Before proceeding ensure no snapshots are present on the VM being migrated.ġ. In this example a second RAID1 Mirror has been added to a standalone DELL Server and a new VMFS datastore has been created labelled ‘datastore2’: In this case you may use the vSphere VI Client datastore browser and copy/move the VM data files from one datastore to another or in the case outlined here you may use the CLI approach to migrate a specific VM to another datastore.
You may encounter a scenario where a vCenter server is not part of a solution and SVMotion is not an option to migrate a VM from one VMFS datastore to another.