Skip to content

Commit

Permalink
Merge pull request #4152 from sharifelgamal/error-messages
Browse files Browse the repository at this point in the history
Add user-friendly error messages for VBOX_THIRD_PARTY & HYPERV_NO_VSWITCH
  • Loading branch information
tstromberg authored Apr 25, 2019
2 parents 144e9bf + 79ccf7a commit b497fad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/minikube/problem/err_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ var vmProblems = map[string]match{
Advice: "In some environments, this message is incorrect. Try 'minikube start --no-vtx-check'",
Issues: []int{3900},
},
"VBOX_THIRD_PARTY": {
Regexp: re(`The virtual machine * has terminated unexpectedly during startup with exit code 1`),
Advice: "A third-party program may be interfering with VirtualBox. Try disabling any real-time antivirus software, reinstalling VirtualBox and rebooting.",
Issues: []int{3910},
},
"KVM2_NOT_FOUND": {
Regexp: re(`Driver "kvm2" not found. Do you have the plugin binary .* accessible in your PATH`),
Advice: "Please install the minikube kvm2 VM driver, or select an alternative --vm-driver",
Expand All @@ -61,6 +66,11 @@ var vmProblems = map[string]match{
Advice: "Disable Hyper-V when you want to run VirtualBox to boot the VM",
Issues: []int{4051},
},
"HYPERV_NO_VSWITCH": {
Regexp: re(`no External vswitch found. A valid vswitch must be available for this command to run.`),
Advice: "Configure an external network switch following the official documentation, then add `--hyperv-virtual-switch=<switch-name>` to `minikube start`",
URL: "https://docs.docker.com/machine/drivers/hyper-v/",
},
}

// proxyDoc is the URL to proxy documentation
Expand Down

0 comments on commit b497fad

Please sign in to comment.