[英]VMWare Workstation Ubuntu 18.04 - Minikube: Error creating VM:
I'm attempting to run Minikube in a VMWare Workstation guest, running Ubuntu 18.04. 我试图在运行Ubuntu 18.04的VMWare Workstation guest虚拟机中运行Minikube。
kubectl version
results in: kubectl version
导致:
Client Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.0", GitCommit:"0ed33881dc4355495f623c6f22e7dd0b7632b7c0", GitTreeState:"clean", BuildDate:"2018-09-27T17:05:32Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"}
minikube version
results in: minikube version
导致:
minikube version: v0.29.0
I have enabled Virtualize Intel VT-x/EPT or AMD-V/RVI on the VMWare guest configuration. 我在VMWare客户机配置上启用了虚拟化Intel VT-x / EPT或AMD-V / RVI。 I have 25GB of hard drive space.
我有25GB的硬盘空间。 Yet, regardless of how I attempt to start Minikube, I get the following error:
但是,无论我如何尝试启动Minikube,都会出现以下错误:
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
E1005 11:02:32.495579 5913 start.go:168] Error starting host: Error creating host: Error creating machine: Error in driver during machine creation: Error creating VM: virError(Code=1, Domain=10, Message='internal error: qemu unexpectedly closed the monitor: 2018-10-05T09:02:29.926633Z qemu-system-x86_64: error: failed to set MSR 0x38d to 0x0
qemu-system-x86_64: /build/qemu-11gcu0/qemu-2.11+dfsg/target/i386/kvm.c:1807: kvm_put_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.').
Retrying.
Commands I've tried: 我尝试过的命令:
minikube start --vm-driver=kvm2
minikube start --vm-driver=kvm
minikube start --vm-driver=none
All result in the same thing. 所有结果都是一样的。
I notice that on the Ubuntu guest, the network will shortly disconnect and re-connect when I run minikube start
. 我注意到在Ubuntu客户机上,当我运行
minikube start
时,网络将很快断开连接并重新连接。 Is it a problem with the network driver? 网络驱动程序有问题吗? How would I debug this?
我将如何调试呢?
Apparently getting virtualbox as a dependency to use as a vm driver works. 显然,将virtualbox作为依赖项来用作vm驱动程序是可行的。
sudo apt install virtualbox virtualbox-ext-pack
minikube start --vm-driver=virtualbox
Now results in: 现在结果为:
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
Getting VM IP address...
Moving files into cluster...
Downloading kubeadm v1.10.0
Downloading kubelet v1.10.0
Finished Downloading kubelet v1.10.0
Finished Downloading kubeadm v1.10.0
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Starting cluster components...
etc 等等
I observed a similar issue on Ubuntu 18.04.1 VM (Intel), the solution I found is: 我在Ubuntu 18.04.1 VM(Intel)上观察到类似的问题,发现的解决方案是:
$ sudo cat > /etc/modprobe.d/qemu-system-x86.conf << EOF
options kvm_intel nested=1 enable_apicv=n
options kvm ignore_msrs=1
EOF
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.