20.18. Watchdog Device
<watchdog>element. The watchdog device requires an additional driver and management daemon in the guest virtual machine. As merely enabling the watchdog in the libvirt configuration does not do anything useful on its own. Currently there is no support notification when the watchdog fires.
... <devices> <watchdog model='i6300esb'/> </devices> ... ... <devices> <watchdog model='i6300esb' action='poweroff'/> </devices> </domain>
Figure 20.66. Watchdog Device
model- The required
modelattribute specifies what real watchdog device is emulated. Valid values are specific to the underlying hypervisor.
modelattribute may take the following values:
i6300esb— the recommended device, emulating a PCI Intel 6300ESB
ib700— emulates an ISA iBase IB700
action- The optional
actionattribute describes what action to take when the watchdog expires. Valid values are specific to the underlying hypervisor. The
actionattribute can have the following values:
reset— default setting, forcefully resets the guest virtual machine
shutdown— gracefully shuts down the guest virtual machine (not recommended)
poweroff— forcefully powers off the guest virtual machine
pause— pauses the guest virtual machine
none— does nothing
dump— automatically dumps the guest virtual machine.