Re: [Vserver] Assigning a virtual console to a given vserver

From: Michael S. Zick <mszick_at_morethan.org>
Date: Mon 09 Jan 2006 - 22:02:42 GMT
Message-Id: <200601091602.42181.mszick@morethan.org>

On Mon January 9 2006 15:49, Bruno wrote:
> On Sunday 08 January 2006 14:01, Bodo Eggert wrote:
> > On Sun, 8 Jan 2006, Bruno wrote:
> > > I would like to assign a virtual console to one or more vservers running
> > > on my box.
> > >
> > > e.g.
> > > vc0 - vc6 for host system
> > > vc7 for first vserver
> > > vc8 for second vserver
> > > none for third vserver
> > > ...
> >
> > [...]
> >
> > > Is this possible?
> >
> > You need the console device file in the vserver dev directory, and you
> > need to tweak the vserver inittab.
>
> This worked.
>
> For my example I will let the guest start on tty8 and spawn gettys on tty8 and
> tty9.
>
> Steps:
> - create /dev/tty8 (major 4, minor 8)
> - create /dev/tty9 (major 4, minor 9)
> - create /dev/console (major 4, minor 8)
>
A bit obscure unless one recalls that the kernel uses major-minor
numbers rather than names.

Could not the same thing be done with a sym-link?
ln -s /dev/tty8 console

That would be a little more obvious when you listed the /dev/*
at some later date.

Mike

> - add "c8:2345:respawn:sbin/getty 38400 tty8 linux" to inittab
> - add "c9:2345:respawn:sbin/getty 38400 tty9 linux" to inittab
>
> Then start/restart the guest and output appears as expected.
>
> Guest is configured using init style "plain"
>
> Bruno
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
>
>
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Mon Jan 9 22:03:11 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 09 Jan 2006 - 22:03:17 GMT by hypermail 2.1.8