need custom /dev entries in LXC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

We run nvidia devices inside libvirt-managed LXC containers.

It used to be that simply doing:

$ echo 'c 195:* rwm' > /sys/fs/cgroup/devices/libvirt/lxc

Then, after booting the container, we would do:

$ mknod -m 666 /dev/nvidia0 c 195 0

.... would be good enough to run our CUDA applications.

But, according to:

$ cat src/lxc/lxc_container.c

The CAP_MKNOD capability is being dropped and only a specific
set of devices is being created before booting the container.

Is there any reason why this is not per-device configurable?

Thanks,
- Michael R. Hines

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]