Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
epic0421 opened this issue May 9, 2024 · 0 comments

Comments

@epic0421
Copy link

epic0421 commented May 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant