From mboxrd@z Thu Jan 1 00:00:00 1970 From: Meng Xu Subject: Re: Question about Xen reboot on panic Date: Wed, 11 Nov 2015 18:21:32 -0500 Message-ID: References: <5643C716.1050102@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5643C716.1050102@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Wei Liu , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Hi Andrew, First, thank you so much for your super fast reply! I really appreciate it. :-) 2015-11-11 17:54 GMT-05:00 Andrew Cooper : > On 11/11/2015 22:49, Meng Xu wrote: >> Hi all, >> >> I'm trying to work remotely with the machine I have. So I want Xen >> automatically reboot if it experiences a panic. >> >> When Xen panic, it says " Reboot in five seconds...". However, it does >> not reboot. :-( >> >> *** The xen boot command line on my machine is *** >> multiboot /boot/xen-4.6-unstable.gz placeholder >> dom0_mem=8192M,max:8192M dom0_max_vcpus=8 sched=credit >> com1=115200,8n1,pci console=com1,vga reboot=k panic=2 panic_on_oops=1 > > Xen has no panic= or panic_on_oops= command line options. > > Please read the command line > documentation(http://xenbits.xen.org/docs/unstable/misc/xen-command-line.html). > It is written and kept up to date for a reason. Yes, I actually read it before I put the command options. I'm not quite sure if it is most updated and I was hoping "what if it works". Now I know it won't work for sure. > > Furthermore, you are force-overriding the normal reboot path with the > keyboard controller. You shouldn't need to do this unless you have some > very wonky firmware. I see. I removed it from the boot command line. > > Finally, I can't tell from your paste below, but ensure that you are > always using a debug hypervisor. The source file Config.mk under the xen folder has debug ?= y In addition, "xl dmesg |grep debug" gives me: (XEN) Xen version 4.6-unstable (root@) (gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3) debug=y Wed Nov 11 17:06:30 EST 2015 So I guess I'm using the debug hypervisor. I reboot the system after removing all of those useless options (that is, no more "reboot=k panic=2 panic_on_oops=1" in the Xen boot command line.) Is there anything else I can do to force Xen always reboot at panic or oops? Thank you very much for your help! Best, Meng -- ----------- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/