[lxc-devel] lxc-start fails

Serge Hallyn serge.hallyn at ubuntu.com
Sat Jan 10 03:36:47 UTC 2015


Heh, I hesitate to say this because it's usually the butt of a joke,

but could you try rebooting and then starting the container?  Start it with
the -l info -o container.log options and show us the resulting container.log
file.

Quoting riya khanna (riyakhanna1983 at gmail.com):
> Yes. Logged in as root.
> 
> # ps -ef | grep lxc
>    68 0          0:00 lxc-start -n container -f lxc.conf -d -- /init
> 
> # id
> uid=0 gid=0
> 
> Thanks for the patch.
> 
> On Fri, Jan 9, 2015 at 3:55 PM, Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
> > Hm.  Below are you logged in as root?  Did you start the container
> > as root?  Can you show "ps -ef | grep lxc" and "id"?
> >
> > Thanks for verifying the below - I'll post a patch for that soon.
> >
> > -serge
> >
> > Quoting riya khanna (riyakhanna1983 at gmail.com):
> >> Yes, that works. Container starts BUT I get the following message:
> >> lxc-start: monitor.c: lxc_monitor_open: 213 connect : Connection refused
> >>
> >>
> >> # lxc-start --logfile container.log --logpriority info --name
> >> container -f lxc.conf -- /init
> >>
> >> lxc-start: monitor.c: lxc_monitor_open: 208 connect : backing off 10
> >> lxc-start: monitor.c: lxc_monitor_open: 208 connect : backing off 50
> >> lxc-start: monitor.c: lxc_monitor_open: 208 connect : backing off 100
> >>
> >> lxc-start: monitor.c: lxc_monitor_open: 213 connect : Connection refused
> >> lxc-start: lxc_start.c: main: 345 The container failed to start.
> >> lxc-start: lxc_start.c: main: 347 To get more details, run the
> >> container in foreground mode.
> >> lxc-start: lxc_start.c: main: 349 Additional information can be
> >> obtained by setting the --logfile and --logpriority options.
> >>
> >>
> >> On Fri, Jan 9, 2015 at 8:12 AM, Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
> >> > Quoting riya khanna (riyakhanna1983 at gmail.com):
> >> >> 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
> >> >
> >> > Hm.  Well that is an odd line.  Does it help if you change line 1517
> >> > to read
> >> >
> >> >         if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL)) {
> >> >
> >> > ?
> >> > _______________________________________________
> >> > lxc-devel mailing list
> >> > lxc-devel at lists.linuxcontainers.org
> >> > http://lists.linuxcontainers.org/listinfo/lxc-devel
> >> _______________________________________________
> >> lxc-devel mailing list
> >> lxc-devel at lists.linuxcontainers.org
> >> http://lists.linuxcontainers.org/listinfo/lxc-devel
> > _______________________________________________
> > lxc-devel mailing list
> > lxc-devel at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-devel
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel


More information about the lxc-devel mailing list