From f61d62647a34c87330a93613d4fae742512bb085 Mon Sep 17 00:00:00 2001 From: josedonizetti Date: Wed, 3 Jul 2019 17:11:30 -0300 Subject: [PATCH] Add comment about kvm2 force upgrade --- cmd/minikube/cmd/start.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/minikube/cmd/start.go b/cmd/minikube/cmd/start.go index 07b096bbf7..0c441b5702 100644 --- a/cmd/minikube/cmd/start.go +++ b/cmd/minikube/cmd/start.go @@ -859,8 +859,8 @@ func validateDriverVersion(vmDriver string) { cmd := exec.Command("docker-machine-driver-kvm2", "version") output, err := cmd.Output() - // we don't want to fail if an error was returned, libmachine has a nice message for the user if - // the driver isn't present + // we don't want to fail if an error was returned, + // libmachine has a nice message for the user if the driver isn't present if err != nil { console.Warning("Error checking driver version: %v", err) return @@ -868,6 +868,7 @@ func validateDriverVersion(vmDriver string) { v := extractVMDriverVersion(string(output)) + // if the driver doesn't have return any version, it is really old, we force a upgrade. if len(v) == 0 { exit.WithCode(exit.Failure, "Please upgrade the 'docker-machine-driver-kvm2'.") }