infra-generale/migrate_to_mother_p2p.sh

8 lines
236 B
Bash
Raw Normal View History

2022-05-21 00:18:32 +02:00
#!/bin/bash
vm=$1
2022-05-20 22:13:38 +02:00
2022-05-21 00:18:32 +02:00
echo MIGRATING $vm ...
virsh migrate --p2p $vm --live --verbose --undefinesource --persistent --copy-storage-all --abort-on-error qemu+ssh://mother.onlink/system
2022-05-20 22:13:38 +02:00
sudo mv /var/backups/vm/aunt/* /var/backups/vm/mother