Skip to content

Commit

Permalink
kvm: Present the UUID of the VM as serial through smbios information (#…
Browse files Browse the repository at this point in the history
…9236)

This PR makes sure a KVM VM gets the UUID of the VM as a static serialnumber through smbios.

Some applications on primarily Windows servers require a stable serial number for licensing purposes. By providing this serial number we can make sure these applications can have a license configured.

More information: https://libvirt.org/formatdomain.html#smbios-system-information
  • Loading branch information
wido authored Sep 4, 2024
1 parent a0e16c5 commit 3915232
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ public String toString() {
guestDef.append("<entry name='manufacturer'>" + getManufacturer() +"</entry>\n");
guestDef.append("<entry name='product'>" + getProduct() + "</entry>\n");
guestDef.append("<entry name='uuid'>" + _uuid + "</entry>\n");
guestDef.append("<entry name='serial'>" + _uuid + "</entry>\n");
guestDef.append("</system>\n");
guestDef.append("</sysinfo>\n");

Expand Down

0 comments on commit 3915232

Please sign in to comment.