Jump to content

Hardware Acceleration with LXC on Proxmox Server


Phreeak

Recommended Posts

Phreeak

Hi Volks,

I don't know if there is already an article on this, at least I haven't found one.

I have a Proxmox server with an inbuilt Intel 630 GPU. I will show you here how you can activate the hardware acceleration for it. 

!! This is how it works for me. There are probably better ways, but this is the way it works for me ;) 

I installed Emby with the LXC script from tteck (https://github.com/tteck) thanks for your work!

https://tteck.github.io/Proxmox/

If you install Emby via the script and are on the emby interface, you still have to make a few settings on Proxmox and the LXC container itself.

 

1. switch to your Proxmox instance and execute the following command:

2024-02-1117_40_02-pve-ProxmoxVirtualEnvironment.thumb.png.ba8171be95c9c3b743bda90540d533ec.png

nano /etc/modprobe.d/i915.conf

enter the following there:

options i915 enable_guc=3

and save the file.

 

2. reboot Proxmox

 

3. Still in the Proxmox instance, execute this command

nano /etc/pve/lxc/105.conf (You must adapt 105 to your LXC container!!)

2024-02-1117_43_42-pve-ProxmoxVirtualEnvironment.png.626cd53da7713515d31d669aa47f6006.png

Copy the following lines into the last position

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

save the file.

4. Still in the Proxmox shell, execute this command:

chmod -R 777 /dev/dri/*

5. Now switch to the shell of the Emby LXC container

2024-02-1117_50_03-pve-ProxmoxVirtualEnvironment.png.f9b670fdc05be22bb19c8c6c0dea3832.png

add the Emby user to the groups:

usermod -aG video emby
usermod -aG input emby
usermod -aG render emby

6. Restart your emby server

And here you go! 🤩🥳😍

2024-02-1117_57_09-Transkodieren.thumb.png.e50667d2f70573ba059b797b5b020457.png

  • Thanks 3
Link to comment
Share on other sites

cThumbs

This is a great guide and matches a Jellyfin one I've actually been using and that's reassuring.

My issue is that my emby is nested inside the LXC using docker, so far I can't work out how to pass the gpu through (i think it's Step 5 where I basically become stuck). Does anyone have any idea what I need to do to get this working for my set up?

Link to comment
Share on other sites

On 2/13/2024 at 6:28 AM, cThumbs said:

This is a great guide and matches a Jellyfin one I've actually been using and that's reassuring.

My issue is that my emby is nested inside the LXC using docker, so far I can't work out how to pass the gpu through (i think it's Step 5 where I basically become stuck). Does anyone have any idea what I need to do to get this working for my set up?

Hi, can you explain more about where you think you're stuck?

Link to comment
Share on other sites

  • 1 month later...
T_Tronix

Wonder if this is the same for someone with AMD Cpu and Nvidia GPU on a pcie

Link to comment
Share on other sites

richt

Assuming the "i915" used in the above config is referring to an intel driver, then no.

Link to comment
Share on other sites

  • 2 weeks later...
AriaGloris
On 2/12/2024 at 3:07 AM, Phreeak said:

chmod -R 777 /dev/dri/*

Was checking if anyone knows how to make this command stick if proxmox resets. After a server reboot, I have to run this command line again to bring back hardware transcoding.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...