[lxc-devel] lxc-start fails

riya khanna riyakhanna1983 at gmail.com
Fri Jan 9 02:18:03 UTC 2015


Hi,

I'm trying to start a container on busy box host.

lxc-start --logfile container.log --logpriority info --name L -f
lxc.conf -- /init

container.log shows the following error:
lxc_conf - conf.c:prepare_ramfs_root:1517 - Bad address - Failed to
make . rprivate

Any idea on what's wrong here?

my lxc.conf is as follows.

lxc.utsname = container
lxc.rootfs = rootfs
lxc.mount.entry=none rootfs/proc proc defaults 0 0
lxc.mount.entry=none rootfs/sys sysfs defaults 0 0
lxc.mount.entry=/dev rootfs/dev none bind 0 0

Using lxc version 1.1

mount shows the following

rootfs on / type rootfs (rw,size=368960k,nr_inodes=92240)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /sys/fs/cgroup type cgroup
(rw,relatime,cpuset,cpu,cpuacct,memory,devices,freezer,blkio,perf_event,debug,clone_children)
devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)

Looking at the source, the following function fails:

int prepare_ramfs_root(char *root)
{
...
    if (mount(".", NULL, NULL, MS_REC | MS_PRIVATE, NULL)) {
        SYSERROR("Failed to make . rprivate");
        return -1;
    }
...
}


More information about the lxc-devel mailing list