Put the VM name in the window title and assign it to the process

This commit is contained in:
Martin Wimpress 2020-03-19 15:24:27 +00:00
parent cdb4c12170
commit c664baaf08
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3

View file

@ -30,6 +30,7 @@ function vm_snapshot() {
} }
function vm_boot() { function vm_boot() {
local VMNAME=$(basename ${VM} .conf)
local BIOS="" local BIOS=""
local GL="on" local GL="on"
local UI="sdl" local UI="sdl"
@ -135,7 +136,8 @@ function vm_boot() {
#echo " - QEMU: qemu-${ENGINE}" #echo " - QEMU: qemu-${ENGINE}"
# Boot the iso image # Boot the iso image
qemu-${ENGINE} ${BIOS} \ qemu-${ENGINE} -name ${VMNAME},process=${VMNAME} \
${BIOS} \
-cdrom "${iso}" \ -cdrom "${iso}" \
-drive "file=${disk_img},format=qcow2,if=virtio,aio=native,cache.direct=on" \ -drive "file=${disk_img},format=qcow2,if=virtio,aio=native,cache.direct=on" \
-enable-kvm \ -enable-kvm \