Virtlet vs KubeVirt
https://www.mirantis.com/blog/kubevirt-vs-virtlet-comparison-better/
KubeVirt 安装
这里使用kubernetes 1.14.5
开启软件模拟
由于虚拟机部署,硬件虚拟化限制
1 | root@node1:~# virt-host-validate qemu |
这里需要开启软件虚拟
1 | $ kubectl create namespace kubevirt |
部署
1 |
|
测试
Create a Virtual Machine
1 | wget https://raw.githubusercontent.com/kubevirt/kubevirt.github.io/master/labs/manifests/vm.yaml |
Apply the manifest to Kubernetes.
1 | kubectl apply -f https://raw.githubusercontent.com/kubevirt/kubevirt.github.io/master/labs/manifests/vm.yaml |
Manage Virtual Machines (optional):
To get a list of existing Virtual Machines. Note the running status.1
2kubectl get vms
kubectl get vms -o yaml testvm
启动
1 | # Start the virtual machine: |
或者
1 | # Start the virtual machine: |
查看状态
1 | root@node1:~# kubectl get vmis |
访问虚拟机
1 | root@node1:~# kubectl virt console testvm |
CDI
https://kubevirt.io/labs/kubernetes/lab2
参考:
https://kubevirt.io/user-guide/docs/latest/administration/intro.html