[lxc-devel] lxc-start fails

riya khanna riyakhanna1983 at gmail.com
Sat Jan 10 03:50:23 UTC 2015


Sorry about that. container.log below:

      lxc-start 1420861068.870 WARN     lxc_log -
log.c:lxc_log_init:316 - lxc_log_init called with log already
initialized
      lxc-start 1420861068.879 WARN     lxc_cgfs -
cgfs.c:lxc_cgroup_get_container_info:1100 - Not attaching to cgroup
cpuset unknown to /usr/local/var/lib/lxc container
      lxc-start 1420861068.889 INFO     lxc_start -
start.c:lxc_check_inherited:209 - closed inherited fd 4
      lxc-start 1420861068.905 INFO     lxc_start -
start.c:lxc_check_inherited:209 - closed inherited fd 4
      lxc-start 1420861068.911 INFO     lxc_lsm -
lsm/lsm.c:lsm_init:48 - LSM security driver nop
      lxc-start 1420861068.912 INFO     lxc_monitor -
monitor.c:lxc_monitor_sock_name:177 - using monitor sock name
lxc/69d2cd1be5952f52//usr/local/var/lib/lxc
      lxc-start 1420861068.913 ERROR    lxc_monitor -
monitor.c:lxc_monitor_open:208 - connect : backing off 10
      lxc-start 1420861068.918 DEBUG    lxc_start -
start.c:setup_signal_fd:247 - sigchild handler set
      lxc-start 1420861068.923 DEBUG    lxc_console -
console.c:lxc_console_peer_default:536 - no console peer
      lxc-start 1420861068.923 INFO     lxc_start -
start.c:lxc_init:443 - 'container' is initialized
      lxc-start 1420861068.926 DEBUG    lxc_start -
start.c:__lxc_start:1061 - Not dropping cap_sys_boot or watching utmp
      lxc-start 1420861068.927 INFO     lxc_cgroup -
cgroup.c:cgroup_init:65 - cgroup driver cgroupfs initing for container
      lxc-start 1420861068.932 ERROR    lxc_monitor -
monitor.c:lxc_monitor_open:208 - connect : backing off 50
      lxc-start 1420861068.947 DEBUG    lxc_cgfs -
cgfs.c:do_setup_cgroup_limits:1913 - cgroup 'devices.allow' set to 'a
# allow all first'
      lxc-start 1420861068.947 INFO     lxc_cgfs -
cgfs.c:do_setup_cgroup_limits:1917 - cgroup has been setup
      lxc-start 1420861068.959 DEBUG    lxc_conf -
conf.c:setup_rootfs:1478 - mounted '/home/riya/rootfs' on
'/usr/local/lib/lxc/rootfs'
      lxc-start 1420861068.959 INFO     lxc_conf -
conf.c:setup_utsname:900 - 'container' hostname has been setup
      lxc-start 1420861068.960 DEBUG    lxc_conf -
conf.c:check_autodev:3784 - Set exec command to /init
      lxc-start 1420861068.964 DEBUG    lxc_conf -
conf.c:mount_entry:1974 - mounted 'none' on
'/usr/local/lib/lxc/rootfs//proc', type 'proc'
      lxc-start 1420861068.965 DEBUG    lxc_conf -
conf.c:mount_entry:1974 - mounted 'none' on
'/usr/local/lib/lxc/rootfs//sys', type 'sysfs'
      lxc-start 1420861068.965 DEBUG    lxc_conf -
conf.c:mount_entry:1924 - remounting /dev on
/usr/local/lib/lxc/rootfs//dev to respect bind or remount options
      lxc-start 1420861068.965 DEBUG    lxc_conf -
conf.c:mount_entry:1939 - (at remount) flags for /dev was 0, required
extra flags are 0
      lxc-start 1420861068.965 DEBUG    lxc_conf -
conf.c:mount_entry:1948 - mountflags already was 4096, skipping
remount
      lxc-start 1420861068.965 DEBUG    lxc_conf -
conf.c:mount_entry:1974 - mounted '/dev' on
'/usr/local/lib/lxc/rootfs//dev', type 'none'
      lxc-start 1420861068.965 INFO     lxc_conf -
conf.c:mount_file_entries:2223 - mount points have been setup

      lxc-start 1420861068.992 ERROR    lxc_monitor -
monitor.c:lxc_monitor_open:208 - connect : backing off 100
      lxc-start 1420861069.103 ERROR    lxc_monitor -
monitor.c:lxc_monitor_open:213 - connect : Connection refused

      lxc-start 1420861069.104 ERROR    lxc_start_ui -
lxc_start.c:main:345 - The container failed to start.
      lxc-start 1420861069.104 ERROR    lxc_start_ui -
lxc_start.c:main:347 - To get more details, run the container in
foreground mode.
      lxc-start 1420861069.104 ERROR    lxc_start_ui -
lxc_start.c:main:349 - Additional information can be obtained by
setting the --logfile and --logpriority options.

On Fri, Jan 9, 2015 at 9:36 PM, Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
> 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
> _______________________________________________
> 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