SPICE and virtio-gpu

blademckain

Member
Apr 15, 2020
5
0
6
44
It is possibile use spice and virtio-gpu under proxmox ?

the spice documetation say:
"
Using QEMU
You need to add a virtio-gpu device on QEMU command line, as well as enable GL with SPICE. port/tls-port/addr arguments won’t be used in this setup. You need to configure a Unix socket to connect to the VM display.
-device virtio-vga,virgl=on -spice gl=on,unix,addr=/run/user/1000/spice.sock
"
 
you could use spice with virtio-gpu i guess, but you would have to put those things in the 'args' parameter
but gl acceleration will not work, we do not compile our qemu against it

also spice with gl acceleration (virgl/virglrenderer) only works (afaik) locally over a unix socket not over the network
 
another solution for a VM game ( only arcade game like retroarch ) ?
did you try with plain SPICE + QXL ? it renders with software but has basic gl functions, maybe it is fast enough?

otherwise there is always pci passthrough and streaming
 
Sorry to bring this back to the living but... was wondering if it is possible to use SPICE with 2 or 3 monitor support along with a vGPU already working on the VM!?
I have the following on the append line:
Code:
args: -device 'vfio-pci,sysfsdev=/sys/bus/mdev/devices/e133cc5e-cae8-11ec-8351-9f082ed0f623,display=off,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,x-pci-vendor-id=0x10de,x-pci-device-id=0x1bb0' -uuid 00000000-0000-0000-0000-000000000180

Thanks for any help you might give or pointing me in the right direction.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!