You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 3, 2024. It is now read-only.
Since there is no display support in GVT-g, users have to use remote protocol to show guest desktop with installing a remote server in guest image, which is inconvenient.
A new feature called “Local display” has been supported in GVT-g (KVMGT only) by introducing “dma-buf”, a generic kernel level frame work to share buffers.
With this new feature, users can show the guest desktop using various method, such as spice and gtk.
2 Build environment
Build the "local display" environment including below steps:
a. Prepare for build
Install the needed libraries for local display, as below:
We have four recommend methods to connect VM with local display, "spicy", "gtk", "vnc" and "libvirt".
a. SPICY
"SPICY" is the spice client test application.
The usage is to add the display option "-display egl-headless -spice disable-ticketing,port=" and add "display=on,x-igd-opregion=on" into vgpu option ("-device vfio-pci,sysfsdev=xxx,..") into create VM command, the example of create VM script as below:
Then you can connect VM by below command ("5910" is the port number you used for create VM):
spicy -h localhost -p 5910
And the VM desktop will be showed in spicy windows.
b. GTK
"GTK" is a build-in UI in Qemu for VM display.
The usage is to add the display option "-display gtk,gl=on" and add "display=on,x-igd-opregion=on" into vgpu option ("-device vfio-pci,sysfsdev=xxx,..") into create VM command, the example of create VM script as below:
Then the VM desktop will be showed in Qemu windows directly.
c. VNC
"VNC" is a 3rd party remote access software.
The usage is to add the display option "-display egl-headless vnc :" and add "display=on,x-igd-opregion=on" into vgpu option vgpu option ("-device vfio-pci,sysfsdev=xxx,..") into create VM command, the example of create VM script as below: