Subject: Re: [vserver] reboot -f hangs
From: "John Alberts" <john.m.alberts@gmail.com>
Date: Wed, 19 Mar 2008 09:33:42 -0500

Thomas,
I don't know if this has changed recently, but I've never been able to
reboot from inside a guest os.  My reboot and shutdown scripts
actually simply have an 'exit' statement in the them.  If I need to
reboot a guest os, I do it from the host with "vserver <guestname>
restart".

If you would like to allow your guest os administrators to reboot a
guest os without having access to the host system, you could try using
one of the web interfaces for vserver such as OpenVCP.  You could also
just create a simple web page with links for each guest os that calls
the appropriate command on the host.

John



On Wed, Mar 19, 2008 at 9:03 AM, Gebhardt Thomas
<gebhardt@hrz.uni-marburg.de> wrote:
> Hi,
>
>  when I try to reboot a VServer from "inside", the (using reboot -f)
>  the VServer doesn't reboot. Even worse: the reboot process does
>  not return (state: D) and can't be killed even from the host system
>
>  myvserver# ps faux
>  USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
>  root      5656  3.3  0.0    116    40 pts/0    S+   14:54   0:00 login
>  root      5681  0.0  0.0   5052  1652 pts/3    Ss   14:54   0:00
>  \_ /bin/bash -login
>  root      5686  0.0  0.0   4504   908 pts/3    R+   14:54   0:00      \_ ps
>  faux
>  root         1  0.4  0.0   1944   660 ?        Ss   14:43   0:02 init [2]
>  root      4888  0.0  0.0   1428   324 ?        D    14:48   0:00 reboot -f
>
>  I touched a vshelper logfile on the host. It reads:
>
>  myhost#  cat vshelper.log
>  Wed Mar 19 14:24:25 CET 2008: vshelper restart 1136
>  Restarting vserver '/etc/vservers/myvserver'
>  vserver 'myserver' already running
>
>  My kernel version is 2.6.24.2-vs2.2.0.5.0.7 on debian etch
>  (util-vserver: 0.30.212-1).
>
>  Thanks for any hint!
>  Kind regards, Thomas
>
>



-- 
John Alberts