diff --git a/cmd/minikube/cmd/start.go b/cmd/minikube/cmd/start.go index 0cd95e48bd04..0da4533edcc4 100644 --- a/cmd/minikube/cmd/start.go +++ b/cmd/minikube/cmd/start.go @@ -208,6 +208,11 @@ func runStart(cmd *cobra.Command, args []string) { console.Failure("Unable to load cached images from config file.") } + if config.MachineConfig.VMDriver == constants.DriverNone { + console.OutStyle("starting-none", "Configuring local host environment ...") + prepareNone() + } + if kubeconfig.KeepContext { console.OutStyle("kubectl", "To connect to this cluster, use: kubectl --context=%s", kubeconfig.ClusterName) } else { @@ -342,10 +347,6 @@ func startHost(api libmachine.API, mc cfg.MachineConfig) (*host.Host, bool) { if err != nil { exit.WithError("Failed to check if machine exists", err) } - if mc.VMDriver == constants.DriverNone { - console.OutStyle("starting-none", "Configuring local host environment ...") - prepareNone() - } var host *host.Host start := func() (err error) {