From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dale Swanston Subject: Re: setting time in guest with ntpdate results in VM hang Date: Mon, 27 Aug 2012 10:58:04 -0600 Message-ID: <503BA71C.4000602@sedsystems.ca> References: <5037A46F.7050104@sedsystems.ca> <20120824194345.GA16662@amt.cnet> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from sed198n136.SEDSystems.ca ([198.169.180.136]:39317 "EHLO sed198n136.sedsystems.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753787Ab2H0Q6G (ORCPT ); Mon, 27 Aug 2012 12:58:06 -0400 Received: from barney.sedsystems.ca (barney [198.169.180.121]) by sed198n136.sedsystems.ca with ESMTP id q7RGw50i017584 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NOT) for ; Mon, 27 Aug 2012 10:58:05 -0600 (CST) Received: from [192.107.131.83] (sed192n83.SEDSystems.ca [192.107.131.83]) by barney.sedsystems.ca (8.13.1/8.13.1) with ESMTP id q7RGw5gF003035 for ; Mon, 27 Aug 2012 10:58:05 -0600 In-Reply-To: <20120824194345.GA16662@amt.cnet> Sender: kvm-owner@vger.kernel.org List-ID: On 8/24/2012 1:43 PM, Marcelo Tosatti wrote: > On Fri, Aug 24, 2012 at 09:57:35AM -0600, Dale Swanston wrote: >> Hello. >> >> We are running a guest OS of CentOS 4.4 (kernel 2.6.12) for legacy >> reasons, upgrading is not an option. NTP is running on the host >> and synching with a local GPS NTP server. But due to frequency >> drift in the guest it restarts itself periodically and upon start up >> performs an ntpdate to force a time jump on the guest. >> >> I have seen 2 occasions now (over 2 months) where the VM hangs right >> as the ntpdate command alters the guest clock (based on output in >> /var/log/messages). >> >> From the host's perspective the VM is still running but it appears >> to be using very high CPU percentage (more than typical). The only >> recovery option is to force shutdown of the VM and restart it. > This should not happen. > >> 1. Are there any known issues with ntpdate and VMs hanging? Any >> workarounds? >> 2. Are there any debugging tools further characterise the problem? > Upgrading the guest kernel is not an option? At least install recent > kernel in guest to confirm that its not an already fixed bug. Good idea. I'll try that. But are there any tools available to determine what the VM is doing when it appears hung? I've looked but haven't found much on debug or diagnostics on a running VM. Any links? Is it possible the guest kernel is panicking? What would the VM do if that happened? Would it shutdown? Thanks again.