First you need to backup the vm you want to transfer using vzdump vzdump -dumpdir=./ 100  This will dump vm with the id 100 to your current directory Next compress the file and transfer it to the new server gzip vzdump-openvz-100-2017_09_24-22_14_55.tar scp vzdump-openvz-100-2017_09_24-22_14_55.tar.gz newserver:/vmbackups Now on the new server run these commands to restore the

When setting up servers I want to easily modify the ssh config.  This simple script can be pasted when you first login.  It will remove the lines from the config that match these, and then add the new lines into the config.  You can use this method to easily modify any other config files.