Ssh – Download big files from ESXi

copyingscpsshvirtualizationvmware-esxi

I want to move one of my vm guest between two ESXi servers. I can't do this with converter or Veaam FastSCP because I'm in another network and using this tools is extremly slow. So I'm trying to copy files from one scp to one of servers in the same network using ssh and than send this file with ssh to second ESXi. I was trying to use scp(scp from esxi to server) on hole directory (recursively) with my vm guest but it hangs and do nothing. So I used mc to connect to esxi and download files after file. That goes quite well with small files. When I'm trying to download guest-flat.vmdk (16GB) I get error that file on remote host couldn't be read.

The guest vm is off. What could be the problem. How to do this ?

Best Answer

Add a NFS volume (e.g. exported from an utility host) to (both/all) of your ESXi servers, then copy the files within ESXi from one volume to the other.

As a side effect, you will have a backup on the NFS host.

Or, you can run the VM from the NFS volume on any connected ESXi host.