Hi folks.
I'm using latest lxc git tools on ubuntu host with debian containers.
And there are some bugs:
1) In ubuntu, the default runlevel is 2, not 3. That's why reboot and halt
aren't handled properly. I've fixed it — patch is attached. But it's a
distro-specific patch, so I think we need another distro-agnostic solution,
maybe config option for runlevels?
2) If we are in lxc-console and we type "reboot", container will not reboot,
it just halts — error log is attached. To reboot container we need to retire
from console quickly with C-a q after "reboot" command.
diff --git a/src/lxc/utmp.c b/src/lxc/utmp.c
index 86cd5a0..0e1fbad 100644
--- a/src/lxc/utmp.c
+++ b/src/lxc/utmp.c
@@ -83,7 +83,7 @@ static int utmp_handler(int fd, void *data, struct lxc_epoll_descr *descr)
goto out;
}
- if (ntasks == 1 && prevrun_level == '3') {
+ if (ntasks == 1 && prevrun_level == '2') {
DEBUG("run level is %c/%c", prevrun_level, currun_level);
DEBUG("there is %d tasks remaining", ntasks);
lxc-start 1273507729.118 DEBUG lxc_start - container init process exited
lxc-start 1273507729.118 INFO lxc_error - child <342> ended on signal (9)
lxc-start 1273507729.118 DEBUG lxc_cgroup - using cgroup mounted at '/cgroup'
lxc-start 1273507729.147 DEBUG lxc_cgroup - '/cgroup/test' unlinked
lxc-start 1273507729.147 INFO lxc_start_ui - rebooting container
lxc-start 1273507729.258 ERROR lxc_start - inherited fd 14 on socket:[13926961]
------------------------------------------------------------------------------
_______________________________________________
Lxc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxc-devel