longxiaotian799 opened a new issue, #11529: URL: https://github.com/apache/cloudstack/issues/11529
### problem start from line 315 in HypervisorGuruBase.java if (vmProfile.getTemplate().getBits() == 32) { to.setArch("i686"); } else if("s390x".equals(System.getProperty("os.arch"))) { to.setArch("s390x"); } else { to.setArch("x86_64"); }. If host machine is arm, it goes to "else { to.setArch("x86_64"); }". "to" refers to "VirtualMachineTo", and it will be passed to "LibvirtComputingResource" and then to "LibvirtVMDef" later, thus affecting the generation of "<os><type arch=...>". Since this part is hard-coded here, the method "LibvirtVMDef.setGuestArch("aarch64")" has no chance to be called at all. ### versions main branch ### The steps to reproduce the bug 1. 2. 3. ... ### What to do about it? _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org