<div dir="ltr"><div><div><div><div><div><div><div>Host OS: Debian Wheezy<br></div>VM: Debian Wheezy<br><br></div>run lxc-start -n testing -f /home/lxc/testing/config<br><br></div>shows:<br><br>INIT: version 2.88 booting<br>

/etc/init.d/rc: 424: /lib/lsb/init-functions: cannot create /dev/null: Permission denied<br>/etc/init.d/rc: 85: /etc/init.d/rc: cannot create /dev/null: Permission denied<br>mount: permission denied<br>/etc/rcS.d/S02hostname.sh: 424: /lib/lsb/init-functions: cannot create /dev/null: Permission denied<br>

hostname: you must be root to change the host name<br>/etc/rcS.d/S02mountkernfs.sh: 424: /lib/lsb/init-functions: cannot create /dev/null: Permission denied<br><br><br>ls -alh /home/lxc/testing/rootfs/dev/null<br>crw-rw-rw- 1 root root 1, 3 Jul  1 17:54 /home/lxc/testing/rootfs/dev/null<br>

<br></div>try:<br><br></div>rm /dev/null<br>mknod -m 666 /dev/null c 1 3<br><br></div>but still got cannot create /dev/null: Permission denied<br><br></div>my lxc config file:<br><br>lxc.cgroup.cpuset.cpus = 0,1<br><br>lxc.utsname                             = testing<br>

lxc.rootfs                              = /home/lxc/testing/rootfs<br>lxc.arch                                = x86_64<br>lxc.tty                                 = 6<br>lxc.pts                                 = 1024<br><br>

lxc.cap.drop                            = mac_admin<br>lxc.cap.drop                            = mac_override<br>lxc.cap.drop                            = sys_admin<br>lxc.cap.drop                            = sys_module<br>

lxc.cgroup.devices.allow                = c *:* rwm<br>lxc.cgroup.devices.allow                = b *:* rwm<br><br><br><br>lxc.mount.entry                         = proc /var/lib/lxc/testing/rootfs/proc proc nodev,noexec,nosuid 0 0<br>

lxc.mount.entry                         = sysfs /var/lib/lxc/testing/rootfs/sys sysfs defaults,ro 0 0<br></div>