• Stars
    star
    735
  • Rank 60,314 (Top 2 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created almost 8 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Kubernetes CRI implementation for running VM workloads

virtlet CircleCI Maintainability Go Report Card

Virtlet is a Kubernetes runtime server which allows you to run VM workloads, based on QCOW2 images.

It is possible to run Virtlet by following the instructions from either Setting up the environment or Deploying Virtlet as a DaemonSet on kubeadm-dind-cluster documents. There's also separate document describing the process of installing Virtlet on real clusters.

See here for the description of Virtlet architecture.

Description & Documentation

See here for user-facing Virtlet description and documentation.

Community

You can join #virtlet channel on Kubernetes Slack (register at slack.k8s.io if you're not in k8s group already). Both the users and developers are welcome!

Getting started with Virtlet

To try out Virtlet follow the instructions from Setting up the environment and try out examples documents.

Virtlet introduction video

You can watch and listen to Virtlet demo video that was recorded on Kubernetes Community Meeting here.

Command line interface

Virtlet comes with a helper tool, virtletctl, that helps managing the VM pods. The binaries are available for Linux and Mac OS X in the Releases section. You can also install virtletctl as a kubectl plugin:

virtletctl install

After that you can use kubectl plugin virt instead of virtletctl (plugin subcommand will not be necessary when kubectl plugins become stable):

kubectl plugin virt ssh cirros@cirros-vm -- -i examples/vmkey

Virtlet usage demo

You can watch sample usage session under this link.

You can also give Virtlet a quick try using our demo script (requires Docker 1.12+):

wget https://raw.githubusercontent.com/Mirantis/virtlet/master/deploy/demo.sh
chmod +x demo.sh
# './demo.sh --help' displays the description
./demo.sh

The demo will start a test cluster, deploy Virtlet on it and then boot a 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:

virtletctl ssh cirros@cirros-vm -- -i examples/vmkey [command...]

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.:

CNI_PLUGIN=flannel ./demo.sh

There's also an option to deploy Virtlet on master node of the DIND cluster, which can be handy e.g. if you don't want to use worker nodes (i.e. start the cluster with NUM_NODES=0):

VIRTLET_ON_MASTER=1 ./demo.sh

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.

The demo is based on kubeadm-dind-cluster project. Docker btrfs storage driver is currently unsupported. Please refer to kubeadm-dind-cluster documentation for more info.

You can remove the test cluster with ./dind-cluster-v1.14.sh clean when you no longer need it.

External projects using Virtlet

There are some external projects using Virtlet already. One interesting usecase is that of MIKELANGELO project that runs OSv unikernels on Kubernetes using Virtlet. Unikernels are special case of VMs that are extremely small in size (20MB or so) and can only run a single process each. Nevertheless, Virtlet has no problems handling them on Kubernetes as demonstrated in this video. Microservice Demo is available here.

Need any help with Virtlet?

If you will encounter any issue when using Virtlet please look into our issue tracker 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 channel on Kubernetes Slack.

Contributing

Virtlet is an open source project and any contributions are welcomed. Look into Contributing guidelines document for our guidelines and further instructions on how to set up Virtlet development environment.

Licensing

Unless specifically noted, all parts of this project are licensed under the Apache 2.0 license.

More Repositories

1

cri-dockerd

dockerd as a compliant Container Runtime Interface for Kubernetes
Go
1,008
star
2

k8s-AppController

AppController is a pod that you can spawn in your Kubernetes cluster which will take care of your complex deployments for you.
Go
219
star
3

kqueen

Kubernetes queen - cluster manager
Python
138
star
4

pipeline-library

Groovy
97
star
5

k8s-externalipcontroller

External IP controller is k8s application which is deployed on top of k8s cluster and which configures External IPs on k8s worker node(s) to provide IP connectivity.
Go
78
star
6

k8s-netchecker-server

Basic network checker service to check DNS and connectivity in kubernetes cluster
Go
67
star
7

compliance

Docker Enterprise Edition Security Controls for Compliance
Go
66
star
8

openstack-lbaas

Load balancing service for OpenStack
Python
53
star
9

criproxy

Multiple CRIs per node & running CRI implementations inside pods
Go
41
star
10

k8s-apps

Kubernetes Helm charts
Go
40
star
11

ceph-lcm

Python
36
star
12

disk_perf_test_tool

Python
36
star
13

reclass-system-salt-model

32
star
14

fuel

Ruby
32
star
15

mk-pipelines

Groovy
27
star
16

launchpad

27
star
17

fuelweb

Python
23
star
18

k8s-daemonupgradecontroller

DaemonSet upgrade controller for kubernetes
23
star
19

k8s-devbox

Reproducible Kubernetes development environment
Shell
19
star
20

mk-lab-salt-model

DEPRECATED - this lab model is outdated and not maintained.
Shell
16
star
21

stepler

Full documentation
Python
15
star
22

mos-integration-tests

Python
14
star
23

lens-extension-cc

A Lens Extension that makes it easy to connect Lens to a Mirantis Container Cloud instance and add its clusters to Lens.
JavaScript
14
star
24

k8s-netchecker-agent

Basic network checker agent to check DNS and connectivity in kubernetes cluster
Go
13
star
25

stackalytics

OpenStack contribution dashboard
Python
12
star
26

openstack-utils

Python
11
star
27

CloudFerry

Openstack workload migration tool
Python
9
star
28

kostyor

Orchestrate OpenStack upgrades
Python
9
star
29

kqueen-ui

Separated UI for https://github.com/Mirantis/kqueen
Python
9
star
30

solar

This repo is OUTDATED!!! We moved to OpenStack
Python
8
star
31

swift-encrypt

Python
8
star
32

mos-horizon

Python
7
star
33

cloudpipe-image-auto-creation

Fully automated cloudpipe image creation
Shell
7
star
34

release-openstack-k8s

Shell
7
star
35

tcp-qa

Python
6
star
36

gosa-openstack

Gosa plugin for managing Nova users
6
star
37

vmware-dvs

Python
6
star
38

dhcp-relay

DHCPv4-Relay (opinionated Golang implementation).
Go
5
star
39

fuel-main

Python
5
star
40

devops

Python
5
star
41

training-lab

Training lab for MCP in Azure
HCL
5
star
42

mcc-on-equinix-terraform-templates

mcc-on-equinix-terraform-templates
HCL
5
star
43

ceph-monitoring

Python
5
star
44

rabbitmq-autocluster

5
star
45

puppet-bootstrap

Bootstrap scripts for Foreman and Puppet servers
Shell
4
star
46

statkube

Kubernetes development stats
Go
4
star
47

openstack-fedora-specs

Shell
4
star
48

fuel-plugin-standalone-ceph

Puppet
4
star
49

nova-scheduler-volume-affinity-filter

Python
4
star
50

terraform-provider-k0sctl

Go
4
star
51

rally-plugins

Custom rally plugins for testing platform components
Python
4
star
52

zabbix-configuration-files

Zabbix configuration files
3
star
53

dataops-dataeng

A tool to scrape data from multiple integrations
Go
3
star
54

fuel-docs

Python
3
star
55

openstack-ha-tests

The repository with HA/destructive tests for OpenStack clouds
Python
3
star
56

telegraf

Go
3
star
57

kostyor-openstack-ansible

OpenStack Ansible driver for Kostyor.
Python
3
star
58

mos-tempest-runner

The repository with scripts which allow to run Tempest tests for OpenStack clouds
Python
3
star
59

security

Home of the Mirantis PSIRT
2
star
60

fuelweb-test

Python
2
star
61

mcp-common-scripts

Shell
2
star
62

stacklight-salt-model

Shell
2
star
63

launchpad-reports-summary

status
JavaScript
2
star
64

ucpbackup

Shell
2
star
65

puppet-savanna

Ruby
2
star
66

terraform-provider-msr

Go
2
star
67

docker-aptly

Shell
2
star
68

fuel-plugin-external-ceph

Puppet
2
star
69

tools-sustaining

Python
2
star
70

osagent

Python agent for Windows that sets password. Works with OpenStack + XCP
Python
2
star
71

astute

Ruby
2
star
72

container-cloud-cli

PowerShell
2
star
73

mos-ci-deployment-scripts

Shell
2
star
74

docker-jenkins

CSS
2
star
75

openstack-lbaas-cli

CLI for OpenStack LBaaS
Python
1
star
76

mirantis-demos

Shell
1
star
77

cvp-configuration

Shell
1
star
78

rpc_monitor

monitoring tools for oslo.messaging
Python
1
star
79

f2s

Python
1
star
80

mos-updates

1
star
81

docker-gerrit

CSS
1
star
82

openstack-k8s-virtual-lab

Shell
1
star
83

solar-qa

1
star
84

cvp-sanity-checks

Python
1
star
85

rundeck-cis-jobs

1
star
86

mira-ceph-ansible

Python
1
star
87

puppet-control-template

Generic template for Puppet Control repository
Ruby
1
star
88

fuel-provision

1
star
89

bird-containers

Shell
1
star
90

whale

Python
1
star
91

mos-components-ci

Shell
1
star
92

k8s-istio-webinar

Shell
1
star
93

k8srnd-sockshop-catalogue

Go
1
star
94

fuel-plugin-backup

Shell
1
star
95

ifmap-python-client

Python
1
star
96

rally

1
star
97

sriov-scheduler

Go
1
star
98

terraform-provider-mirantis

This is Mirantis' terraform module containing providers for all Mirantis products
Go
1
star
99

helm-charts

Smarty
1
star
100

ccp-docker-jenkins

Shell
1
star