Switch to transient service unit. Socket-triggering fails for now.

This commit is contained in:
Andreas B. Mundt 2023-09-13 19:32:25 +02:00
parent 8aca770c40
commit cb2ed82715
4 changed files with 38 additions and 22 deletions

View file

@ -96,7 +96,7 @@ create-clone() {
# and actually rename the vm (this also updates part of the storage path):
sed -i "s/${VM_NAME}/${VM_NAME}-clone/" "${VM_XML}"
# set virtiofs-Socket
sed -i "s:VIRTIOFSSOCKET:/run/virtiofs/${VM_NAME}-clone.sock:" "${VM_XML}"
sed -i "s:VIRTIOFSSOCKET:/run/user/${UID}/virtiofs-${VM_NAME}.sock:" "${VM_XML}"
}
QEMU='qemu:///session'