{"record":{"id":"4389dd31c46a7e0f","repo":"lima-vm/lima","slug":"currently-windows-guest-os-is-only-supported-on-qe-4389dd","errorCode":null,"errorMessage":"currently Windows guest OS is only supported on QEMU","messagePattern":"currently Windows guest OS is only supported on QEMU","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/driver/krunkit/krunkit_driver_darwin_arm64.go","lineNumber":249,"sourceCode":"\t\treturn err\n\t}\n\n\tif cfg.MountType != nil && (*cfg.MountType != limatype.VIRTIOFS && *cfg.MountType != limatype.REVSSHFS) {\n\t\treturn fmt.Errorf(\"field `mountType` must be %#q or %#q for krunkit driver, got %#q\", limatype.VIRTIOFS, limatype.REVSSHFS, *cfg.MountType)\n\t}\n\n\tif cfg.TPM != nil && *cfg.TPM {\n\t\treturn errors.New(\"field `tpm` is not supported in krunkit driver\")\n\t}\n\n\tif cfg.NestedVirtualization != nil && *cfg.NestedVirtualization {\n\t\tif macOSProductVersion.LessThan(*semver.New(\"15.0.0\")) {\n\t\t\treturn errors.New(\"nested virtualization requires macOS 15 or newer\")\n\t\t}\n\t}\n\n\tif cfg.OS != nil && *cfg.OS == limatype.WINDOWS {\n\t\treturn errors.New(\"currently Windows guest OS is only supported on QEMU\")\n\t}\n\n\treturn nil\n}\n\nfunc isFedoraConfigured(cfg *limatype.LimaYAML) bool {\n\tfor _, b := range cfg.Base {\n\t\tif strings.Contains(strings.ToLower(b.URL), \"fedora\") {\n\t\t\treturn true\n\t\t}\n\t}\n\tfor _, img := range cfg.Images {\n\t\tif strings.Contains(strings.ToLower(img.Location), \"fedora\") {\n\t\t\treturn true\n\t\t}\n\t}\n\treturn false\n}","sourceCodeStart":231,"sourceCodeEnd":267,"githubUrl":"https://github.com/lima-vm/lima/blob/dd909d0973cd84fa35f9e1693181b4585ea616c1/pkg/driver/krunkit/krunkit_driver_darwin_arm64.go#L231-L267","documentation":"Returned when the instance config requests a Windows guest OS, which only the QEMU driver currently supports, not krunkit.","triggerScenarios":"Setting `os: windows` in lima.yaml with vmType krunkit, then validating or starting the instance.","commonSituations":"Attempting to run Windows ARM VMs with krunkit; copying a Windows QEMU config and only changing vmType.","solutions":["Switch the instance to the QEMU driver for Windows guests","Use a Linux guest with krunkit"],"exampleFix":"// before (lima.yaml)\nos: windows\nvmType: krunkit\n// after\nos: windows\nvmType: qemu","handlingStrategy":"validation","validationCode":"if os == \"windows\" && vmType != \"qemu\" {\n    return errors.New(\"windows guests require vmType qemu\")\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Use qemu for Windows guests","Keep os: linux for krunkit instances","Validate configs before start"],"tags":["krunkit","config-validation","windows","guest-os"],"backgroundTag":"unsupported-config-value","analyzedSha":"dd909d0973cd84fa35f9e1693181b4585ea616c1","analyzedAt":"2026-09-01T14:24:59.842Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}