VAAPI in a VM

MaxIO

New Member
Jan 24, 2018
3
0
1
Hi, everybody.

I didn't find any information in the forum or on Google:
I'm looking to run Intel VAAPI in a VM.
I can only see /dev/dri/renderD128 from the VM when I set "virtio" on display graphics, but vainfo and ffmpeg can't use the device.

Do you have any idea?

Thank you very much.

Code:
~# ls -lsha /dev/dri/
total 0
0 drwxr-xr-x   2 root root        80 janv. 18 16:42 .
0 drwxr-xr-x  19 root root      3,8K janv. 18 16:42 ..
0 crw-rw----+  1 root video 226,   0 janv. 18 16:42 card0
0 crw-rw----+  1 root video 226, 128 janv. 18 16:42 renderD128

Code:
~# vainfo
error: XDG_RUNTIME_DIR not set in the environment.
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
vaInitialize failed with error code -1 (unknown libva error),exit
 
Last edited:
vaapi is an API for video acceleration tasks, which requires driver & hardware (or virtual hardware) support. The only way for this to be useful is if you use GPU passthrough or a virtual GPU that supports it. It's possible that virtio-gpu will support this, but that part is still a work in progress and the required settings not exposed via our API.
 

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!