From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPTv0-0004vh-Ts for qemu-devel@nongnu.org; Sat, 30 Jan 2016 06:42:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPTux-0005mu-Nw for qemu-devel@nongnu.org; Sat, 30 Jan 2016 06:42:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPTux-0005mk-IJ for qemu-devel@nongnu.org; Sat, 30 Jan 2016 06:42:15 -0500 Date: Sat, 30 Jan 2016 11:42:11 +0000 From: "Richard W.M. Jones" Message-ID: <20160130114211.GA27970@redhat.com> References: <569CCFC6.60909@yahoo.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <569CCFC6.60909@yahoo.co.uk> Subject: Re: [Qemu-devel] how to setup a watchdog? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: lejeczek Cc: qemu-devel qemu-devel On Mon, Jan 18, 2016 at 11:43:02AM +0000, lejeczek wrote: > apologies I bother devel, but.. > I tried to get help on libvirt mailing list but not luck, then qemu, > still nothing > I hope maybe somebody here? > > 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? > > I have this in the guest: > > >
function='0x0'/> > > > 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? Sorry for the late response. If your guest is Linux, you must also run the watchdog daemon in the guest. The watchdog device's timer isn't primed until it is opened and set up by the watchdog daemon. There is basically no watchdog framework or support in Windows, so you'll have to write the software and driver yourself. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top