github.com/equinix-metal/virtlet@v1.5.2-0.20191204181327-1659b8a48e9b/README.md (about)

     1  # virtlet [![CircleCI](https://circleci.com/gh/Mirantis/virtlet/tree/master.svg?style=svg)](https://circleci.com/gh/Mirantis/virtlet/tree/master) [![Maintainability](https://api.codeclimate.com/v1/badges/7e40b1e1d7cd78c86a50/maintainability)](https://codeclimate.com/github/Mirantis/virtlet/maintainability) [![Go Report Card](https://goreportcard.com/badge/github.com/Mirantis/virtlet)](https://goreportcard.com/report/github.com/Mirantis/virtlet)
     2  
     3  Virtlet is a Kubernetes runtime server which allows you to run VM workloads, based on QCOW2 images.
     4  
     5  It is possible to run Virtlet by following the instructions from either [Setting up the environment](https://docs.virtlet.cloud/dev/setup/) or [Deploying Virtlet as a DaemonSet on kubeadm-dind-cluster](https://docs.virtlet.cloud/user-guide/virtlet-on-kdc/) documents. There's also [separate document](https://docs.virtlet.cloud/user-guide/real-cluster/) describing the process of installing Virtlet on real clusters.
     6  
     7  [See here](https://docs.virtlet.cloud/dev/architecture/) for the description of Virtlet architecture.
     8  
     9  ## Description & Documentation
    10  
    11  [See here](https://docs.virtlet.cloud) for user-facing Virtlet description and documentation.
    12  
    13  ## Community
    14  
    15  You can join
    16  [#virtlet](https://kubernetes.slack.com/messages/virtlet/) channel on
    17  [Kubernetes Slack](https://kubernetes.slack.com/messages)
    18  (register at [slack.k8s.io](http://slack.k8s.io) if you're not in k8s group already). Both the
    19  users and developers are welcome!
    20  
    21  ## Getting started with Virtlet
    22  
    23  To try out Virtlet follow the instructions from [Setting up the environment](https://docs.virtlet.cloud/dev/setup/) and [try out examples](examples/README.md) documents.
    24  
    25  ### Virtlet introduction video
    26  
    27  You can watch and listen to Virtlet demo video that was recorded on Kubernetes Community Meeting [here](https://youtu.be/Sl1Y0N-Tj1A?t=94).
    28  
    29  ### Command line interface
    30  
    31  Virtlet comes with a helper tool,
    32  [virtletctl](https://docs.virtlet.cloud/reference/virtletctl/), that helps managing the VM pods. The binaries are available for Linux and Mac OS X in the [Releases](https://github.com/Mirantis/virtlet/releases) section.
    33  You can also install virtletctl as a kubectl plugin:
    34  ```
    35  virtletctl install
    36  ```
    37  
    38  After that you can use `kubectl plugin virt` instead of `virtletctl` (`plugin` subcommand will not be necessary when kubectl plugins become stable):
    39  ```
    40  kubectl plugin virt ssh cirros@cirros-vm -- -i examples/vmkey
    41  ```
    42  
    43  ### Virtlet usage demo
    44  
    45  You can watch sample usage session under [this](https://asciinema.org/a/1a6xp5j4o22rnsx9wpvumd4kt) link.
    46  
    47  You can also give Virtlet a quick try using our demo script (requires Docker 1.12+):
    48  ```
    49  wget https://raw.githubusercontent.com/Mirantis/virtlet/master/deploy/demo.sh
    50  chmod +x demo.sh
    51  # './demo.sh --help' displays the description
    52  ./demo.sh
    53  ```
    54  
    55  The demo will start a test cluster, deploy Virtlet on it and then boot a [CirrOS](https://launchpad.net/cirros) VM there. You may access sample nginx server via `curl http://nginx.default.svc.cluster.local` from inside the VM. To disconnect from VM, press `Ctrl-D`. After the VM has booted, you can also use `virtletctl` tool to connect to its SSH server:
    56  ```
    57  virtletctl ssh cirros@cirros-vm -- -i examples/vmkey [command...]
    58  ```
    59  
    60  By default, CNI bridge plugin is used for cluster networking. It's also possible to override this with `calico`, `flannel` or `weave` plugin, e.g.:
    61  ```
    62  CNI_PLUGIN=flannel ./demo.sh
    63  ```
    64  
    65  There's also an option to deploy Virtlet on master node of the DIND
    66  cluster, which can be handy e.g. if you don't want to use worker nodes
    67  (i.e. start the cluster with `NUM_NODES=0`):
    68  ```
    69  VIRTLET_ON_MASTER=1 ./demo.sh
    70  ```
    71  
    72  The demo script will check for KVM support on the host and will make Virtlet use KVM if it's available on Docker host. If KVM is not available, plain QEMU will be used.
    73  
    74  The demo is based on [kubeadm-dind-cluster](https://github.com/kubernetes-sigs/kubeadm-dind-cluster) project. **Docker btrfs storage driver is currently unsupported.** Please refer to `kubeadm-dind-cluster` documentation for more info.
    75  
    76  You can remove the test cluster with `./dind-cluster-v1.14.sh clean` when you no longer need it.
    77  
    78  ## External projects using Virtlet
    79  There are some external projects using Virtlet already.
    80  One interesting usecase is that of [MIKELANGELO project](https://www.mikelangelo-project.eu/) that
    81  runs [OSv unikernels](http://osv.io) on Kubernetes using Virtlet. Unikernels are special case of VMs
    82  that are extremely small in size (20MB or so) and can only run a single process each. Nevertheless,
    83  Virtlet has no problems handling them on Kubernetes as demonstrated in this
    84  [video](https://www.youtube.com/watch?v=L-QrxDJSZBA). Microservice Demo is available
    85  [here](https://github.com/mikelangelo-project/osv-microservice-demo#deploying-unikernels-on-kubernetes).
    86  
    87  ## Need any help with Virtlet?
    88  
    89  If you will encounter any issue when using Virtlet please look into our [issue tracker](http://github.com/Mirantis/virtlet/issues) on github. If your case is not mentioned there - please fill new issue for it. In case of any questions you may also use [#virtlet](https://kubernetes.slack.com/messages/virtlet/) channel on
    90  [Kubernetes Slack](https://kubernetes.slack.com/messages).
    91  
    92  ## Contributing
    93  
    94  Virtlet is an open source project and any contributions are welcomed. Look into [Contributing guidelines](CONTRIBUTING.md) document for our guidelines and further instructions on how to set up Virtlet development environment.
    95  
    96  ## Licensing
    97  
    98  Unless specifically noted, all parts of this project are licensed under the [Apache 2.0 license](LICENSE).
    99