Skip to content

[FEAT] Native LXC compatibility #379

@wouldntyouknow

Description

@wouldntyouknow

Is this a new feature request?

  • I have searched the existing issues

Wanted change

Possibility to run the image in an LXC directly, instead of Docker.

Reason for change

Proxmox v9.1 now supports OCI Registry images as templates for LXC containers.
This is a great feature which can quickly gain popularity. With Webtop being one of my favorites, I just had to test it out.
And it works great, out of the box, by creating a new CT with this pulled template! Just had to create /dev/shm so Chromium could work.
I have passed through the GPU, which is visible, the below is the proper output for a GPU enabled LXC container:

abc@Test:/$ ls -la /dev/dri
total 0
drwxr-xr-x 2 root root         80 Nov 19 20:36 .
drwxr-xr-x 7 root root        440 Nov 19 20:49 ..
crw-rw---- 1 root video  226,   0 Nov 19 20:36 card0
crw-rw---- 1 root render 226, 128 Nov 19 20:36 renderD128

However, it does not seem to be utilized, vainfo output:

abc@Test:/$ vainfo
Trying display: wayland
Trying display: x11
error: can't connect to X server!
Trying display: drm
error: failed to initialize display

Any recommendations on what needs to be done? Intuitively it seems like the solution should be rather easy, but of course I can be wrong.
Also, in such a case, where would the env vars be passed to inside the container, furthermore, where is the log? Wonder if editing manually the files where the docker env vars end up would actually solve this.

Proposed code change

Don't think any code change is necessary, rather a question of documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions