Mehdi Bennani wrote:
Hello,

I'm trying to reboot from inside a vserver.

===With sysv init style:

test:/# reboot

Broadcast message from root (pts/1) (Mon Oct  9 09:45:00 2006):

The system is going down for reboot NOW!
shutdown: timeout opening/writing control channel /dev/initctl
init: timeout opening/writing control channel /dev/initctl
test:/#

Doesn't do it...

Of course, there's no init to signal. sysv always requires reboot -f.

===With plain init style:

test:/home/admin# reboot

Broadcast message from root (pts/1) (Mon Oct  9 09:47:12 2006):

The system is going down for reboot NOW!

ssh disconnects but vserver doesn't come up again...

On the guest:

vserver:~# vserver-stat
CTX   PROC    VSZ      RSS    userTIME   sysTIME    UPTIME NAME
0       62        140.5M  42.6M   2m40s20   3m50s28   3d00h33 root server
1        1        2.2M      1.1M     4m12s85   8m07s79   3d00h28
monitoring server
6        5       10.4M     2.7M     0m00s30   0m00s64   3d00h32 vszope6
26       1       1.5M      528K     0m00s28   0m00s22   2m12s82 test26
 --->> still there, one process left!


Trying to stop it:

vserver:~# vserver test26 stop
A timeout occured while waiting for the vserver to finish and it will
be killed by sending a SIGKILL signal. The following process list
might be useful for finding out the reason of this behavior:

----------------------------------------------------------------------
31000    26 test26    ?        Ss     0:00 init [6]
----------------------------------------------------------------------

... It looks like the vserver init doesn't stop by itself and gets stuck.

reboot -f gives the same result on both init styles

Interesting, even with sysv? What is left in the guest at that point?

CAP_SYS_BOOT is set in /etc/vservers/test26/bcapabilities

That shouldn't be needed.

time-out is set to 120 in /etc/vservers/test26/apps/vshelper/sync-timeout

What distribution are you running in your guest?

--
Daniel Hokka Zakrisson
GPG id: 06723412
GPG fingerprint: A455 4DF3 990A 431F FECA  7947 6136 DDA2 0672 3412
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to