Humanity

Edit the world by your favorite way

LXCで「mknod: `//tmp/udev.EgkS50/ppp': Operation not permitted」とか出る場合

こんなエラーが出る場合。

Populating the new /dev filesystem temporarily mounted on /tmp/udev.EgkS50/...
mknod: `//tmp/udev.EgkS50/ppp': Operation not permitted

Install fuse powered filesystems within an LXC container | web development in a nutshell


以下の記事に書いてあるけど、/var/lib/lxc//configでいくつかのデバイスファイルのmknodを許可する必要がある。

#ppp
lxc.cgroup.devices.allow = c 108:0 rwm
#fuse
lxc.cgroup.devices.allow = c 10:229 rwm
#loop0
lxc.cgroup.devices.allow = b 7:0 rwm
#tun
lxc.cgroup.devices.allow = c 10:200 rwm

Install fuse powered filesystems within an LXC container | web development in a nutshell


...これ前にも書いた気がするけど一応。
ていうか引用ばっかだな...