I think i have got the point. I mount the partition with nodev option.
thanks.


2013/7/1 stutiredboy <stutired...@gmail.com>

> 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
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to