VA-API on VM dont work!

Sub7

Well-Known Member
Jan 13, 2018
30
4
48
49
Hey,

VA-API shows an error on VM,
can someone help me please.;)
need that for my FFmpegUI project (https://github.com/Sub-7/FFmpegUI)

vainfo on VM Ubuntu 18.04:
error: can't connect to X server!
libva info: VA-API version 1.1.0
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

LXC & Ubuntu 18.04 (same HW) OK
error: can't connect to X server!
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.1.0
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileH264MultiviewHigh : VAEntrypointVLD
VAProfileH264MultiviewHigh : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileH264StereoHigh : VAEntrypointEncSlice
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointEncSlice
VAProfileVP9Profile2 : VAEntrypointVLD

bootdisk: scsi0
cores: 12
cpu: host
hostpci1: 03:00,pcie=1
ide2: none,media=cdrom
machine: q35
memory: 13000
name: MakeMKV2
net0: virtio=02:4C:CD:A3:7B:3E,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: OS-SSD:vm-501-disk-0,size=200G
scsihw: virtio-scsi-pci
smbios1: uuid=8e29b973-032d-4e8b-a38b-3944ac8f91cc
sockets: 1
vga: virtio,memory=512
vmgenid: f94c92bd-084b-4fd9-8e3e-089c70bfb846

by-path
card0
renderD128

Architektur: x86_64
CPU Operationsmodus: 32-bit, 64-bit
Byte-Reihenfolge: Little Endian
CPU(s): 12
Liste der Online-CPU(s): 0-11
Thread(s) pro Kern: 1
Kern(e) pro Socket: 12
Sockel: 1
NUMA-Knoten: 1
Anbieterkennung: GenuineIntel
Prozessorfamilie: 6
Modell: 158
Modellname: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
Stepping: 10
CPU MHz: 3696.000
BogoMIPS: 7392.00
Hypervisor-Anbieter: KVM
Virtualisierungstyp: voll
L1d Cache: 32K
L1i Cache: 32K
L2 Cache: 4096K
L3 Cache: 16384K
NUMA-Knoten0 CPU(s): 0-11
Markierungen: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ssbd ibrs ibpb fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves arat

00:01.0 VGA compatible controller: Red Hat, Inc. Virtio GPU (rev 01)
Subsystem: Red Hat, Inc. Virtio GPU
Kernel driver in use: virtio-pci
 
I have it :D
agent: 1
bios: ovmf
boot: cdn
bootdisk: scsi0
cores: 12
cpu: host
efidisk0: OS-SSD:vm-500-disk-0,size=4M
Nvidia > hostpci0: 01:00,x-vga=1,pcie=1,rombar=0
Intel IGD > hostpci1: 00:02.0
hostpci2: 05:00
machine: q35
memory: 9480
name: MakeMKV
net0: virtio=A6:B5:CF:87:27:8D,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: OS-SSD:vm-500-disk-1,size=300G
scsihw: virtio-scsi-pci
smbios1: uuid=07bb6441-0e78-413e-a72f-9af15014aa6e
sockets: 1
vga: none
vmgenid: 141158b3-c2de-4099-952c-30c8973caf3c
 

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!