[libvirt] [PATCH] [RFC] xen-xm: Generate UUID if not specified

Jim Fehlig jfehlig at suse.com
Fri Aug 3 21:32:41 UTC 2012


I received a bug report about 'virsh domxml-from-native xen-xm' failing
when the xm configuration does not contain a UUID.  IMO, this is a bit
harsh since UUID is not even required when defining a domain.

I first took the approach of skipping the parsing of UUID when it is not
specified in the xm config, but that results in a UUID of all zeros,
which is the dom0 UUID from the xen tools perspective.

I'd like to hear what other folks think about the attached patch, which
generates a UUID if it is not specified in the xm config.

Regards,
Jim

-------------- next part --------------
A non-text attachment was scrubbed...
Name: xen-xm-gen-uuid.patch
Type: text/x-diff
Size: 1704 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120803/73b4a264/attachment-0001.bin>


More information about the libvir-list mailing list