[libvirt] [PATCHv2 4/5] uuid: require smbios uuid and domain uuid to match
Daniel Veillard
veillard at redhat.com
Sun Dec 5 08:03:10 UTC 2010
On Fri, Dec 03, 2010 at 02:56:17PM -0700, Eric Blake wrote:
> * src/conf/domain_conf.c (virDomainDefParseXML): Prefer sysinfo
> uuid over generating one, and if both uuids are present, require
> them to be identical.
> * src/qemu/qemu_conf.c (qemuBuildSmbiosSystemStr): Allow skipping
> the uuid.
> (qemudBuildCommandLine): Adjust caller; <smbios mode=host/> must
> not use host uuid in place of guest uuid.
> ---
>
> The qemu developers pointed out that '-uuid xyz' and '-smbios
> type=1,uuid=xyz' both have the same effect. They argued that -uuid is
> deprecated, but it's easier for libvirt to always supply it.
> Meanwhile, they were clear that if both values were supplied, the two
> uuids had better be identical (current qemu favors -uuid over -smbios,
> but it's not guaranteed to stay that way in the future).
in practice I ended up at least on one test where -uuid and
<smbios mode=host/> failed with the code in qemu complaining that
the UUID was not well formed, so yes that's a good thing !
ACK
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel at veillard.com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
More information about the libvir-list
mailing list