Skip to content

Commit d38de7e

Browse files
widodhslove
authored andcommitted
kvm: Present the UUID of the VM as serial through smbios information (apache#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
1 parent 58285a3 commit d38de7e

File tree

1 file changed

+1
-0
lines changed
  • plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource

1 file changed

+1
-0
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ public String toString() {
237237
guestDef.append("<entry name='manufacturer'>" + getManufacturer() +"</entry>\n");
238238
guestDef.append("<entry name='product'>" + getProduct() + "</entry>\n");
239239
guestDef.append("<entry name='uuid'>" + _uuid + "</entry>\n");
240+
guestDef.append("<entry name='serial'>" + _uuid + "</entry>\n");
240241
guestDef.append("</system>\n");
241242
guestDef.append("</sysinfo>\n");
242243

0 commit comments

Comments
 (0)