To migrate all running VPSes to another host, do the following:

for x in `virsh list | grep running | awk {'print $2'}`; do echo "Migrating $x"; virsh migrate-setspeed $x --bandwidth 1000 && virsh migrate $x qemu+ssh://USERNAME@HOSTNAME/system; sleep 10; done

Remember to change “USERNAME” and “HOSTNAME”.