[CentOS-virt] reboot guest on panic
danh at konnxsys.com
Sun Mar 14 22:06:32 UTC 2010
Try this in the guest:
echo "1" > /proc/sys/kernel/panic_on_oops
echo "5" > /proc/sys/kernel/panic
On 03/13/2010 05:03 PM, Norman Gaywood wrote:
> I have a guest that keeps crashing and want to automatically reboot it
> when it crashes. See:
> xen PV guest kernel 2.6.32 processes lock up in D state
> if you want to look at the details on the crashing.
> Anyway, I boot the guest with the kernel command line parameter:
> I have kernel.panic = 15 in the guest /etc/sysctl.conf
> In the guest config file in dom0 I have:
> on_poweroff = "destroy"
> on_reboot = "restart"
> on_crash = "restart"
> The guest manages to panic when it detects the hung tasks and I get this
> on the guest console:
> Kernel panic - not syncing: hung_task: blocked tasks
> Rebooting in 15 seconds..
> However, it never restarts. It just hangs around until I do a
> xm destroy<guest>
> xm create<guest>
> Have I missed something?
More information about the CentOS-virt