Hardware transcoding in VM

johnvick

Member
Mar 1, 2022
27
3
8
67
Hi,

New user - I have Proxmox running on NUC clone gen 11 i7. I setup an Ubuntu 20.04 VM, installed vainfo (on host and in VM), docker, portainer and then jellyfin.

vainfo on host gives the expected result but in the VM:

root@proxmox-ubuntu:~# vainfo
error: can't connect to X server!
libva info: VA-API version 1.7.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
vaInitialize failed with error code -1 (unknown libva error),exit

So no hardware transcoding.

Any help to get this working is appreciated.
 
Did you PCI passthrough a GPU to your VM? Otherwise you won't be able to use hardware accelleration as your VM got no GPU, because VMs can'T access any hardware of the host.