HiI suspect that the problem is in the openvz patch for the kernel. My suspicion is that the poweroff button signal goes to vzeventd while it should not do that for VE0.
So the next step is to check the kernel code. I have forwarded your issue to upstream, but I have not seen any solution yet.
But this is only a suspicion. // Ola Quoting "Richard Landsman - Rimote Media" <richard@rimote.nl>:
Hello Ola, After starting vzeventd manually the cat /sys/module/vzevent/parameters/reboot_event has a value of 1 and the kernel module is loaded: testa:~# lsmod | grep vz vzevent 1223 1 vzethdev 5593 0 vzrst 108962 0 vzcpt 93505 0 vzdquota 30157 0 [permanent] vzmon 12949 3 vzethdev,vzrst,vzcpt vzdev 1284 3 vzethdev,vzdquota,vzmon I have developed a small formfactor RAID/Samba/VPN/LVM-snapshot/Rdiff-backup/NX-server system for clients and it runs nicely. But would be nice if clients could take down there server with the poweroff-button if they go on vacation. Any idea where to look further for a solution? Many thanks for your help. Richard Op 18-12-2010 11:52, Ola Lundqvist schreef:Hi RichardOn Fri, Dec 17, 2010 at 11:26:41PM +0100, Richard Landsman - Rimote Media wrote:vzeventd is new in latest kernel and latest vzctl. It is a new (improved) wayHello Ola, Both commands work like expected. Nothing special. Although the vzeventd is new for me.for a VE to restart itself.Stopping OpenVZ: ..done Starting OpenVZ: ..done Checking vzevent kernel module .....done Starting vzeventd: StartedOk. And what was the kernel modules after that? You should have this module loaded "vzevent".You should also have the value 1 in /sys/module/vzevent/parameters/reboot_event.But actually I do not think the power button should use vzevent but I just want to check that things are working as expected anyway.Just to know sure, the powerbutton normally should work on almost any kernel? Is that correct?Yes. // OlaBest regards, Richard Op 17-12-2010 16:21, Ola Lundqvist schreef: /etc/init.d/vzeventd start
-- --- Inguza Technology AB --- MSc in Information Technology ---- / ola@inguza.com Annebergsslingan 37 \ | opal@debian.org 654 65 KARLSTAD | | http://inguza.com/ Mobile: +46 (0)70-332 1551 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / ---------------------------------------------------------------