Hi,<br><br>I'm trying to run MeeGo SDK (<a href="http://merproject.org">http://merproject.org</a>) as a LXC container,<br>but there some complications related to systemd. The default target looks<br>as follows:<br><br>
[Unit]<br>Description=Non-Graphical Interface<br>#Requires=multi-user.target<br>#After=multi-user.target<br>Requires=systemd-logind.service<br>Conflicts=rescue.target<br>AllowIsolate=yes<br><br>[Install]<br>Alias=default.target<br>
<br>But when I run `lxc-start -n mer` there is no output. It turned out that<br>systemd uses the host's system console for its output which is not very<br>convenient when starting containers remotely.<br><br>Is there a way to make systemd show its output in the container console?<br>
<br>What should be the minimal setup to get a system managed by systemd to<br>show the "login:" prompt in the console?<br><br>The current version of systemd in MER is 37.<br><br>======= {rootfs}/etc/systemd/system.conf ==========<br>
[Manager]<br>#LogLevel=info<br>LogTarget=console<br>#LogColor=yes<br>#LogLocation=no<br>#DumpCore=yes<br>CrashShell=yes<br>#ShowStatus=yes<br>#SysVConsole=yes<br>CrashChVT=1<br>#CPUAffinity=1 2<br>MountAuto=no<br>SwapAuto=no<br>
#DefaultControllers=cpu<br>#DefaultStandardOutput=syslog<br>#DefaultStandardError=inherit<br>#JoinControllers=cpu,cpuacct<br>JoinControllers=<br>=====================================================<br><br>==={rootfs}/etc/systemd/systemd-logind.conf==========<br>
[Login]<br>NAutoVTs=1<br>#KillUserProcesses=no<br>#KillOnlyUsers=<br>#KillExcludeUsers=root<br>#Controllers=<br>#ResetControllers=cpu<br>=====================================================<br><br>The host system is Ubuntu 11.10.<br>
<br>===/var/lib/lxc/mer/config===========================<br>lxc.network.type = veth<br>lxc.network.flags = up<br>lxc.network.link = br0<br>lxc.network.veth.pair = veth_1<br>lxc.tty = 4<br>lxc.console=/var/log/lxc/mer.console<br>
lxc.pts = 1024<br>lxc.rootfs = /var/lib/lxc/mer/rootfs<br>lxc.cgroup.devices.deny = a<br># /dev/null and zero<br>lxc.cgroup.devices.allow = c 1:3 rwm<br>lxc.cgroup.devices.allow = c 1:5 rwm<br># consoles<br>lxc.cgroup.devices.allow = c 5:1 rwm<br>
lxc.cgroup.devices.allow = c 5:0 rwm<br>lxc.cgroup.devices.allow = c 4:0 rwm<br>lxc.cgroup.devices.allow = c 4:1 rwm<br># /dev/{,u}random<br>lxc.cgroup.devices.allow = c 1:9 rwm<br>lxc.cgroup.devices.allow = c 1:8 rwm<br>
lxc.cgroup.devices.allow = c 136:* rwm<br>lxc.cgroup.devices.allow = c 5:2 rwm<br># rtc<br>lxc.cgroup.devices.allow = c 254:0 rwm<br><br># mounts point<br>lxc.mount.entry=proc /var/lib/lxc/mer/rootfs/proc proc nodev,noexec,nosuid 0 0<br>
lxc.mount.entry=devpts /var/lib/lxc/mer/rootfs/dev/pts devpts defaults 0 0<br>lxc.mount.entry=sysfs /var/lib/lxc/mer/rootfs/sys sysfs defaults 0 0<br>lxc.mount.entry=shm /var/lib/lxc/mer/rootfs/run/shm tmpfs defaults 0 0<br>
=====================================================<br><br>Best regards,<br>Dima<br>