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
#####################################################
Convert OVA to OVF using OVFTool
ovftool.exe "D:\vm.ova" "D:\vm.ovf"
Export using OVFTool
a)Export from ESXi:
ovftool.exe --noSSLVerify vi://Host_IP/VM_name "D:\Exported_VM.ova"
b)Export from vCenter:
ovftool.exe --noSSLVerify "vi://username@vCenter.example.com/Datacenter/vm/VM Folder/VM_Name" "D:\Exported_VM.ova"
Deploy using OVFTool
a)Deploy ova/ovf templates to ESXi:
ovftool.exe --noSSLVerify --name=VM_Name --datastore=Datastore_name --diskMode=Disk_mode_options --network="PortGroup" C:\Package.ova vi://root@esxi.example.org
b)Deploy ova/ovf templates to vCenter:
ovftool.exe --noSSLVerify --name=VM_Name --datastore=Datastore_name --diskMode=Disk_mode_options --network="PortGroup" C:\Package.ova vi://username@vCenter.example.org/Datacenter_name/host/Cluster_name/esxi.example.org
#####################################################
Source:
0 comments:
Post a Comment