From f99b4f4238a9a06b6792d16210d17b923909527b Mon Sep 17 00:00:00 2001 From: osy <50960678+osy@users.noreply.github.com> Date: Tue, 12 Nov 2024 08:38:26 -0800 Subject: [PATCH] config(apple): fixed nested virtualization not being set Fixes #6789 --- Platform/Shared/VMWizardState.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platform/Shared/VMWizardState.swift b/Platform/Shared/VMWizardState.swift index 48d9dbfc2..922d07849 100644 --- a/Platform/Shared/VMWizardState.swift +++ b/Platform/Shared/VMWizardState.swift @@ -325,7 +325,6 @@ enum VMBootDevice: Int, Identifiable { bootloader.linuxInitialRamdiskURL = linuxInitialRamdiskURL bootloader.linuxCommandLine = linuxBootArguments config.system.boot = bootloader - config.system.genericPlatform = UTMAppleConfigurationGenericPlatform() if let linuxRootImageURL = linuxRootImageURL { config.drives.append(UTMAppleConfigurationDrive(existingURL: linuxRootImageURL)) isSkipDiskCreate = true @@ -333,6 +332,7 @@ enum VMBootDevice: Int, Identifiable { } else { config.system.boot = try UTMAppleConfigurationBoot(for: .linux) } + config.system.genericPlatform = UTMAppleConfigurationGenericPlatform() config.virtualization.hasRosetta = linuxHasRosetta #endif case .Windows: