Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-devel

Re: [Xen-devel] How to get the persistent identifier of a domain?

To: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] How to get the persistent identifier of a domain?
From: "M.A. Williamson" <maw48@xxxxxxxxx>
Date: 28 Dec 2006 17:29:54 +0000
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Lily Huang <ushuanglily@xxxxxxxxx>
Delivery-date: Thu, 28 Dec 2006 09:29:42 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20061228171946.GL9818@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4d616cca0612272009j54225990rd9c41ad64e0d8176@xxxxxxxxxxxxxx> <20061228171946.GL9818@xxxxxxxxxxxxxxxxxxxxxx>
Reply-to: mark.williamson@xxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Here is my experimental setting. I start a domu, run "xm list --long", the uuid shown to me was (uuid 6cc8ab86-4ad4-7820-3326-53d666ff96aa). Then, I shut down this domu, and start the same domu again. I got a different uuid: (uuid 0c9ee2d6-4a9f-c0bf-989f-148bec284e15). You can see these two uuids are different.

I am using the latest xen-unstable.

Do you mean that you've done xm create <file>, xm shutdown <domain>, and
then xm create <file> again?  You are right, this will in effect create
two separate VMs, with the same configuration, but different identities
(and different UUIDs).

IIRC if you're using config files instead of the persistent VM support you can also ensure a stable UUID by specifying it in the VM config file?

Cheers,
Mark

If you use the new support for persistent VMs, then you should find
that the VM retains its identity.  xm new <file>, xm start <domain>,
xm shutdown <domain>, xm start <domain> should have the same effect as
the commands above, but you will see that the VM retains its UUID.

HTH,

Ewan.

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


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