Copy VM from one ESXi host to another

Я пользовался такой командой:

scp -p -r /vmfs/volumes/storagename/vmname/  root@remote.host.ip:/vmfs/volumes/storagename/vmname/

-r means recursive
-p preserves modification times, access times, and modes from the original file.

Enable SSH on the host you are copy VM from.
Enable SSH Client in destination host’s firewall.

Thanks to these guys: https://www.vhersey.com/2013/05/copy-files-between-esxi-hosts-using-scp/

 

Вот еще варианты:

var.1:

scp -v -c aes128-ctr -r /vmfs/volumes/datastore1/VMNAME* root@0.0.0.0:/vmfs/volumes/datastore1/VMNAME

var. 2:

Use OVFTOOL

syntax: ovftool.exe -ds=<datastore_name_on_target_host> vi://<source_host>/<vm_guest_name> vi://<target_host>

Example: ovftool.exe -ds=DS-1 vi://10.1.1.10/SRV-WSUS vi://10.1.1.15

https://community.spiceworks.com/how_to/124377-copy-vmware-guest-from-one-esxi-host-to-another

https://www.virtuallyghetto.com/2012/06/how-to-copy-vms-directly-between-esxi.html