From 2f799f02b4b3954ab8d776c1abdc40068f459474 Mon Sep 17 00:00:00 2001 From: Bradley Ayers Date: Thu, 4 Jul 2024 16:09:22 +0800 Subject: [PATCH] Use qemu by default on M3 macs This removes the special case logic for M3 macs that use the vz driver instead of qemu. A lot of people are having trouble with vz on M3 macs: - https://github.com/abiosoft/colima/issues/987#issuecomment-1999938930 - https://github.com/abiosoft/colima/pull/1045#issue-2363549238 - https://github.com/abiosoft/colima/issues/985#issue-2132482350 - https://github.com/abiosoft/colima/issues/985#issuecomment-2024729107 - https://github.com/abiosoft/colima/issues/985#issuecomment-1987058790 --- cmd/start.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/cmd/start.go b/cmd/start.go index 19cff925c..5f261ba5c 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -241,12 +241,6 @@ func mountsFromFlag(mounts []string) []config.Mount { func setDefaults(cmd *cobra.Command) { if startCmdArgs.VMType == "" { startCmdArgs.VMType = defaultVMType - - // m3 devices cannot use qemu - if util.M3() { - startCmdArgs.VMType = "vz" - cmd.Flag("vm-type").Changed = true - } } if util.MacOS13OrNewer() { @@ -281,10 +275,6 @@ func setConfigDefaults(conf *config.Config) { if conf.VMType == "" { conf.VMType = defaultVMType } - // m3 devices cannot use qemu - if util.M3() { - conf.VMType = "vz" - } if conf.MountType == "" { conf.MountType = defaultMountTypeQEMU