From 11ba8f05ca6502bf4f18e1d2d7629085dacc6076 Mon Sep 17 00:00:00 2001 From: Silenio Quarti Date: Mon, 26 Aug 2024 10:17:40 -0400 Subject: [PATCH] runtime: Allow machine_type in kata config for remote hypervisors Fixes: #10211 Signed-off-by: Silenio Quarti --- src/runtime/pkg/katautils/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runtime/pkg/katautils/config.go b/src/runtime/pkg/katautils/config.go index b4ba75b987..9d1f2eacb3 100644 --- a/src/runtime/pkg/katautils/config.go +++ b/src/runtime/pkg/katautils/config.go @@ -1341,11 +1341,13 @@ 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, SharedFS: config.NoSharedFS, // No valid value so avoid to append block device to list in kata_agent.appendDevices