Merge pull request #4142 from sharifelgamal/error-messages
Add user-friendly error messages for known issues.pull/4149/head
commit
996aba49f8
|
@ -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 'minikube' 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",
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue