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

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Tue 10 Jan 2006 - 02:00:26 GMT
Message-ID: <20060110020025.GA11083@MAIL.13thfloor.at>

On Mon, Jan 09, 2006 at 04:02:42PM -0600, Michael S. Zick wrote:
> 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.

"What's in a name? That which we call a rose
 By any other word would smell as sweet."
                -- Shakespeare, W, R&J

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

yep, should work fine, as long as the target
exists ...

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

best,
Herbert

> 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
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Tue Jan 10 02:00:56 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 10 Jan 2006 - 02:01:00 GMT by hypermail 2.1.8