On Fri, 05.12.14 20:25, Thomas S Hatch (thatc...@gmail.com) wrote: > I have been having trouble running nspawn containers that don't have > systemd (centos 6, Ubuntu 14.04, debian wheezy etc), I imagine I am just > not finding the solution online. > The container seems to start without issue but never presents a login > prompt. I added audit=0 to the kernel arguments as the manpage suggested > but to no avail. > > I am using systemd 217 on Arch Linux. > Any suggestions as to where I should look to solve this?
By default most old distributions assume that the venerable VT subsystem is available when booting up, and will present gettys on /dev/tty1, /dev/tty2 and so on, which nspawn cannot provide however. To make those old distributions work you need to patch /etc/inittab (or similar) to execute the getty on /dev/console (which spawn does provide) instead of /dev/tty1, /dev/tty2, and so on. When using a systemd-enabled distribution inside a container, then no such manual changes to it are necessary, as systemd contains appropriate provisions since a longer time to invoke a single getty on /dev/console if the VT subsystem is not available. Lennart -- Lennart Poettering, Red Hat _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel