kasmtech / workspaces-core-images

https://www.kasmweb.com
Other
356 stars 121 forks source link

GPU / render support only kind of working (permissions?) #21

Closed happy-dirac closed 2 years ago

happy-dirac commented 2 years ago

Hi,

I ran into some kind of issue regarding GPU support.

image: kasmweb/ubuntu-focal-desktop:1.11.0 and anything built on kasmweb/core-ubuntu-focal:1.11.0 Host-OS: ubuntu-server 22.04 LTS

Expected behavior:

Observed behavior:

Other observations:

I assume this is some kind of permissions issue, however I could not find a fix/solution. I believe the kasm-agent somehow fixes it when initially launching a gpu-accelerated session, but handles it differently after reboot while still believing that the ressources are allocated. Main concern is that in case of a reboot of the host/server-OS, the user on the GPU-accelerated session is forced to delete the session and create a new one to regain hardware acceleration. However, for testing/development purposes it would also come in handy if it is possible to launch an image without having to "preinitialize" the host by launching a gpu-accelerated image through kasm.

I am not that much of a linux/permissions guru, therefore any idea for a fix or workaround is highly appreciated.

Best,

H.

happy-dirac commented 2 years ago

wrong place, i guess, please see: https://github.com/kasmtech/workspaces-issues/issues/272