diff --git a/blockcommit_all.sh b/blockcommit_all.sh index 19d0d72..71870ae 100755 --- a/blockcommit_all.sh +++ b/blockcommit_all.sh @@ -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 diff --git a/migrate_to_britt_p2p.sh b/migrate_to_britt_p2p.sh index 9af1dd3..5d61b8e 100755 --- a/migrate_to_britt_p2p.sh +++ b/migrate_to_britt_p2p.sh @@ -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