A virtual display can be attached to a virtual machine, letting a user see the content of it. It is a must-have for non-headless scenario.
Official ressource for
libvirt
-compatible displays, including various XML examples
The Simple DirectMedia Layer is a local-only low-latency display.
SDL is currently only avalable with virtual machines created using the QEMU/KVM User Session mode
As of now, this method is not compatible with Wayland
Mouse grab does not currently work in SDL
By default, SELinux will block access to X Windows Server for the virtualization stack. An exception has to be set.
sudo setsebool -P virt_use_xserver 1
sudo ausearch -c 'qemu-system-x86' --raw | audit2allow -M my-qemusystemx86
k
sudo semodule -X 300 -i my-qemusystemx86.pp
virtio-gpu
or vfio-pci
.<graphics type="sdl" display=":0.0">
<gl enable="yes"/>
</graphics>
You can identify your display using the following command:
echo $DISPLAY
The D-Bus display is only available since version 7.4.0 of
libvirt
D-Bus is a Desktop-oriented middleware that can be used to create a display for a virtual machine.
Detailed presentation on D-Bus
Does not display at the moment.
SELinux needs to be disabled.
<graphics type="dbus"/>
<p2p value="on"/>
<gl enable="yes"/>
</graphics>
It will look like that when launched:
<graphics type="dbus" address="unix:path=/run/user/1000/libvirt/qemu/run/dbus/8-user-d-bus-dbus.sock">
<gl enable="yes" rendernode="/dev/dri/renderD128"/>
</graphics>
<graphics type="dbus">
<audio id="1">
</graphics>