diff --git a/cmd/minikube/cmd/start.go b/cmd/minikube/cmd/start.go index 61b2fe0c2eab..bf83390f9a16 100644 --- a/cmd/minikube/cmd/start.go +++ b/cmd/minikube/cmd/start.go @@ -539,12 +539,14 @@ func validateConfig() { out.V{"memory": memorySizeMB, "default_memorysize": pkgutil.CalculateSizeInMB(constants.DefaultMemorySize)}) } + var cpuCount int if viper.GetString(vmDriver) == constants.DriverNone { - ci, err := cpu.Info() + // Uses the gopsutil cpu package to count the number of physical cpu cores + ci, err := cpu.Counts(false) if err != nil { - glog.Warningf("Unable to get CPU info: $v", err) + glog.Warningf("Unable to get CPU info: %v", err) } else { - cpuCount = ci.Cores + cpuCount = ci } } else { cpuCount = viper.GetInt(cpus)