Added ISO and DRIVE variables to qemu

This commit is contained in:
cvoges12 2021-09-27 17:31:13 +00:00
parent 03c9b5b15d
commit 7f941344d2

View file

@ -6,7 +6,8 @@
# libvirt-daemon for /shrug
SPICE_PORT=5930
CHARDEV_ID='spicechannel0'
# change drive if needed (default: /dev/sdb)
DRIVE='/dev/sdb' # change drive if needed
ISO='win.iso'
qemu-system-x86_64 \
-enable-kvm \
-daemonize \
@ -16,8 +17,8 @@ qemu-system-x86_64 \
-net user,hostname=windowsvm \
-m 4G \
-boot d \
-cdrom win.iso \
-drive file=/dev/sdb,cache=none,if=virtio \
-cdrom ${ISO} \
-drive file=${DRIVE},format=raw,cache=none,if=virtio \
-vga qxl \
-device virtio-serial-pci \
-spice port=${SPICE_PORT},disable-ticketing=on \