[Lxc-users] provide access to GPU capabilites to container

Guillaume Thouvenin guillaume.thouvenin at polymtl.ca
Wed Feb 20 19:28:03 UTC 2013


John <lxc at jelmail.com> a écrit :

>> lxc.cgroup.devices.allow = c 195:* rwm  # for nvidia
> This is what I have too. I am on Arch Linux.
>>
>> I can start and log into my container. Then I created /dev/nvidia0,
>> /dev/nvidia1 and /dev/nvidiactl in the container.
> I have
>     /dev/nvidia0 c 195 0 mode 666
>     /dev/nvidiactl c 195 255 mode 666
>
> I install the packages in the container:
>     nvidia
>
> It look like you're doing the same as me so I can't see why it would not
> work.

Thanks for you answer. It confirms that my configuration should work. I 
will double check if all libraries are installed correctly in the LXC. 
I suspect that as the nvidia kernel drivers failed to install in the 
LXC some libraries can be missing.





More information about the lxc-users mailing list