You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: pkg/minikube/problem/err_map.go
+63-9
Original file line number
Diff line number
Diff line change
@@ -36,10 +36,49 @@ var vmProblems = map[string]match{
36
36
Advice: "In some environments, this message is incorrect. Try 'minikube start --no-vtx-check'",
37
37
Issues: []int{3900},
38
38
},
39
-
"VBOX_THIRD_PARTY": {
40
-
Regexp: re(`The virtual machine * has terminated unexpectedly during startup with exit code 1`),
41
-
Advice: "A third-party program may be interfering with VirtualBox. Try disabling any real-time antivirus software, reinstalling VirtualBox and rebooting.",
42
-
Issues: []int{3910},
39
+
"VBOX_VERR_VMX_NO_VMX": {
40
+
Regexp: re(`VT-x is not available.*VERR_VMX_NO_VMX`),
41
+
Advice: "Please check your BIOS, and ensure that you are running without HyperV or other nested virtualization that may interfere",
42
+
Issues: []int{1994},
43
+
},
44
+
"VBOX_BLOCKED": {
45
+
Regexp: re(`NS_ERROR_FAILURE.*0x80004005`),
46
+
Advice: "Reinstall VirtualBox and verify that it is not blocked: System Preferences -> Security & Privacy -> General -> Some system software was blocked from loading",
47
+
Issues: []int{4107},
48
+
GOOS: "darwin",
49
+
},
50
+
"VBOX_DRV_NOT_LOADED": {
51
+
Regexp: re(`The vboxdrv kernel module is not loaded`),
52
+
Advice: "Run 'sudo modprobe vboxdrv' and reinstall VirtualBox if it fails.",
53
+
Issues: []int{4043},
54
+
},
55
+
"VBOX_DEVICE_MISSING": {
56
+
Regexp: re(`/dev/vboxdrv does not exist`),
57
+
Advice: "Run 'sudo modprobe vboxdrv' and reinstall VirtualBox if it fails.",
Advice: "Reinstall VirtualBox and verify that it is not blocked: System Preferences -> Security & Privacy -> General -> Some system software was blocked from loading",
76
+
Issues: []int{4107},
77
+
},
78
+
"VBOX_KERNEL_MODULE_NOT_LOADED": {
79
+
Regexp: re(`The vboxdrv kernel module is not loaded`),
80
+
Advice: "Run 'sudo modprobe vboxdrv' and reinstall VirtualBox if it fails.",
81
+
Issues: []int{4043},
43
82
},
44
83
"KVM2_NOT_FOUND": {
45
84
Regexp: re(`Driver "kvm2" not found. Do you have the plugin binary .* accessible in your PATH`),
@@ -51,16 +90,17 @@ var vmProblems = map[string]match{
51
90
Advice: "The KVM driver is unable to resurrect this old VM. Please run `minikube delete` to delete it and try again.",
52
91
Issues: []int{3901, 3566, 3434},
53
92
},
93
+
"KVM2_NETWORK_DEFINE_XML": {
94
+
Regexp: re(`not supported by the connection driver: virNetworkDefineXML`),
95
+
Advice: "Rebuild libvirt with virt-network support",
Copyright 2019 The Kubernetes Authors All rights reserved.
3
+
4
+
Licensed under the Apache License, Version 2.0 (the "License");
5
+
you may not use this file except in compliance with the License.
6
+
You may obtain a copy of the License at
7
+
8
+
http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+
Unless required by applicable law or agreed to in writing, software
11
+
distributed under the License is distributed on an "AS IS" BASIS,
12
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+
See the License for the specific language governing permissions and
14
+
limitations under the License.
15
+
*/
16
+
17
+
package problem
18
+
19
+
import (
20
+
"fmt"
21
+
"testing"
22
+
)
23
+
24
+
funcTestFromError(t*testing.T) {
25
+
vartests= []struct {
26
+
issueint
27
+
osstring
28
+
wantstring
29
+
errstring
30
+
}{
31
+
{0, "", "", "this is just a lame error message with no matches."},
32
+
{3614, "", "VBOX_HOST_ADAPTER", "Error starting host: Error starting stopped host: Error setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue"},
33
+
{3784, "", "VBOX_NOT_FOUND", "create: precreate: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path"},
34
+
{3849, "", "IP_NOT_FOUND", "bootstrapper: Error creating new ssh host from driver: Error getting ssh host name for driver: IP not found"},
35
+
{3859, "windows", "VBOX_HARDENING", `Unable to start VM: create: creating: Unable to start the VM: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm minikube --type headless failed:
36
+
VBoxManage.exe: error: The virtual machine 'minikube' has terminated unexpectedly during startup with exit code -1073741819 (0xc0000005). More details may be available in 'C:\Users\pabitra_b.minikube\machines\minikube\minikube\Logs\VBoxHardening.log'
{3922, "", "ISO_DOWNLOAD_FAILED", `unable to cache ISO: https://storage.googleapis.com/minikube/iso/minikube-v0.35.0.iso: failed to download: failed to download to temp file: download failed: 5 error(s) occurred:
39
+
* Temporary download error: Get https://storage.googleapis.com/minikube/iso/minikube-v0.35.0.iso: dial tcp 216.58.207.144:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.`},
0 commit comments