1st Method
Source : ESXi-01 - VM on this source must shutdown first before replicate/migrate
Destination : ESXi-02 - the destination server to host the replicate/migrate VM
The step:
1. Download OVF Tool - download from here https://developer.vmware.com/web/tool/4.4.0/ovf
2. Install OVF Tool (this guide using Windows)
3. In Windows open CMD windows - change to OVF Tools path
4. Run command : ovftool.exe -ds=datastorage vi://root@192.168.8.8/Corver vi://root@192.168.8.111
5. The process will run until the replicate/migrate complete
6. Then open the replicate/migrate VM in new ESXi-02 host
2nd Method
1. Enable SSH Service on Source and Destination ESXI Servers
#esxcli network firewall ruleset list --ruleset-id sshClient
#esxcli network firewall ruleset set --ruleset-id sshClient --enabled=true
2. Copy the VM from Source to Destination
#cd /vmfs/volumes/datastore1/
#scp -rv /vmfs/volumes/datastore1/VM_NAME root@xx.xx.xx.xx:/vmfs/volumes/datastore1/
3.Convert Thick Provisioning to Thin Provisioning
#cd /vmfs/volumes/datastore1/ VM_NAME
#vmkfstools -i VM_NAME.vmdk -d thin VM_NAME -thin.vmdk.
- Rename the old flat file to a different
- Rename the new flat file to a different name
4.Register the Migrated VM on the ESXI Host