From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLn6M-0007sh-FI for qemu-devel@nongnu.org; Wed, 20 Jan 2016 02:22:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLn6H-0002T3-GU for qemu-devel@nongnu.org; Wed, 20 Jan 2016 02:22:46 -0500 Received: from mail.univention.de ([82.198.197.8]:2734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLn6H-0002QS-9l for qemu-devel@nongnu.org; Wed, 20 Jan 2016 02:22:41 -0500 References: <569CCFC6.60909@yahoo.co.uk> From: Philipp Hahn Message-ID: <569F2B41.1080109@univention.de> Date: Wed, 20 Jan 2016 07:37:53 +0100 MIME-Version: 1.0 In-Reply-To: <569CCFC6.60909@yahoo.co.uk> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] how to setup a watchdog? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: lejeczek , qemu-devel qemu-devel Hi, Am 18.01.2016 um 12:43 schrieb lejeczek: > I'm trying Qemu's watchdog. > My understanding was that hardware (here qemu's watchdog) would take > action, eg. cold reboot the system if there is no ping from the OS > watchdog, so I > thought stopping watchdog service in VM should be a quick test, right? >=20 > I have this in the guest: >=20 > >
> >=20 > and I see /dev/watchdog in my guest. Yet nothing happens, guest(linux) > runs uninterrupted. > I must be missing something, an expert said it's config problem, is it > really is? Probably reading linux/Documentation/watchdog/watchdog-api.txt should give you some extra hints. AFAIK you need to open that device file at least once, either with the sample program included in the Linux source tree, or by another program like (Debian) watchdog or systemd (man 5 systemd-system.conf -> RuntimeWatchdogSec) cat /dev/watchdog # will print an error about the read(), but the important thing (opening the file) has been done dmesg | grep watchdog # will print "i6300esb: Unexpected close, not stopping watchdog!" to show you that the watchdog is still running and will trigger the reboot, as it has gone through the shutdown protocol, which can be used to disable the watchdog again After ~1m my test VM rebooted. Philipp