[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: mark.williamson@xxxxxxxxxxxx
  • From: "Lily Huang" <ushuanglily@xxxxxxxxx>
  • Date: Thu, 28 Dec 2006 14:19:18 -0500
  • Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ewan Mellor <ewan@xxxxxxxxxxxxx>
  • Delivery-date: Thu, 28 Dec 2006 11:19:00 -0800
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=GPvdAy8N13JIN9FnAlP9mT9n6K+b58oDNtt1RgeYM8Smp6LQu6eEfaPaIb2lOZjc+bN8so3bJrNoFjgwuIa7EIbqbyNDxrOI3xe/yUBsI9gqJMjsj19gxEL0QjxqJoe/++P/Z+uAuH7QF02rarNs2w/TFWa53fCkfHPvLt/PvXE=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Thanks for kind help from your guys.

After I specified the uuid in the configuration file, I got stable uuid across reboots. Now next question is:  how to get the uuid using program instead of command line. I mean, in the kernel space.

Thanks,
-lily

On 28 Dec 2006 17:29:54 +0000, M.A. Williamson <maw48@xxxxxxxxx> wrote:
>> 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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.