-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9008887
commit a616a80
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
title: "KubeVirt support" | ||
linkTitle: "KubeVirt support" | ||
weight: 1 | ||
date: 2020-05-26 | ||
description: > | ||
Using KubeVirt with minikube | ||
--- | ||
|
||
## Prerequisites | ||
|
||
- Linux | ||
- Nested Virtualization enabled | ||
- kvm2 driver | ||
|
||
### Enable KubeVirt on minikube | ||
Minikube can be started with default values and those will be enough to run a quick example, that being said, if you can spare a few more GiBs of RAM (by default it uses 2GiB), it’ll allow you to experiment further. | ||
|
||
We’ll create a profile for KubeVirt so it gets its own settings without interfering what any configuration you might have already, let’s start by increasing the default memory to 4GiB: | ||
|
||
```shell script | ||
minikube config -p kubevirt set memory 4096 | ||
minikube config -p kubevirt set vm-driver kvm2 | ||
minikube start -p kubevirt | ||
``` | ||
|
||
To enable this addon, simply run: | ||
```shell script | ||
minikube addons enable kubevirt-provisioner | ||
``` | ||
|
||
You will then need to check if your VM’s CPU supports virtualization extensions, you can check by executing the following command: | ||
```shell script | ||
minikube ssh -p kubevirt "egrep 'svm|vmx' /proc/cpuinfo" | ||
``` | ||
If the command does not generate any output, create the following ConfigMap so that KubeVirt uses emulation mode, otherwise skip to the next section: | ||
```shell script | ||
kubectl create configmap kubevirt-config -n kubevirt --from-literal debug.useEmulation=true | ||
``` | ||
|
||
Finally enable kubevirt: | ||
```shell script | ||
minikube addons enable kubevirt | ||
``` | ||
|
||
In a minute or so kubevirt's default components will be installed into your cluster. | ||
You can run `kubectl get pods -n kubevirt` to see the progress of the kubevirt installation. | ||
|
||
|
||
### Disable KubeVirt | ||
To disable this addon, simply run: | ||
```shell script | ||
minikube addons disable kubevirt | ||
minikube addons disable kubevirt-provisioner | ||
``` | ||
|
||
|
||
### More Information | ||
|
||
See official [Minikube Quickstart](https://kubevirt.io/quickstart_minikube/) documentation for more information and to install KubeVirt without using the addon. |