Re: [PATCH v3] Add host UUID (to libvirt capabilities)

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

 



2010/5/25 Daniel P. Berrange <berrange@xxxxxxxxxx>:
> On Mon, May 24, 2010 at 02:57:33PM -0400, Stefan Berger wrote:
>> This patch adds the host UUID (to the capabilities of libvirt). The user
>> may provide it in libvirtd.conf overriding whatever sysfs may
>> return. If none or no valid UUID is provided in libvirtd.conf, reading the
>> UUID from sysfs is attempted. If that function doesn't provide a valid
>> (not all digits may be equal), generate a temporary one.
>> virSetHostUUIDStr() should be called first with the UUID read from
>> libvirtd.conf, but may only be called once. Subsequently the function
>> virGetHostUUID() can be called to get the UUID of the host.

>
> We'll need a different solution for things like VMWare/VirtualBox/Phyp/etc,
> so for now they don't get any host UUID in XML.
>

Regarding VMware: The vSphere API exposes the BIOS UUID.

I'm a bit short on testing hardware right now, but I looked up the
host UUIDs for an ESXi and a GSX server: The ESXi server has a valid
one but the GSX server had an empty one. The problem is that in case
the host UUID is not valid there's nothing the ESX driver could do
about that. Because if I wanted to generate a random host UUID for the
GSX server I would need to store it somewhere on the GSX server in
order to achieve a consistent mapping. But the vSphere API doesn't
provide such capabilities.

Matthias

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]