1 This is a simple framework for testing the qemu watchdog virtual
2 device. It's easier to use this framework than running the whole
5 Written by Richard W.M. Jones <rjones@redhat.com>.
11 (1) Compile this program. It creates a statically linked Linux binary
12 called 'watchdog-test'.
14 (2) You will need an existing Linux guest.
16 (3) Change the configuration of the Linux guest to add a watchdog
19 If using libvirt, add a clause in the <devices> section:
21 <watchdog model='i6300esb' action='poweroff' />
23 If using qemu directly, use the following command line options:
25 qemu-kvm ... -watchdog i6300esb -watchdog-action poweroff
27 model can be either 'i6300esb' or 'ib700'.
29 action can be: 'reset', 'shutdown', 'poweroff', 'pause',
32 (4) Install the statically linked watchdog-test binary in the Linux
35 (5) Boot up the guest. Log into the guest.
37 (6) [ib700 only] You have to load the ib700wdt kernel module manually
38 since it's an ISA device:
40 sudo modprobe ib700wdt
42 (7) Run the watchdog-test binary (as root), and follow instructions.