From e292b77ff2022d5c3dcf54a48e347d64deed2cf1 Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: Oct 12 2021 13:24:15 +0000 Subject: Pushing fix for kvm guest move Signed-off-by: Fabian Arrotin --- diff --git a/docs/tips/virtual_machines.md b/docs/tips/virtual_machines.md index 464ddb7..b47a3ad 100644 --- a/docs/tips/virtual_machines.md +++ b/docs/tips/virtual_machines.md @@ -33,7 +33,7 @@ ssh -J ${bastion_host} ${hypervisor} "sudo iptables -I INPUT -p tcp --dport 22 - ssh $hypervisor "sudo setfacl -m u:$USER:rwx /var/lib/libvirt/images ; sudo virsh shutdown $VM ; sleep 15 ;sudo chown $USER /var/lib/libvirt/images/${VM}.qcow2" # Ensuring now that we can also write to local/target hypervisor and starting to rsync -S (sparsify) the VM -sudo setfacl -m u:arrfab:rwx /var/lib/libvirt/images +sudo setfacl -m u:${USER}:rwx /var/lib/libvirt/images rsync -avS -4 --progress ${hypervisor}:/var/lib/libvirt/images/${VM}.qcow2 /var/lib/libvirt/images/${VM}.qcow2 ssh $hypervisor "sudo virsh dumpxml $VM" > /var/lib/libvirt/images/${VM}.xml