diff --git a/docs/drivers.md b/docs/drivers.md index d50692a9fc41..3e568912eae8 100644 --- a/docs/drivers.md +++ b/docs/drivers.md @@ -22,6 +22,14 @@ To install the KVM2 driver, first install and configure the prereqs: * Ubuntu 16.x or older: `sudo apt install libvirt-bin libvirt-daemon-system qemu-kvm` * Fedora/CentOS/RHEL: `sudo yum install libvirt-daemon-kvm qemu-kvm` +Enable,start, and verify the libvirtd service has started. +```shell +sudo systemctl enable libvirtd.service +sudo systemctl start libvirtd.service +sudo systemctl status libvirtd.service +``` + + Then you will need to add yourself to libvirt group (older distributions may use libvirtd instead) `sudo usermod -a -G libvirt $(whoami)` @@ -37,6 +45,7 @@ curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine- && sudo install docker-machine-driver-kvm2 /usr/local/bin/ ``` + NOTE: Ubuntu users on a release older than 18.04, or anyone experiencing [#3206: Error creating new host: dial tcp: missing address.](https://github.com/kubernetes/minikube/issues/3206) you will need to build your own driver until [#3689](https://github.com/kubernetes/minikube/issues/3689) is resolved. Building this binary will require [Go v1.11](https://golang.org/dl/) or newer to be installed. ``` @@ -55,6 +64,18 @@ To use the kvm2 driver: minikube start --vm-driver kvm2 ``` +or, to use kvm2 as a default driver: + +```shell +minikube config set vm-driver kvm2 +``` + +and run minikube as usual: + +```shell +minikube start +``` + #### Hyperkit driver The Hyperkit driver will eventually replace the existing xhyve driver.