[lxc-devel] lxc 0.7.4 does not mount anything

Daniel Lezcano daniel.lezcano at free.fr
Fri Mar 11 21:13:09 UTC 2011


On 03/11/2011 08:47 PM, richard -rw- weinberger wrote:
> hi,
>
> i'm using this minimal config:
> lxc.utsname = c0
> lxc.mount.entry = none /lxc/c0/proc proc defaults 0 0
> lxc.rootfs = /lxc/c0/
>
> but lxc does not mount proc into /lxc/c0/proc.
> using lxc.mount = /path/to/fstab also does not work.
> it's also not only proc, it does not mount anything.
>
> mounting within the container works fine.
> but i want do drop cap_sys_admin.
>
> to test the issue i'm using this command:
> strace -f /opt/lxc/bin/lxc-start -n c0 -- /bin/ps>  log.txt 2>&1
>
> /bin/ps writes:
> Error, do this: mount -t proc none /proc
> so, /proc is not mounted.
> i double checked it using /bin/bash as init...
>
> log.txt is attached. you can see proc gets never mounted to /lxc/c0/proc/
>
> is this a configuration error or a bug?

Hi Richard,

can you give the output of the log file in DEBUG mode ?

lxc-start -o <file> -l DEBUG -n ...

<file> can be $(tty)




More information about the lxc-devel mailing list