This commit is contained in:
parent
5ffdc6a17e
commit
5669afdbc9
|
@ -1,8 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
count=$1
|
||||
VMs=$(sudo virsh list --state-running --name | sort -R)
|
||||
|
||||
#sudo aa-teardown
|
||||
sudo aa-teardown
|
||||
for vm in $VMs
|
||||
do
|
||||
path_vda=$(sudo virsh domblklist $vm | grep vda | cut -d" " -f 8)
|
||||
|
@ -35,4 +36,4 @@ do
|
|||
fi
|
||||
fi
|
||||
done
|
||||
#sudo systemctl restart apparmor.service
|
||||
sudo systemctl restart apparmor.service
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
vm=$1
|
||||
|
||||
echo MIGRATING $vm ...
|
||||
virsh migrate --p2p $vm --live --verbose --undefinesource --persistent --copy-storage-all --abort-on-error qemu+ssh://britt.libre-en-communs.org/system
|
||||
virsh migrate --p2p $vm --live --verbose --undefinesource --persistent --copy-storage-all --abort-on-error qemu+ssh://virt-user@britt.libre-en-communs.org:222/system
|
||||
|
|
Loading…
Reference in New Issue