Skip to content

Commit 3ec8fcb

Browse files
authored
Merge pull request #94312 from SNiemann15/ocpvirt_watchdog_diag288
[CNV-56434] Watchdog add support for IBM Z
2 parents 4cd9827 + b5da350 commit 3ec8fcb

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

modules/virt-defining-watchdog-device-vm.adoc

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You configure a watchdog device for the virtual machine (VM).
1010

1111
.Prerequisites
1212

13-
* The VM must have kernel support for an `i6300esb` watchdog device. {op-system-base-full} images support `i6300esb`.
13+
* For `x86` systems, the VM must use a kernel that works with the `i6300esb` watchdog device. If you use `s390x` architecture, the kernel must be enabled for `diag288`. {op-system-base-full} images support `i6300esb` and `diag288`.
1414
* You have installed the {oc-first}.
1515
1616
.Procedure
@@ -23,26 +23,27 @@ apiVersion: kubevirt.io/v1
2323
kind: VirtualMachine
2424
metadata:
2525
labels:
26-
kubevirt.io/vm: vm2-rhel84-watchdog
26+
kubevirt.io/vm: <vm-label>
2727
name: <vm-name>
2828
spec:
2929
runStrategy: Halted
3030
template:
3131
metadata:
3232
labels:
33-
kubevirt.io/vm: vm2-rhel84-watchdog
33+
kubevirt.io/vm: <vm-label>
3434
spec:
3535
domain:
3636
devices:
3737
watchdog:
3838
name: <watchdog>
39-
i6300esb:
40-
action: "poweroff" <1>
39+
<watchdog-device-model>: <1>
40+
action: "poweroff" <2>
4141
# ...
4242
----
43-
<1> Specify `poweroff`, `reset`, or `shutdown`.
43+
<1> The watchdog device model to use. For `x86` specify `i6300esb`. For `s390x` specify `diag288`.
44+
<2> Specify `poweroff`, `reset`, or `shutdown`. The `shutdown` action requires that the guest virtual machine is responsive to ACPI signals. Therefore, using `shutdown` is not recommended.
4445
+
45-
The example above configures the `i6300esb` watchdog device on a RHEL8 VM with the poweroff action and exposes the device as `/dev/watchdog`.
46+
The example above configures the watchdog device on a VM with the `poweroff` action and exposes the device as `/dev/watchdog`.
4647
+
4748
This device can now be used by the watchdog binary.
4849

modules/virt-installing-watchdog-agent.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ You install the watchdog agent on the guest and start the `watchdog` service.
1212

1313
. Log in to the virtual machine as root user.
1414

15+
. This step is only required when installing on {ibm-z-name} (`s390x`). Enable `watchdog` by running the following command:
16+
+
17+
[source,terminal]
18+
----
19+
# modprobe diag288_wdt
20+
----
21+
22+
. Verify that the `/dev/watchdog` file path is present in the VM by running the following command:
23+
+
24+
[source,terminal]
25+
----
26+
# ls /dev/watchdog
27+
----
28+
1529
. Install the `watchdog` package and its dependencies:
1630
+
1731
[source,terminal]

0 commit comments

Comments
 (0)