Skip to content

Commit 5a52ca7

Browse files
authored
kvm: export sysinfo for arm64 domains for cloud-init to work (#8940)
This fixes a limitation for arm64/aarch64 KVM hosts to correctly export the product name via sysconfig attribute. Without this `cloud-init` doesn't function correctly on arm64 platforms. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 7affbb1 commit 5a52ca7

File tree

1 file changed

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

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,7 @@ public String toString() {
222222
guestDef.append("<boot dev='" + bo + "'/>\n");
223223
}
224224
}
225-
if (_arch == null || !_arch.equals("aarch64")) {
226-
guestDef.append("<smbios mode='sysinfo'/>\n");
227-
}
225+
guestDef.append("<smbios mode='sysinfo'/>\n");
228226
guestDef.append("</os>\n");
229227
if (iothreads) {
230228
guestDef.append(String.format("<iothreads>%s</iothreads>", NUMBER_OF_IOTHREADS));

0 commit comments

Comments
 (0)