From 9643f9bd59db5d21fa74dad87a131c7a5f0535e0 Mon Sep 17 00:00:00 2001 From: yaroslavborbat Date: Mon, 9 Dec 2024 10:49:40 +0300 Subject: [PATCH] fix cores Signed-off-by: yaroslavborbat --- .../virtualization-artifact/pkg/controller/kvbuilder/kvvm.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/virtualization-artifact/pkg/controller/kvbuilder/kvvm.go b/images/virtualization-artifact/pkg/controller/kvbuilder/kvvm.go index f884d132d..b1565f06a 100644 --- a/images/virtualization-artifact/pkg/controller/kvbuilder/kvvm.go +++ b/images/virtualization-artifact/pkg/controller/kvbuilder/kvvm.go @@ -224,7 +224,8 @@ func (b *KVVM) SetCpu(cores int, coreFraction string) error { } domainSpec.Resources.Requests[corev1.ResourceCPU] = *cpuRequest domainSpec.Resources.Limits[corev1.ResourceCPU] = *cpuLimit - domainSpec.CPU.Cores = uint32(cores) + // https://bugzilla.redhat.com/show_bug.cgi?id=1653453 + domainSpec.CPU.Cores = uint32(1) domainSpec.CPU.Sockets = uint32(cpuRequest.Value()) domainSpec.CPU.MaxSockets = uint32(cpuLimit.Value()) return nil