intel / gvt-linux

Other
512 stars 94 forks source link

How to use GPU head instead of SPICE/VNC? #89

Open renne opened 5 years ago

renne commented 5 years ago

Hi,

is it possible to assign a GPU head to a KVM guest instead of using a SPICE/VNC?

snir911 commented 5 years ago

Hi,

Yes, on local display, but you can still use spice/vnc (configured a bit differently) to connect to it see https://github.com/intel/gvt-linux/wiki/Dma_Buf_User_Guide (seems not really up to date)

renne commented 5 years ago

Is it possible to write the graphic output directly into the framebuffer of a head without Xserver and network on the hypervisor?

Examples:

Core i5-7500 + B150

Celeron G4900 + B360

snir911 commented 5 years ago

Do you mean that guest has no Xserver? If i understood you correctly you can do that with spice

renne commented 5 years ago

In the Core i5-7500 + B150 scenario the host runs a Xserver per seat. So three physical GPUs have to be emulated for a 3x multi-seat system.

In the Celeron G4900 + B360 scenario the host is console only and a Xserver runs inside the KVM guest (e.g. LibreElec).

cagnulein commented 5 years ago

@renne yes it's possible You can run a X session for each output and running on X session a spice session of X VM

so for example:

Core i5-7500 + B150

DVI-D = Seat0 --> X :0 DP++ 1 = Seat1 --> X :1 DP++ 2 = Seat2 --> X :2 Celeron G4900 + B360

DVI-D = Host --> X :0 DP++ 1 = KVM guest 1 --> X :1 DP++ 2 = KVM guest 2 --> X :2

Is it ok for you?

renne commented 5 years ago

I'd like to avoid network overhead and network dependency. A virtual GPU with hardware acceleration (especially h.264, h.265, VP9) per head would be great. See above comment.

cagnulein commented 5 years ago

@renne https://looking-glass.hostfission.com/ ?