On Fri, Mar 11, 2011 at 10:13 PM, Daniel Lezcano <daniel.lezc...@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
      lxc-start 1299884178.168 DEBUG    lxc_console - using '/dev/tty' as console
      lxc-start 1299884178.168 DEBUG    lxc_start - sigchild handler set
      lxc-start 1299884178.168 INFO     lxc_start - 'c0' is initialized
      lxc-start 1299884178.197 DEBUG    lxc_cgroup - using cgroup mounted at '/cgroup'
      lxc-start 1299884178.197 DEBUG    lxc_cgroup - cgroup flags is 0x1
      lxc-start 1299884178.197 WARN     lxc_cgroup - using deprecated ns_cgroup
      lxc-start 1299884178.197 DEBUG    lxc_cgroup - '/cgroup/2756' renamed to '/cgroup/c0'
      lxc-start 1299884178.197 INFO     lxc_conf - 'c0' hostname has been setup
      lxc-start 1299884178.197 DEBUG    lxc_conf - mounted '/lxc/c0/' on '/opt/lxc//lib/lxc/rootfs'
      lxc-start 1299884178.198 DEBUG    lxc_conf - mounted 'none' on '/opt/lxc//lib/lxc/rootfsproc', type 'proc'
      lxc-start 1299884178.198 INFO     lxc_conf - mount points have been setup
      lxc-start 1299884178.198 INFO     lxc_conf - console has been setup
      lxc-start 1299884178.198 INFO     lxc_conf - 0 tty(s) has been setup
      lxc-start 1299884178.198 DEBUG    lxc_conf - mountpoint for old rootfs is '/opt/lxc//lib/lxc/rootfs/mnt'
      lxc-start 1299884178.198 DEBUG    lxc_conf - pivot_root syscall to '/opt/lxc//lib/lxc/rootfs' successful
      lxc-start 1299884178.198 DEBUG    lxc_conf - umounted '/mnt/dev/pts'
      lxc-start 1299884178.198 DEBUG    lxc_conf - umounted '/mnt/dev/shm'
      lxc-start 1299884178.198 DEBUG    lxc_conf - umounted '/mnt/proc/bus/usb'
      lxc-start 1299884178.198 DEBUG    lxc_conf - umounted '/mnt/proc/sys/fs/binfmt_misc'
      lxc-start 1299884178.198 DEBUG    lxc_conf - umounted '/mnt/sys'
      lxc-start 1299884178.199 DEBUG    lxc_conf - umounted '/mnt/lxc'
      lxc-start 1299884178.199 DEBUG    lxc_conf - umounted '/mnt/boot'
      lxc-start 1299884178.199 DEBUG    lxc_conf - umounted '/mnt/cgroup'
      lxc-start 1299884178.199 DEBUG    lxc_conf - umounted '/mnt/opt/lxc/lib/lxc/rootfsproc'
      lxc-start 1299884178.199 DEBUG    lxc_conf - umounted '/mnt/dev'
      lxc-start 1299884178.199 DEBUG    lxc_conf - umounted '/mnt/proc'
      lxc-start 1299884178.199 DEBUG    lxc_conf - umounted '/mnt'
      lxc-start 1299884178.199 DEBUG    lxc_conf - capabilities has been setup
      lxc-start 1299884178.199 NOTICE   lxc_conf - 'c0' is setup.
      lxc-start 1299884178.199 NOTICE   lxc_start - exec'ing '/bin/ps'
      lxc-start 1299884178.201 NOTICE   lxc_start - '/bin/ps' started with pid '2756'
      lxc-start 1299884178.201 DEBUG    lxc_utmp - Added '/proc/2756/root/var/run' to inotifywatch
      lxc-start 1299884178.226 DEBUG    lxc_start - container init process exited
      lxc-start 1299884178.226 INFO     lxc_error - child <2756> ended on error (47)
      lxc-start 1299884178.226 DEBUG    lxc_cgroup - using cgroup mounted at '/cgroup'
      lxc-start 1299884178.243 DEBUG    lxc_cgroup - '/cgroup/c0' unlinked
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to