Minikube use go language writing, stand-alone version of the Kubernetes cluster, installation Minikube toss for 2 days, various errors.
Installation steps:
1. Download Minikube and set
#curl-lo minikubehttps://storage.googleapis.com/minikube/releases/v0.7.0/minikube-linux-amd64&& chmod +x Minikube && sudo mv minikube/usr/local/bin/
2. Confirm Minikube
# abound Minikube
/usr/local/bin/minikube
# Minikube Version
Minikube version:v0.7.0
3. Download Kubectl and set
We also need to download kubectl and set
# Curl-lo Kubectl http://storage.googleapis.com/kubernetes-release/release/v1.3.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl/usr/local/bin/
# abound Kubectl
/usr/local/bin/kubectl
# KUBECTL Version
Client version:version. Info{major: "1", Minor: "3", Gitversion: "v1.3.0", Gitcommit: "283137936a498aed572ee22af6774b6fb6e9fd94", gittreestate : "Clean", Builddate: "2016-07-01t19:26:38z", Goversion: "go1.6.2", Compiler: "GC", Platform: "Linux/amd64"}
Unable to connect to the Server:dialtcp 192.168.99.100:8443:connect:network is unreachable
4. Install VirtualBox
As Google officially wrote, minikuberequires the latest Virtualbox to is DWORD on your system, so you also need to install Virtualbox. For a long delay here,
There are various problems with VirtualBox installation.
# cd/etc/yum.repos.d/
#wget Http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
#yum Update
#yum install binutils qt gcc make patch libgomp glibc-headers glibc-develkernel-headers kernel-devel dkms
#export kern_dir=/usr/src/kernels/3.10.0-514.26.2.el7.x86_64
Note that the 3.10.0-514.26.2.el7.x86_64 may vary depending on the situation
Note: The network typically uses # yum installVirtualBox-5.1 to install VirtualBox, view log,
Log Confirmation:/var/log/vbox-install.log
The error found is as follows:
Virtualboxerror:kernel revisit is invalid. "; Run ' make oldconfig && make prepare ' in kernel src to fix it.
Install using the following method:
Install VirtualBox using RPM:
RPM-IVH virtualbox-5.0-5.0.12_104815_el7-1.x86_64.rpm
If an error occurs, the following information is displayed:
Warning: virtualbox-5.0-5.0.12_104815_el7-1.x86_64.rpm: header V4 dsa/sha1 Signature, key ID 98ab5139:nokey
Error: Dependency detection failed:
Libqtgui.so.4 () (64bit) is virtualbox-5.0-5.0.12_104815_el7-1.x86_64 required
Libqtopengl.so.4 () (64bit) is virtualbox-5.0-5.0.12_104815_el7-1.x86_64 required
This is because there are two dependent packages not installed, we need to install the following, use online installation, execute two commands:
Yuminstall QT
Yuminstall qt-x11
An error occurred, displaying the following information:
Recompilingvirtualbox kernel modules[Failure]
(Look at/var/log/vbox-install.log to findout what went wrong)
LN: Target "Setup" is not a directory
To view the error log:
Cat/var/log/vbox-install.log
makefile:185:*** error:unable to find the sources's your current Linux kernel. Specifykern_dir= and run make recycle. Stop it.
Learned from the Internet that some dependent software is not updated to the latest and needs to be updated:
Yumgroupinstall "Development Tools"
If VirtualBox5.1 is previously installed, a file conflict occurs, Yum–remove VirtualBox-5.1 deletes the high version.
BIOS or virtual machine settings: Vt-x/amd-v
VMware Setup method: VM => "Settings ..." => processors => check box virtualize Intel vt-x/eptor Amd-v/rvi
Note: The VM can only be set when it stops.