From 9e1388728ebef3ec7d705f2e53be1a18677c2b75 Mon Sep 17 00:00:00 2001 From: Silenio Quarti Date: Tue, 3 Sep 2024 20:43:41 -0400 Subject: [PATCH] runtime: fix bad default machine_type for remote hypervisor Fixes: #10249 Signed-off-by: Silenio Quarti --- src/runtime/pkg/katautils/config.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/runtime/pkg/katautils/config.go b/src/runtime/pkg/katautils/config.go index 9d1f2eacb3..8cb86bb30c 100644 --- a/src/runtime/pkg/katautils/config.go +++ b/src/runtime/pkg/katautils/config.go @@ -1341,13 +1341,12 @@ func newStratovirtHypervisorConfig(h hypervisor) (vc.HypervisorConfig, error) { } func newRemoteHypervisorConfig(h hypervisor) (vc.HypervisorConfig, error) { - machineType := h.machineType() return vc.HypervisorConfig{ RemoteHypervisorSocket: h.getRemoteHypervisorSocket(), RemoteHypervisorTimeout: h.getRemoteHypervisorTimeout(), DisableGuestSeLinux: true, // The remote hypervisor has a different guest, so Guest SELinux config doesn't work - HypervisorMachineType: machineType, + HypervisorMachineType: h.MachineType, SharedFS: config.NoSharedFS, // No valid value so avoid to append block device to list in kata_agent.appendDevices