I have been trying to use the gentoo/current image on a gentoo host system. I would like to have virtual consoles. Init is spawing them, but for some reason they die.
After starting the container, this is what I see inside:
$ lxc exec gentooC03 /bin/bash
gentooC03 ~ # ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 13:30 ? 00:00:00 init [3]
root 614 1 0 13:30 ? 00:00:00 /bin/busybox udhcpc -x hostname:gentooC03 --interface=et
root 686 0 0 13:30 ? 00:00:00 /bin/bash
root 705 1 0 13:30 ? 00:00:00 /sbin/agetty 38400 tty1 linux
root 706 1 0 13:30 ? 00:00:00 /sbin/agetty 38400 tty2 linux
root 707 1 0 13:30 ? 00:00:00 /sbin/agetty 38400 tty3 linux
root 708 1 0 13:30 ? 00:00:00 /sbin/agetty 38400 tty4 linux
root 709 1 0 13:30 ? 00:00:00 /sbin/agetty 38400 tty5 linux
root 710 1 0 13:30 ? 00:00:00 /sbin/agetty 38400 tty6 linux
root 711 686 0 13:30 ? 00:00:00 ps -ef
The ttys keep respawning.
In the container console, I see eventually see this:
$ lxc console gentooC03
To detach from the console, press: +a q
INIT: Id “c6” respawning too fast: disabled for 5 minutes
INIT: Id “c4” respawning too fast: disabled for 5 minutes
INIT: Id “c2” respawning too fast: disabled for 5 minutes
INIT: Id “c3” respawning too fast: disabled for 5 minutes
INIT: Id “c1” respawning too fast: disabled for 5 minutes
INIT: Id “c5” respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel
INIT: Id “c6” respawning too fast: disabled for 5 minutes
INIT: Id “c2” respawning too fast: disabled for 5 minutes
INIT: Id “c1” respawning too fast: disabled for 5 minutes
INIT: Id “c5” respawning too fast: disabled for 5 minutes
INIT: Id “c3” respawning too fast: disabled for 5 minutes
INIT: Id “c4” respawning too fast: disabled for 5 minutes
The tty processes disappear from ps output:
gentooC03 ~ # ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 13:30 ? 00:00:00 init [3]
root 614 1 0 13:30 ? 00:00:00 /bin/busybox udhcpc -x hostname:gentooC03 --interface=et
root 686 0 0 13:30 ? 00:00:00 /bin/bash
root 731 1 0 13:31 ? 00:00:00 /sbin/agetty 38400 tty4 linux
root 732 1 0 13:31 ? 00:00:00 /sbin/agetty 38400 tty6 linux
root 733 1 0 13:31 ? 00:00:00 /sbin/agetty 38400 tty5 linux
root 734 1 0 13:31 ? 00:00:00 /sbin/agetty 38400 tty3 linux
root 735 1 0 13:31 ? 00:00:00 /sbin/agetty 38400 tty2 linux
root 736 1 0 13:31 ? 00:00:00 /sbin/agetty 38400 tty1 linux
root 737 686 0 13:31 ? 00:00:00 ps -ef
gentooC03 ~ # ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 13:30 ? 00:00:00 init [3]
root 614 1 0 13:30 ? 00:00:00 /bin/busybox udhcpc -x hostname:gentooC03 --interface=et
root 686 0 0 13:30 ? 00:00:00 /bin/bash
root 828 686 0 13:39 ? 00:00:00 ps -ef
Do you have any ideas what might be going wrong here?