infra-generale/migrate_to_mother_p2p.sh

8 lines
236 B
Bash
Executable File

#!/bin/bash
vm=$1
echo MIGRATING $vm ...
virsh migrate --p2p $vm --live --verbose --undefinesource --persistent --copy-storage-all --abort-on-error qemu+ssh://mother.onlink/system
sudo mv /var/backups/vm/aunt/* /var/backups/vm/mother