[Lxc-users] kramic on maverick
Daniel Lezcano
daniel.lezcano at free.fr
Sun Oct 24 20:00:27 UTC 2010
On 10/24/2010 11:41 AM, Papp Tamás wrote:
> hi!
>
> I'm trying to setup a Ubuntu Karmic container on a Macerick LXC host.
>
> It's not working shomehow and I have no clue. The upstart scripts are
> started, but that's all.
>
> 26366 ? Ss 0:00 lxc-start -n brainsum1 -d
> 26375 ? Ss 0:00 \_ /sbin/init
> 26486 pts/38 Ss+ 0:00 \_ /sbin/getty -8 38400 tty4
> 26490 pts/36 Ss+ 0:00 \_ /sbin/getty -8 38400 tty2
> 26491 pts/37 Ss+ 0:00 \_ /sbin/getty -8 38400 tty3
> 26497 ? Ss 0:00 \_ cron
> 26524 pts/35 Ss+ 0:00 \_ /sbin/getty -8 38400 tty1
>
>
> I don't know why, there are no boot messages without the option -d.
>
Can you check you have at least the in the rootfs the
/etc/init/console.conf file ?
The content should be:
# console - getty
#
# This service maintains a console on tty1 from the point the system is
# started until it is shut down again.
start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]
respawn
exec /sbin/getty -8 38400 /dev/console
> Also this does not work:
>
> $ lxc-start -l DEBUG -o $(tty) -n brainsum1
> lxc-start: failed to open log file "/dev/pts/39" : Permission denied
> lxc-start: failed to initialize log service
>
Yeah, I suppose you logged as non-root and then you did a su -
The tty belongs to the initial user and not to the current user, this is
why it fails. I suppose when root opens the tty that shouldn't happen,
but anyway you can fix this by chmod ugo+rw $(tty) until there is a
proper fix for this.
More information about the lxc-users
mailing list