Add option to use QXL driver

This is intended for use with Windows 10.
pull/18/head
Martin Wimpress 5 years ago
parent b41fbb38c6
commit d40840b7a8
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
  1. 2
      README.md
  2. 11
      quickemu

@ -87,7 +87,7 @@ You can use `quickemu` to run a Windows 10 virtual machine.
iso="/media/$USER/Quickemu/windows10/Win10_1909_English_x64.iso"
driver_iso="/media/$USER/Quickemu/windows10/virtio-win-0.1.173.iso"
disk_img="/media/$USER/Quickemu/windows10/windows10.qcow2"
disk=128G
VIDEO_DRV="qxl"
```
* Use `quickemu` to start the virtual machine:

@ -202,6 +202,15 @@ function vm_boot() {
else
echo " - Display: ${xres}x${yres}"
fi
if [ "${VIDEO_DRV}" == "qxl" ]; then
echo " - Driver: QXL"
local VIDEO_DEV=" -vga ${VIDEO_DRV}"
VIRGL="off"
else
echo " - Driver: VirtIO-VGA"
local VIDEO_DEV="-device ${VIDEO_DRV},virgl=${VIRGL},xres=${xres},yres=${yres}"
fi
echo " - GL: ${GL}"
echo " - Virgil3D: ${VIRGL}"
echo " - Output: ${UI^^}"
@ -249,7 +258,7 @@ function vm_boot() {
-device qemu-xhci,id=xhci,p2=8,p3=8 -device usb-kbd -device usb-tablet \
-object rng-random,id=rng0,filename=/dev/urandom \
-device virtio-rng-pci,rng=rng0 \
-device virtio-vga,virgl=${VIRGL},xres=${xres},yres=${yres} \
${VIDEO_DEV} \
-display ${UI},gl=${GL} ${STATUSQUO} \
"$@"
}

Loading…
Cancel
Save