From e9d0ffa1022d3fbed1633e1da8b935f35cef30c4 Mon Sep 17 00:00:00 2001 From: Qiu Jian Date: Fri, 24 Dec 2021 17:58:21 +0800 Subject: [PATCH] fix: arm supported maxcpu<64 --- pkg/hostman/guestman/qemu-arm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/hostman/guestman/qemu-arm.go b/pkg/hostman/guestman/qemu-arm.go index 45fca401f6..2cfb3b2d8d 100644 --- a/pkg/hostman/guestman/qemu-arm.go +++ b/pkg/hostman/guestman/qemu-arm.go @@ -167,7 +167,7 @@ function nic_mtu() { // warning: Number of hotpluggable cpus requested (128) // exceeds the recommended cpus supported by KVM (32) - cmd += fmt.Sprintf(" -smp cpus=%d,sockets=2,cores=64,maxcpus=128", cpu) + cmd += fmt.Sprintf(" -smp cpus=%d,sockets=2,cores=32,maxcpus=64", cpu) cmd += fmt.Sprintf(" -name %s", name) if options.HostOptions.EnableVmUuid { cmd += fmt.Sprintf(" -uuid %s", uuid)