Re: [lxc-devel] lxc_veth_create() fails

2011-03-11 Thread richard -rw- weinberger
On Fri, Mar 11, 2011 at 7:55 AM, Daniel Lezcano wrote: > On 03/10/2011 10:45 PM, richard -rw- weinberger wrote: >> >> hi! >> >> i'm trying to use lxc 0.7.4 on centos 5.5 (kernel 2.6.37.3). >> >> lxc-start fails when i configure a network. >> e.g: >> lxc-start: failed to create vethivvZMG-vethGjB0l

[lxc-devel] lxc 0.7.4 does not mount anything

2011-03-11 Thread richard -rw- weinberger
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

Re: [lxc-devel] lxc 0.7.4 does not mount anything

2011-03-11 Thread Daniel Lezcano
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

Re: [lxc-devel] lxc 0.7.4 does not mount anything

2011-03-11 Thread Michael Tokarev
11.03.2011 22:47, richard -rw- weinberger пишет: > 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. >

Re: [lxc-devel] lxc 0.7.4 does not mount anything

2011-03-11 Thread richard -rw- weinberger
On Fri, Mar 11, 2011 at 10:06 PM, Michael Tokarev wrote: > 11.03.2011 22:47, richard -rw- weinberger пишет: >> 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/

Re: [lxc-devel] lxc 0.7.4 does not mount anything

2011-03-11 Thread Michael Tokarev
Daniel, this is this part: conf.c:mount_entry_on_absolute_rootfs(): aux = strstr(mntent->mnt_dir, rootfs->path); snprintf(path, MAXPATHLEN, "%s%s", rootfs->mount, aux + strlen(rootfs->path)); if rootfs->path ends with a slash we happily eat it, producing this in

Re: [lxc-devel] lxc 0.7.4 does not mount anything

2011-03-11 Thread richard -rw- weinberger
On Fri, Mar 11, 2011 at 10:13 PM, Daniel Lezcano 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 in

Re: [lxc-devel] lxc 0.7.4 does not mount anything

2011-03-11 Thread Daniel Lezcano
On 03/11/2011 10:23 PM, Michael Tokarev wrote: > Daniel, this is this part: > > conf.c:mount_entry_on_absolute_rootfs(): > > aux = strstr(mntent->mnt_dir, rootfs->path); > > snprintf(path, MAXPATHLEN, "%s%s", rootfs->mount, > aux + strlen(rootfs->path)); > > if r