How to configure watchdog for a Proxmox Linux VM



    1. On the Proxmox host, edit the /etc/pve/qemu-server/[server_id].conf file and add the line:

    watchdog: model=i6300esb,action=reset


    2. On the guest, install watchdog:

    apt install watchdog



    3. Edit /etc/watchdog.conf and add/modify the following:

    watchdog-device = /dev/watchdog
    log-dir =  /var/log/watchdog
    realtime = yes
    priority = 1


    4. Edit  /etc/default/watchdog and include:



    5. Enable and restart the watchdog service:

    systemctl enable watchdog
    systemctl restart watchdog


    6. From the Proxmox GUI, fully power off (not restart) the VM, then power it back on.


    7. Optionally, test by initiating a kernel panic on the VM

    echo c > /proc/sysrq-trigger

    No questions yet.