我尝试使用minikube start
启动minikube,但出现以下错误:
charlie @ charlie:〜$ minikube start启动本地Kubernetes v1.10.0 群集...正在启动VM ... E0705 00:39:35.199099 20888 start.go:168] 启动主机时出错:创建主机时出错:执行步骤时出错: 运行预创建检查。 :我们支持Virtualbox从 版本5。您的VirtualBox安装为“警告:vboxdrv内核 模块未加载。没有任何模块\ n 当前的内核(4.15.0-23通用),否则无法执行\ n
加载。请重新编译内核模块并通过\ n \ n
安装 sudo / sbin / vboxconfig \ n \ n您将无法启动虚拟机 直到解决此问题为止。\ n5.2.12r122591”。请在以下位置升级 https://www.virtualbox.org。正在重试。
我尝试启动virtualbox,但是出现以下错误:
charlie @ charlie:〜$ virtualbox 警告:vboxdrv内核模块是 未加载。没有模块 适用于当前内核(4.15.0-23通用),否则无法执行 加载。请重新编译内核模块并通过
安装sudo /sbin/vboxconfig You will not be able to start VMs until this problem is fixed.
我尝试运行sudo /sbin/vboxconfig
,但出现以下错误:
charlie @ charlie:〜$ sudo / sbin / vboxconfig vboxdrv.sh:正在停止 VirtualBox服务。 vboxdrv.sh:构建VirtualBox内核模块。 vboxdrv.sh:启动VirtualBox服务。 vboxdrv.sh:构建 VirtualBox内核模块。 vboxdrv.sh:失败:modprobe vboxdrv 失败了请使用“ dmesg”找出原因。
设置VirtualBox时出现问题。重新启动设置 进程,以根用户身份运行/ sbin / vboxconfig。
我尝试以root用户身份登录,但即使我是root用户,也仍然出现上述错误。 我正在将Ubuntu 18.04与minikube v0.28.0一起使用
答案 0 :(得分:1)
我尝试重新创建该问题,并且可以肯定特定于Ubuntu 18.04的Virtualbox。由于无法删除笔记本电脑上的安全启动以进行全面检查,因此我尝试了论坛中的一些解决方案,但安全启动却步步为营。我建议尝试安装linux-headers,dist-upgrade并检查您是否具有必需的软件包:
sudo apt-get -y install gcc make linux-headers-$(uname -r) dkms
sudo apt-get install dkms
sudo apt-get install virtualbox
因此,如果这不起作用,建议您使用其他的vm-driver。您可以使用 minikube start --vm-driver = none或尝试使用其他管理程序。我也可以说,如果Ubuntu-18.04是使用--vm-driver = none的VM,它确实可以工作。
答案 1 :(得分:1)
只有确切的问题。
array = ["a","b","c","d"]
inputJson = {"a":1,"b":2}
if all(k in array for k in inputJson):
print("Ok..")
else:
print("Error!")
# --> Ok..
这是VM问题。 解决方案:
安装后,尝试使用while counter < P_Ammount:
P_Size[counter] = input("Enter A Size S= Small M= Meduim L= Large ")
if P_Size[counter] == "S" or P_Size[counter] == "s": # both types of valadation for Lower and upper case
P_Size_Cost[counter] = 3.25 #Setting Price To List for Small
if P_Size[counter] == "M" or P_Size[counter] == "m":
P_Size_Cost[counter] = 5.50 #Setting Price To List for Meduim
if P_Size[counter] == "L" or P_Size[counter] == "l":
P_Size_Cost[counter] = 7.15 #Setting Price To List for Large
counter + 1
cmd,如果没有问题,则最好使用leo@tmv:~/dev/kubernetes$ minikube start --kubernetes-version v1.9.4
Starting local Kubernetes v1.9.4 cluster...
Starting VM...
E0430 16:10:25.962867 1225 start.go:180] Error starting host: Error creating host: Error executing step: Running precreate checks.
: We support Virtualbox starting with version 5. Your VirtualBox install is "WARNING: The vboxdrv kernel module is not loaded. Either there is no module\n available for the current kernel (4.15.0-47-generic) or it failed to\n load. Please recompile the kernel module and install it by\n\n sudo /sbin/vboxconfig\n\n You will not be able to start VMs until this problem is fixed.\n5.2.22r126460". Please upgrade at https://www.virtualbox.org.
Retrying.
E0430 16:10:25.964185 1225 start.go:186] Error starting host: Error creating host: Error executing step: Running precreate checks.
: We support Virtualbox starting with version 5. Your VirtualBox install is "WARNING: The vboxdrv kernel module is not loaded. Either there is no module\n available for the current kernel (4.15.0-47-generic) or it failed to\n load. Please recompile the kernel module and install it by\n\n sudo /sbin/vboxconfig\n\n You will not be able to start VMs until this problem is fixed.\n5.2.22r126460". Please upgrade at https://www.virtualbox.org
E0430 16:10:27.905310 1225 util.go:151] Error uploading error message: Error sending error report to https://clouderrorreporting.googleapis.com/v1beta1/projects/k8s-minikube/events:report?key=AIzaSyACUwzG0dEPcl-eOgpDKnyKoUFgHdfoFuA, got response code 400