[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] sysrq/shutdown in xen 3.1 + centos5 HVM guest


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Schober Walter" <Walter.Schober@xxxxxxxxx>
  • Date: Fri, 8 Jun 2007 16:51:43 +0200
  • Delivery-date: Fri, 08 Jun 2007 07:50:06 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: Acep3Ie7MYhWZcMNTf+bDkioNVU5mg==
  • Thread-topic: 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'
#

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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.