On Fri, Jul 27, 2018 at 08:06:59PM -0700, Forest wrote:
> Is there a way to use the new nvidia runtime passthrough feature with plain
> lxc containers?  That is, without lxd at all?  If so, can someone point me
> toward a doc on how to do this?

Not sure how much documentation there's out there about this, but it's
effectively just about adding the nvidia hook to your config and setting
a few environment variables to control its behavior.

https://github.com/lxc/lxc/blob/master/hooks/nvidia

This can be used with:

  lxc.hook.mount = /usr/share/lxc/hooks/nvidia

https://github.com/NVIDIA/nvidia-container-runtime has details for the
environment variables.

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com

Attachment: signature.asc
Description: PGP signature

_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to