Skip to content

Commit 3915232

Browse files
authored
kvm: Present the UUID of the VM as serial through smbios information (#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 a0e16c5 commit 3915232

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
@@ -209,6 +209,7 @@ public String toString() {
209209
guestDef.append("<entry name='manufacturer'>" + getManufacturer() +"</entry>\n");
210210
guestDef.append("<entry name='product'>" + getProduct() + "</entry>\n");
211211
guestDef.append("<entry name='uuid'>" + _uuid + "</entry>\n");
212+
guestDef.append("<entry name='serial'>" + _uuid + "</entry>\n");
212213
guestDef.append("</system>\n");
213214
guestDef.append("</sysinfo>\n");
214215

0 commit comments

Comments
 (0)