Ubuntu の Virtualbox でminikubeを動かそうとしたらエラーが出て直した件
1. 各種 Requierments
OS: Ubuntu 16.04 LTS
Virtualbox: 5.1.14(Ubuntuデフォルト) ---> 5.2.14
2. minikube 、 kubectl
各所に書いてあるので記載しません。
3. 症状
RTR3InitEx failed with rc=-1912 (rc=-1912)
The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing
'/sbin/vboxconfig'
may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.
where: supR3HardenedMainInitRuntime what: 4 VERR_VM_DRIVER_VERSION_MISMATCH (-1912) - The installed support driver doesn't match the version of the user.
ブートできません
4. 対応
16.04 - VirtualBox - RTR3InitEx failed with rc=-1912 (rc=-1912) - Ask Ubuntu
https://askubuntu.com/questions/900794/virtualbox-rtr3initex-failed-with-rc-1912-rc-1912
4.1 動かしていた minikube を止めましょう
minikube delete
4.2 古いVirtualboxをガッツリ削除
sudo apt autoremove --purge virtualbox*
4.3 なくなったのを確認
dpkg -l virtualbox* | grep ^i
4.4 再インストール
https://www.virtualbox.org/wiki/Linux_Downloads
に沿って再度インストール
sudo apt-get update
sudo apt-get install virtualbox-5.2
4.5 Kernelモジュールを作り直し
sudo /sbin/vboxconfig
4.6 minikube を起動
minikube start --kubernetes-version v1.10
$ minikube start
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...
Kubectl is now configured to use the cluster.
Loading cached images from config file.
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
minikube Ready master 2m v1.10.0
5. お疲れ様でした。
Happy Kubernetes!