[Libvir] uuid of newly created domain

Richard W.M. Jones rjones at redhat.com
Mon Mar 31 10:09:00 UTC 2008


On Sat, Mar 29, 2008 at 03:53:22PM -0700, Vadim Zaliva wrote:
> I am running into interesting problem with UUID. I am using Ruby bindings, 
> but I think the
> problem is not specific to Ruby. I am doing roughly the following:
>
> dom = c.define_domain_xml(xml)
> dom1 = c.ookup_domain_by_uuid(dom.uuid)
>
> and I got an error that domain with given UUID is not found.
>
> If I print UUID of newly defined domain and compare it with output
> of 'dominfo' command in virsh I can see that it differs.
>
> Could anybody shed some light on why UUID returned by define_domain_xml()
> is invalid?

That's quite strange.  Is this Xen?  What does the XML look like?

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top




More information about the libvir-list mailing list