[lxc-users] Adding a host block device to a container

Fajar A. Nugraha list at fajar.net
Tue Sep 1 03:41:09 UTC 2015


On Tue, Sep 1, 2015 at 4:13 AM, Peter Steele <pwsteele at gmail.com> wrote:

> lxc.cgroup.devices.allow = b 8:3 rwm
>
> and restarted my container. This didn't seem to do the trick through.
> Running this command on the host however did do the trick:
>
> # mknod -m 777 /var/lib/lxc/test/rootfs.dev/sda3 b 8 3
>
> I assume the parameter lxc.cgroup.devices.allow is intended to do
> something like this in an automated fashion, and I'd rather use this
> parameter than running mknod explicitly. What am I missing?
>
>
Nope. lxc.cgroup allows you to create and access the block device, but you
still need to create the device node yourself.

-- 
Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150901/4f9e9517/attachment.html>


More information about the lxc-users mailing list