I’d like my linux container to have access to the host’s nvidia gpu. It’s a simple use case for my home lab. Searching around turned up a few tutorials and references. However, none of them strike me as on point. For instance, Graber’s explanation from 2017 would fit the bill, but it is surely outdated.
Ubuntu’s site also has this tutorial, but it is meant for Ubuntu 18.04.
Do I need to follow the instructions from theorangeone.net?
Or, maybe I should add access through PCI ID as discussed in this linux container forum post?
Host: Ubuntu 20.04 w/ Ryzen CPU and Nvidia GPU.
Container: Ubuntu 20.04