15.10. Attaching a watchdog device to a virtual machine by using the web console
To force the virtual machine (VM) to perform a specified action when it stops responding, you can attach virtual watchdog devices to a VM.
Prerequisites
You have installed the RHEL 10 web console.
For instructions, see Installing and enabling the web console.
- You have installed the web console VM plugin on your system. For more information, see Setting up the web console to manage virtual machines.
Procedure
On the command line, install the watchdog service.
# dnf install watchdog
- Shut down the VM.
Add the watchdog service to the VM.
# virt-xml vmname --add-device --watchdog action=reset --update
- Run the VM.
- Log in to the RHEL 10 web console.
- In the interface of the web console, click on the VM to which you want to add the watchdog device.
Click next to the Watchdog field in the Overview pane.
The Add watchdog device type dialog is displayed.
- Select the action that you want the watchdog device to perform if the VM stops responding.
- Click .
Verification
- The action you selected is visible next to the Watchdog field in the Overview pane.