NicolasGuilloux / blade-shadow-beta

Various documentation and tools for Shadow on Linux maintained by community
MIT License
119 stars 21 forks source link

Will not run on VMWare/Ubuntu 18.04 LTS guest #71

Closed jreichert closed 4 years ago

jreichert commented 4 years ago

Describe the bug Shadow client will not run on a VMWare Fusion installation with an Ubuntu 18.04 LTS guest. I have not tried this on Workstation but suspect the same problem may occur in that environment as well.

System

Configuration

To Reproduce Steps to reproduce the behavior:

Screenshots If applicable, add screenshots to help explain your problem.

Additional context I don't know much about Linux graphics drivers, but this may not be a solvable issue. I have ensured that I have all the required dependencies installed. However, I get this when I run vainfo:

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/vmwgfx_drv_video.so libva info: va_openDriver() returns -1 vaInitialize failed with error code -1 (unknown libva error),exit

I'm assuming this means that the vmwgfx video driver for VMWare doesn't support the API signatures expected by VA-API. A brief Google search didn't turn of any explicit confirmation of whether or not the driver provides this support. I tried to force the use of the i965 driver with export LIBVA_DRIVER_NAME=i965 in my .bashrc, but the vainfo just gave me this:

libva info: VA-API version 1.1.0 libva info: va_getDriverName() returns 0 libva info: User requested driver 'i965' libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_1_1 DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument Assuming 131072kB available aperture size. May lead to reduced performance or incorrect rendering. get chip id failed: -1 [22] param: 4, val: 0 vainfo: intel_memman.c:38: intel_memman_init: Assertion `intel->bufmgr' failed. Aborted (core dumped)

If there's some clever solution here I can't think of then great; otherwise, this should probably go on the "known issues" page.

aarnoud commented 4 years ago

shadow requires a direct access to an hardware decoder, means it could only work on a VM with a GPU passthrough.