About this list Date view Thread view Subject view Author view Attachment view

From: Benedikt Boehm (hollow_at_gentoo.org)
Date: Wed 21 Sep 2005 - 06:22:50 BST


On Wednesday 21 September 2005 00:30, Herbert Poetzl wrote:
> On Tue, Sep 20, 2005 at 11:41:52AM -0400, Chuck wrote:
> > For those Gentoo installations that used the pre-prepared baselayout
> > or stage3 for vserver guests, add this line to every guest/etc/inittab
> > including the template if you use one.
> >
> > # Trap CTRL-ALT-DELETE
> > ca::ctrlaltdel:/sbin/shutdown -r now
> >
> > if this is added to a running guest, then do
> >
> > telinit q
> >
> > within the guest.
> >
> > Even if you used a different method, check inittab anyway to be sure
> > this is there.
> >
> > This addition will cure the stop time outs happening when attempting
> > to shut down via the vservers init script or using vserver guest stop.

you could also just upgrade baselayout-vserver to 1.12.0_pre8-r1, it solved
this and some other bugs as well..

>
> short explanation: the tools currently send an INT
> signal to the running init (if the initstyle is plain)
> to signal the guest shutdown (which is equiv to giving
> the three finger salute), which does not work if the
> appropriate line in inittab is missing ...
>
> best,
> Herbert
>
> > Chuck
> >
> > On Tuesday 20 September 2005 10:43 am, Chuck wrote:
> > > On Tuesday 20 September 2005 10:05 am, Chuck wrote:
> > >
> > > correction. within the guest i typed init 0
> > >
> > > anyway
> > >
> > > i tried from the host:
> > >
> > > vserver guestname exec init 0
> > >
> > > and it shut down within seconds perfectly with no errors
> > >
> > > when i try vserver guestname stop it returns that the server is not
> > > running
> > >
> > > startup delivers no errors after stopping it in that fashion
> > >
> > > is this a clue or am i bypassing some important steps the 'stop'
> > > command does?
> > >
> > > > I don't comprehend the verver.stop script :( however I can tell
> > > > you the fail/timeout is external to the gentoo guests by this test
> > > >
> > > > I enter the guest via vserver guest enter.
> > > >
> > > > i type halt 0
> > > >
> > > > within seconds i am tossed back into the host and looking at
> > > > processes the vserver lock process kills itself in about 5
> > > > seconds.. then if i run
> > > > vserver guest stop
> > > > it says the guest is not running.
> > > >
> > > > I am sure there are numerous reasons for not doing this, but why
> > > > not just execute init 0 within the guest from the vserver script
> > > > while it does the rest of its cleanup?
> > > >
> > > >
> > > > --
> > > >
> > > > Chuck
> > > >
> > > > "...and the hordes of M$*ft users descended upon me in their anger,
> > > > and asked 'Why do you not get the viruses or the BlueScreensOfDeath
> > > > or insecure system troubles and slowness or pay through the nose
> > > > for an OS as *we* do?!!', and I answered...'I use Linux'. "
> > > > The Book of John, chapter 1, page 1, and end of book
> > > >
> > > >
> > > > _______________________________________________
> > > > Vserver mailing list
> > > > Vserver_at_list.linux-vserver.org
> > > > http://list.linux-vserver.org/mailman/listinfo/vserver
> > >
> > > --
> > >
> > > Chuck
> > >
> > > "...and the hordes of M$*ft users descended upon me in their anger,
> > > and asked 'Why do you not get the viruses or the BlueScreensOfDeath
> > > or insecure system troubles and slowness or pay through the nose
> > > for an OS as *we* do?!!', and I answered...'I use Linux'. "
> > > The Book of John, chapter 1, page 1, and end of book
> > >
> > >
> > > _______________________________________________
> > > Vserver mailing list
> > > Vserver_at_list.linux-vserver.org
> > > http://list.linux-vserver.org/mailman/listinfo/vserver
> >
> > --
> >
> > Chuck
> >
> > "...and the hordes of M$*ft users descended upon me in their anger,
> > and asked 'Why do you not get the viruses or the BlueScreensOfDeath
> > or insecure system troubles and slowness or pay through the nose
> > for an OS as *we* do?!!', and I answered...'I use Linux'. "
> > The Book of John, chapter 1, page 1, and end of book
> >
> >
> > _______________________________________________
> > Vserver mailing list
> > Vserver_at_list.linux-vserver.org
> > http://list.linux-vserver.org/mailman/listinfo/vserver
>
> _______________________________________________
> Vserver mailing list
> Vserver_at_list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 21 Sep 2005 - 06:22:20 BST by hypermail 2.1.3