[Lxc-users] reboot fail on natty container on natty host

KATOH Yasufumi karma at jazz.email.ne.jp
Wed Jun 1 10:33:02 UTC 2011


Hi,
Can you reboot on console by lxc-console in a container?
  HostOS: Ubuntu natty
  lxc version: 0.7.4-0ubuntu7.1

I make a natty container on natty host.
  # lxc-create -t natty -n natty01

I start the container, and run lxc-console, then run reboot on the console.
  # lxc-start -n natty01 -d -o log -l debug
  # lxc-console -n natty01
    : (snip)
  natty01 login: root
  Password: 
    : (snip)
  root at natty01:~# reboot
    : (snip)
  root at natty01:~# lxc-console: Input/output error - failed to read

But reboot failed, so container is stopped.
  # lxc-info -n natty01
  'natty01' is STOPPED

The log is as follows:

      (run reboot)
      lxc-start 1306922495.549 DEBUG    lxc_utmp - got inotify event 2 for utmp
      lxc-start 1306922495.551 DEBUG    lxc_utmp - utmp handler - run level is 2/6
      lxc-start 1306922495.551 DEBUG    lxc_utmp - Setting up utmp shutdown timer
      lxc-start 1306922495.551 DEBUG    lxc_utmp - Container rebooting
      lxc-start 1306922495.684 DEBUG    lxc_utmp - got inotify event 2 for utmp
      lxc-start 1306922495.684 DEBUG    lxc_utmp - utmp handler - run level is 2/6
      lxc-start 1306922495.685 DEBUG    lxc_utmp - got inotify event 2 for utmp
      lxc-start 1306922495.685 DEBUG    lxc_utmp - utmp handler - run level is 2/6
      lxc-start 1306922495.686 DEBUG    lxc_utmp - got inotify event 2 for utmp
      lxc-start 1306922495.686 DEBUG    lxc_utmp - utmp handler - run level is 2/6
      lxc-start 1306922495.689 DEBUG    lxc_utmp - got inotify event 2 for utmp
      lxc-start 1306922495.689 DEBUG    lxc_utmp - utmp handler - run level is 2/6
      lxc-start 1306922496.439 DEBUG    lxc_utmp - got inotify event 2 for utmp
      lxc-start 1306922496.440 DEBUG    lxc_utmp - utmp handler - run level is /
      lxc-start 1306922496.552 DEBUG    lxc_cgroup - using cgroup mounted at '/cgroup'
      lxc-start 1306922496.552 DEBUG    lxc_utmp - there are 4 tasks running
      lxc-start 1306922497.552 DEBUG    lxc_utmp - there are 4 tasks running
      lxc-start 1306922498.341 DEBUG    lxc_utmp - got inotify event 2 for utmp
      lxc-start 1306922498.341 DEBUG    lxc_utmp - utmp handler - run level is /
      lxc-start 1306922498.552 DEBUG    lxc_utmp - there are 1 tasks running
      lxc-start 1306922498.552 INFO     lxc_utmp - container has rebooted
      lxc-start 1306922498.552 DEBUG    lxc_utmp - Clearing utmp shutdown timer
      lxc-start 1306922498.564 DEBUG    lxc_start - container init process exited
      lxc-start 1306922498.570 INFO     lxc_error - child <4391> ended on signal (9)
      lxc-start 1306922498.571 DEBUG    lxc_cgroup - using cgroup mounted at '/cgroup'
      lxc-start 1306922498.572 DEBUG    lxc_cgroup - '/cgroup/natty01' unlinked
      lxc-start 1306922498.574 INFO     lxc_start_ui - rebooting container

I did same thing on lucid container on maverick host, I can reboot on
console in container.

-- 
karma at jazz.email.ne.jp / KATOH Yasufumi




More information about the lxc-users mailing list