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)
- 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
[email protected]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to