WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] xm shutdown of HVM DomU kills it instantly

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] xm shutdown of HVM DomU kills it instantly
From: "Henok Mikre" <henokmikre@xxxxxxxxx>
Date: Mon, 2 Jun 2008 11:53:36 -0400
Delivery-date: Mon, 02 Jun 2008 08:54:08 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=aIwfbdZvRzeVewZVThYTXl7lFq//2vq1H5A9CM3ylJg=; b=tHRv3iemDebLByovg7V7Khpb5GnoH6xhiFWcMH/MFFZ0xQsgPTWiWs9eM3aGppFeLfqOEbh1t7bAuDajHgd+wdfwsq7rBGq++LKiA/1SlptCGuN81mp6KS2Ehe7WHrcXD6JDbx8ulUCiWiAHAAzJWDDNRObAJZ356XvoLl5hVog=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=PY+039KOVCU2g2L1J8PHlwf8ibG7M9KyKTQSjrNkCySKCm8NxXo0ac3aaVMNqkOiDk71TWdeyi9RxS+3KP/8q0Q5D7i+0OwVnQTkSwKD/E34//4TZtvw9Hrll7zgvwXn9hsaXDc4S45PvpXmmBAiVCmoa+uU4KHx7qv1gvXkve8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200806020839.13641.fjwcash@xxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4135a64a0806011417x47fba663v67214d25aa82f256@xxxxxxxxxxxxxx> <4135a64a0806020059u3e8b5d30yf56686667e2c8be7@xxxxxxxxxxxxxx> <94e2f00b0806020158h79ca776bmf33d567ebc4790eb@xxxxxxxxxxxxxx> <200806020839.13641.fjwcash@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
virsh shutdown <domain id> does graceful shutdown. The problem is that xend remembers the domain id. I want to be able to use the same domain id for the same virtual machine. I tried to flush the domain id memory by doing a "service xend restart" but it still would resort to incrementing the domain id number even though the previous domain id had been shutdown.

On Mon, Jun 2, 2008 at 11:39 AM, Freddie Cash <fjwcash@xxxxxxxxx> wrote:
On June 2, 2008 01:58 am Alain Barthe wrote:
> I know nothing about Xen HVM, but I practiced VMWare.
> It is the same behaviour with VMWare VMs (a shutdown kills the VM
> immediatly) unless you install the "WMWare tools" on the guest. I think
> it should be the same in xen : a HVM host cannot communicate with its
> dom0 (so it cannot be shut down cleanly) as it is not aware it is
> virtual, unless you install on it something special to let it know it
> is virtual.

xend doesn't send the ACPI Shutdown (which would simulate a "power button
push" event in the ACPI-aware OS) command to the QEmu monitor for the
HVM?  Not sure what the exact qemu command is (can never seem to get
the 'help' command in the qemu monitor to show just one page of help
topics).

Using KVM (which uses the same or similar qemu support) you can issue a
shutdown command in the qemu monitor, or via the host, and it will show
as an acpi shutdown request in the guest OS, and it will (if ACPI support
works in the guest) do a graceful shutdown.

--
Freddie Cash
fjwcash@xxxxxxxxx

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users