[Lxc-users] /dev/null permission denied

stutiredboy stutiredboy at gmail.com
Mon Jul 1 10:12:46 UTC 2013


Host OS: Debian Wheezy
VM: Debian Wheezy

run lxc-start -n testing -f /home/lxc/testing/config

shows:

INIT: version 2.88 booting
/etc/init.d/rc: 424: /lib/lsb/init-functions: cannot create /dev/null:
Permission denied
/etc/init.d/rc: 85: /etc/init.d/rc: cannot create /dev/null: Permission
denied
mount: permission denied
/etc/rcS.d/S02hostname.sh: 424: /lib/lsb/init-functions: cannot create
/dev/null: Permission denied
hostname: you must be root to change the host name
/etc/rcS.d/S02mountkernfs.sh: 424: /lib/lsb/init-functions: cannot create
/dev/null: Permission denied


ls -alh /home/lxc/testing/rootfs/dev/null
crw-rw-rw- 1 root root 1, 3 Jul  1 17:54 /home/lxc/testing/rootfs/dev/null

try:

rm /dev/null
mknod -m 666 /dev/null c 1 3

but still got cannot create /dev/null: Permission denied

my lxc config file:

lxc.cgroup.cpuset.cpus = 0,1

lxc.utsname                             = testing
lxc.rootfs                              = /home/lxc/testing/rootfs
lxc.arch                                = x86_64
lxc.tty                                 = 6
lxc.pts                                 = 1024

lxc.cap.drop                            = mac_admin
lxc.cap.drop                            = mac_override
lxc.cap.drop                            = sys_admin
lxc.cap.drop                            = sys_module
lxc.cgroup.devices.allow                = c *:* rwm
lxc.cgroup.devices.allow                = b *:* rwm



lxc.mount.entry                         = proc
/var/lib/lxc/testing/rootfs/proc proc nodev,noexec,nosuid 0 0
lxc.mount.entry                         = sysfs
/var/lib/lxc/testing/rootfs/sys sysfs defaults,ro 0 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130701/d9d3180a/attachment.html>


More information about the lxc-users mailing list