Closed Narratot closed 8 months ago
Within https://github.com/sandia-minimega/minimega/blob/master/cmd/minimega/kvm.go change lines 1313 to 1323 to
smp := strconv.FormatUint(vm.VCPUs, 10)
if vm.Cores != 0 {
smp = "cores=" + strconv.FormatUint(vm.Cores, 10)
} else {
smp = "cores=" + strconv.FormatUint(vm.VCPUs, 10)
}
if vm.Threads != 0 {
smp += ",threads=" + strconv.FormatUint(vm.Threads, 10)
}
if vm.Sockets != 0 {
smp += ",sockets=" + strconv.FormatUint(vm.Sockets, 10)
} else {
smp += ",sockets=" + strconv.FormatUint(1, 10)
}
The proposed change should enable the VM to have the allocated core count.
Within https://github.com/sandia-minimega/minimega/blob/master/cmd/minimega/kvm.go change lines 1313 to 1323 to
smp := strconv.FormatUint(vm.VCPUs, 10) if vm.Cores != 0 { smp = "cores=" + strconv.FormatUint(vm.Cores, 10) } else { smp = "cores=" + strconv.FormatUint(vm.VCPUs, 10) } if vm.Threads != 0 { smp += ",threads=" + strconv.FormatUint(vm.Threads, 10) } if vm.Sockets != 0 { smp += ",sockets=" + strconv.FormatUint(vm.Sockets, 10) } else { smp += ",sockets=" + strconv.FormatUint(1, 10) }
The proposed change should enable the VM to have the allocated core count.
Hi @Narratot this looks like great content for a PR if you would like to submit one!
@Narratot scratch that, I missed the PR you already submitted. :joy: Thank you!
Fixed by #1531
Describe your environment
Describe the bug I am not able to create guests with more than 2 CPU cores (I am within the phenix frontend).
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect the guests to have the defied core count.