Git Product home page Git Product logo

demo's Introduction

KubeVirt Demo

This demo will deploy KubeVirt on an existing minikube.

asciicast

This has been tested on the following distributions:

Quickstart

Note: The initial deployment to a new minikube instance can take a long time, because a number of containers have to be pulled from the internet.

Note: Due to this issue, currently a pre-release minikube iso is required. Use the following snippet to launch minikube using the custom iso:

$ minikube start --vm-driver kvm --network-plugin cni \
  --iso-url https://storage.googleapis.com/minikube-builds/1846/minikube-testing.iso
  1. If not installed, install minikube as described here: https://github.com/kubernetes/minikube/

    1. Install the driver
    2. Download the minikube binary
  2. Launch minikube with CNI:

# See the note above on the --iso-url parameter
$ minikube start \
  --vm-driver kvm \
  --network-plugin cni \
  --iso-url https://storage.googleapis.com/minikube-builds/1846/minikube-testing.iso
  1. Install via a package manager or download kubectl

  2. Deploy KubeVirt on it

$ git clone https://github.com/kubevirt/demo.git
$ cd demo
$ ./run-demo.sh
$ ./run-demo.sh 
KubeVirt (v0.0.1-alpha.6) demo on minikube
- Checking kubectl version ... OK
- Checking for minikube ... OK
- Checking out KubeVirt ... OK
- Deploying manifests - this can take several minutes!
vm "testvm" created
- Waiting for the cluster to be ready ...
  Cluster changed, checking if KubeVirt is ready ... Not yet.
...
  Cluster changed, checking if KubeVirt is ready ... Yes!
KubeVirt is now ready.
Optional, register the virt plugin for VM access:
  ./run-demo.sh plug
Try: $ kubectl get vms

# Run a script to verify that it operates correctly
$ ./test.sh
$ ./test.sh 
README contains correct version ... OK
VM is running ... OK
VM serial console works ... OK
PASS
  1. Start managing VMs
# After deployment you can manage VMs using the usual verbs:
$ kubectl get vms
$ kubectl get vms -o json

# To delete: kubectl delete vms testvm
# To create your own: kubectl create -f $YOUR_VM_SPEC

Accessing VMs (serial console & spice)

Currently you need a separate tool to access the graphical display or serial console of a VM, you can install it as a kubelet plugin using:

$ ./run-demo.sh plug
KubeVirt (v0.0.1-alpha.6) demo on minikube
- Checking kubectl version ... OK
- Fetching and registering virtctl ... OK

# Now the plugin is ready to use

# Connect to the serial console
$ kubectl plugin virt -- console -s http://$(minikube ip):8184 testvm

# Connect to the graphical display
$ kubectl plugin virt -- spice -s http://$(minikube ip):8184 testvm

Removal

To remove all traces of Kubevirt, you can undeploy it using:

$ ./run-demo.sh undeploy
$ ./run-demo.sh unplug

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.