Add option to use QXL driver

This is intended for use with Windows 10.
This commit is contained in:
Martin Wimpress 2020-03-21 01:33:56 +00:00
parent b41fbb38c6
commit d40840b7a8
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3
2 changed files with 11 additions and 2 deletions

View file

@ -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:

View file

@ -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} \
"$@"
}