Re: [libvirt] Making panic great again

2017-05-02 Thread Daniel P. Berrange
On Fri, Apr 28, 2017 at 11:28:47AM -0700, Ed Swierk wrote: > On Fri, Apr 28, 2017 at 1:46 AM, Daniel P. Berrange > wrote: > > With the watchdog we have a much wider set of actions that we can > > instruct QEMU to do: > > > > 'reset' — default, forcefully reset the guest

Re: [libvirt] Making panic great again

2017-05-02 Thread Martin Kletzander
On Fri, Apr 28, 2017 at 11:23:11AM -0700, Ed Swierk wrote: On Thu, Apr 27, 2017 at 11:43 PM, Martin Kletzander wrote: I'm trying to understand the situation. So you have a guest that handles crashes itself (like kdump, let's say), but on_crash options are not enough for

Re: [libvirt] Making panic great again

2017-04-28 Thread Ed Swierk
On Fri, Apr 28, 2017 at 1:46 AM, Daniel P. Berrange wrote: > With the watchdog we have a much wider set of actions that we can > instruct QEMU to do: > > 'reset' — default, forcefully reset the guest > 'shutdown' — gracefully shutdown the guest (not recommended) >

Re: [libvirt] Making panic great again

2017-04-28 Thread Ed Swierk
On Thu, Apr 27, 2017 at 11:43 PM, Martin Kletzander wrote: > I'm trying to understand the situation. So you have a guest that > handles crashes itself (like kdump, let's say), but on_crash options are > not enough for you: > > - preserve is bad because the guest is not

Re: [libvirt] Making panic great again

2017-04-28 Thread Daniel P. Berrange
On Fri, Apr 28, 2017 at 08:43:30AM +0200, Martin Kletzander wrote: > On Thu, Apr 27, 2017 at 05:34:21PM -0700, Ed Swierk wrote: > > The panic device is currently documented as a way for "libvirt to receive > > panic notification from a QEMU guest". > > > > This is true, but not the whole story.

Re: [libvirt] Making panic great again

2017-04-28 Thread Christian Borntraeger
On 04/28/2017 02:34 AM, Ed Swierk wrote: > The panic device is currently documented as a way for "libvirt to receive > panic notification from a QEMU guest". > > This is true, but not the whole story. When a guest triggers the panic > device, QEMU pauses the guest, and libvirt takes the action

Re: [libvirt] Making panic great again

2017-04-28 Thread Martin Kletzander
On Thu, Apr 27, 2017 at 05:34:21PM -0700, Ed Swierk wrote: The panic device is currently documented as a way for "libvirt to receive panic notification from a QEMU guest". This is true, but not the whole story. When a guest triggers the panic device, QEMU pauses the guest, and libvirt takes the

[libvirt] Making panic great again

2017-04-27 Thread Ed Swierk
The panic device is currently documented as a way for "libvirt to receive panic notification from a QEMU guest". This is true, but not the whole story. When a guest triggers the panic device, QEMU pauses the guest, and libvirt takes the action specified by on_crash. This can interfere with the