[lxc-devel] lxc 0.7.4 does not mount anything

richard -rw- weinberger richard.weinberger at gmail.com
Fri Mar 11 21:24:56 UTC 2011


On Fri, Mar 11, 2011 at 10:13 PM, Daniel Lezcano <daniel.lezcano at free.fr> wrote:
> 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 ...

sure, please see attached file...

> <file> can be $(tty)
>

-- 
Thanks,
//richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lxc-start.log
Type: text/x-log
Size: 2946 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20110311/bcb09d5d/attachment.bin>


More information about the lxc-devel mailing list