Schober Walter
2007-Jun-08 14:51 UTC
[Xen-users] sysrq/shutdown in xen 3.1 + centos5 HVM guest
Hello! Xen Host: Centos5 x86_64 + Compiled Sources 3.1. [root@s12 ~]# uname -a Linux s12 2.6.18-xen #1 SMP Mon May 28 17:30:17 CEST 2007 x86_64 x86_64 x86_64 GNU/Linux Guest: Centos5 x86_64, HVM [root@vs01 ~]# more /proc/sys/kernel/sysrq 1 [root@s12 ~]# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 1985 8 r----- 29241.8 vs01 22 2000 4 r----- 224.2 A Alt-SysRQ-s on the VNC console gives an Jun 8 16:42:08 vs01 kernel: SysRq: Emergency Sync Jun 8 16:42:08 vs01 kernel: Emergency Sync complete in the syslog + console output. Doing a [root@s12 ~]# xm sysrq vs01 s does nothing in the VM. *** Also strange: Doing a "xm shutdown vs01" just terminates the VM. No orderly shutdown on the VNC console.... I looked through a lot of docs so far, all telling me, that xm shutdown should do a shutdown like a "shutdown" in the Guest, and sysrq should work as well. Have I missed a setting in the domain.cfg? I have played with on_shutdown a lot already -> same all time. ---- name = "vs01" builder = "hvm" memory = "2000" disk = [ ''phy:/dev/vg00/vs01,hda,w'', ] vif = [ ''type=ioemu, mac=00:16:3e:61:08:1a, bridge=xenbr0'', ''type=ioemu, mac=00:16:3e:61:08:1b, bridge=xenbr1''] uuid = "ed1618df-919f-2f47-20ea-7a5bb614e094" device_model = "/usr/lib64/xen/bin/qemu-dm" kernel = "/usr/lib/xen/boot/hvmloader" apic=1 acpi=1 pae=1 vcpus=4 on_reboot = ''restart'' #on_crash = ''restart'' #on_shutdown = ''destroy'' vnc = 1 vfb = [ ''type=vnc,vncdisplay=1,vnclisten=0.0.0.0'' ] usbdevice = ''mouse'' keymap = ''de'' serial = ''pty'' # enable serial console sdl=0 ---- Many thanks for help! Walter _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Daniel P. Berrange
2007-Jun-08 14:56 UTC
Re: [Xen-users] sysrq/shutdown in xen 3.1 + centos5 HVM guest
On Fri, Jun 08, 2007 at 04:51:43PM +0200, Schober Walter wrote:> Doing a > [root@s12 ~]# xm sysrq vs01 s > does nothing in the VM.This only works for paravirt guests.> Also strange: Doing a "xm shutdown vs01" just terminates the VM. No > orderly shutdown on the VNC console....Not at all strange. HVM guests can''t do controlled shutdown process unless you install special Xen paravirt drivers inside the guest. Without those drivers it will just hard poweroff. Since you''ve using Cent OS 5 as your guest you really would do much better with paravirt instead of HVM - you''ll easily have x100 the network performance with paravirt for example> I looked through a lot of docs so far, all telling me, that xm shutdown > should do a shutdown like a "shutdown" in the Guest, and sysrq should > work as well.Only for paravirt unless you have extra drivers in the guest Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=| _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Williamson
2007-Jun-08 15:51 UTC
Re: [Xen-users] sysrq/shutdown in xen 3.1 + centos5 HVM guest
On Friday 08 June 2007, Daniel P. Berrange wrote:> On Fri, Jun 08, 2007 at 04:51:43PM +0200, Schober Walter wrote: > > Doing a > > [root@s12 ~]# xm sysrq vs01 s > > does nothing in the VM. > > This only works for paravirt guests.That''s a shame. I guess in principle this should just be plumbed through the Qemu monitor to the emulated sysrq key.> > Also strange: Doing a "xm shutdown vs01" just terminates the VM. No > > orderly shutdown on the VNC console.... > > Not at all strange. HVM guests can''t do controlled shutdown process unless > you install special Xen paravirt drivers inside the guest. Without those > drivers it will just hard poweroff. Since you''ve using Cent OS 5 as your > guest you really would do much better with paravirt instead of HVM - you''ll > easily have x100 the network performance with paravirt for exampleI remember seeing some talk on the Qemu list of shutting down guests using APM power button events. Maybe we could do something like that. Cheers, Mark> > I looked through a lot of docs so far, all telling me, that xm shutdown > > should do a shutdown like a "shutdown" in the Guest, and sysrq should > > work as well. > > Only for paravirt unless you have extra drivers in the guest > > Dan.-- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users