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