Skip to content

Adding instructions for device passthrough with LXC containers (unprivileged also) #982

Open
@epic0421

Description

As of Proxmox VE 8.2, a new option was added for device passthrough. This wiki page comes to mind for adding instructions for this but cannot test this with other hardware configurations.

Another great thing about this new method is that it works with unprivileged LXC containers.

Old method of allowing access to the Intel GPU in /etc/pve/lxc/x.conf

lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file

New method of allowing access to the Intel GPU in /etc/pve/lxc/x.conf

dev0: /dev/dri/card0,gid=44
dev1: /dev/dri/renderD128,gid=104

Got the GIDs by running cat /etc/group | grep -E 'video|render' in the PVE environment

2024-05-09_06 09 38

Or it can be done through the gui in the LXC container

2024-05-09_05 44 30
2024-05-09_06 06 26
2024-05-09_06 06 47

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions