From: "James Harper" Subject: RE: shutdown question - PV vs HVM Date: Sat, 6 Oct 2007 19:42:12 +1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Content-class: urn:content-classes:message In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > On 6/10/07 09:17, "James Harper" wrote: >=20 > > Do I need to do something to shutdown_start_time to give me more time to > > do the shutdown? I can't see that in 'xenstore-ls', and the only > > reference to it is in XendDomainInfo... > > > > The only other thing I can think of is that I need to tell xend that I > > am shutting down the domain, and that writing a blank string to > > control/shutdown isn't what is required... >=20 > Xend is waiting 30 seconds for your HVM domain to complete its shutdown. > Once your domain halts, or tries to reboot, or whatever, qemu or Xen will > set its state to 'shutdown' and this is picked up by xend. That event will > stop xend's 30-second fallback timer. >=20 > If your problem is simply that clean shutdown of your HVM guest takes > longer > than 30 seconds, then you need to increase SHUTDOWN_TIMEOUT in > XendConstants.py. It is already increased to 5 minutes in xen-unstable and > in xen-3.1.1. Actually, the problem is my assumption that xend would give me as long as I wanted to shut down. I haven't yet put the code in to do the shutdown, and I was concerned that the domain was still being hard-shutdown anyway. You have enlightened me :) As it turns out, there isn't really a way to do a shutdown from windows kernel space. I need to write a usermode app/service to talk to the driver, and initiate the shutdown from there. Thanks James