This commit is contained in:
Adrien Bourmault 2022-08-02 17:09:57 +02:00 committed by admin666
parent 5ffdc6a17e
commit 5669afdbc9
2 changed files with 4 additions and 3 deletions

View File

@ -1,8 +1,9 @@
#!/bin/bash #!/bin/bash
count=$1 count=$1
VMs=$(sudo virsh list --state-running --name | sort -R) VMs=$(sudo virsh list --state-running --name | sort -R)
#sudo aa-teardown sudo aa-teardown
for vm in $VMs for vm in $VMs
do do
path_vda=$(sudo virsh domblklist $vm | grep vda | cut -d" " -f 8) path_vda=$(sudo virsh domblklist $vm | grep vda | cut -d" " -f 8)
@ -35,4 +36,4 @@ do
fi fi
fi fi
done done
#sudo systemctl restart apparmor.service sudo systemctl restart apparmor.service

View File

@ -2,4 +2,4 @@
vm=$1 vm=$1
echo MIGRATING $vm ... 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