1,最靠谱的文档
https://remimin.github.io/2018/09/14/kubevirt/
https://blog.csdn.net/oliverlyn/article/details/89765774
https://kubevirt.io/user-guide
2,最新的代码 在这里
https://github.com/kubevirt/kubevirt/releases
看来最新的代码已经演进到operator了
没有清晰的文档
找了些链接,都没有体系,这个已经是最靠谱的呢
按照 这个文档实施了一番
https://remimin.github.io/2018/09/14/kubevirt/
kubectl get vmis -n vm
NAME AGE
ubuntu 55s
#在k8s node查看虚拟机运行情况
[root@ubuntu /]# ps -ef | grep qemu
root 1 0 0 05:08 ? 00:00:00 /bin/bash /usr/share/kubevirt/virt-launcher/entrypoint.sh —qemu-timeout 5m —name ubuntu —uid 205f551f-d1cb-11e8-9a48-fa163ebda1b8 —namespace vm —kubevirt-share-dir /var/run/kubevirt —readiness-file /tmp/healthy —grace-period-seconds 45 —hook-sidecars 0
root 9 1 0 05:08 ? 00:00:00 virt-launcher —qemu-timeout 5m —name ubuntu —uid 205f551f-d1cb-11e8-9a48-fa163ebda1b8 —namespace vm —kubevirt-share-dir /var/run/kubevirt —readiness-file /tmp/healthy —grace-period-seconds 45 —hook-sidecars 0
qemu 214 1 39 05:08 ? 00:00:35 /usr/bin/qemu-system-x86_64 -machine accel=kvm -name guest=vm_ubuntu,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-1-vm_ubuntu/master-key.aes -machine pc-q35-2.12,accel=kvm,usb=off,dump-guest-core=off -cpu Haswell-noTSX,vme=on,ss=on,f16c=on,rdrand=on,hypervisor=on,arat=on,tsc_adjust=on,xsaveopt=on,pdpe1gb=on,abm=on -m 2048 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid 0d1f2051-ad1e-467f-b69e-c844f04edf88 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-1-vm_ubuntu/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot strict=on -device pcie-root-port,port=0x10,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x2 -device pcie-root-port,port=0x11,chassis=2,id=pci.2,bus=pcie.0,addr=0x2.0x1 -drive file=/var/run/kubevirt-private/vmi-disks/ubuntu/disk.img,format=raw,if=none,id=drive-ua-ubuntudisk -device ide-hd,bus=ide.0,drive=drive-ua-ubuntudisk,id=ua-ubuntudisk,bootindex=1 -netdev tap,fd=23,id=hostua-default -device virtio-net-pci,netdev=hostua-default,id=ua-default,mac=1e:3c:9a:25:33:7e,bus=pci.1,addr=0x0 -chardev socket,id=charserial0,path=/var/run/kubevirt-private/205f551f-d1cb-11e8-9a48-fa163ebda1b8/virt-serial0,server,nowait -device isa-serial,chardev=charserial0,id=serial0 -vnc vnc=unix:/var/run/kubevirt-private/205f551f-d1cb-11e8-9a48-fa163ebda1b8/virt-vnc -device VGA,id=video0,vgamem_mb=16,bus=pcie.0,addr=0x1 -msg timestamp=on
[root@k8s-master-01 kubevirt]# kubectl get pod -n vm -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE
virt-launcher-ubuntu-kl7pt 1/1 Running 0 24s 10.244.154.251 k8s-node-01
#登陆进入虚拟机
[root@k8s-master-01 kubevirt]# ssh me@10.244.154.251
me@10.244.154.251’s password:
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-29-generic x86_64)
Documentation: https://help.ubuntu.com
Management: https://landscape.canonical.com
Support: https://ubuntu.com/advantage
Canonical Livepatch is available for installation.
- Reduce system reboots and improve kernel security. Activate at:
https://ubuntu.com/livepatch
209 packages can be updated.
83 updates are security updates.
Last login: Wed Oct 17 13:09:08 2018 from 172.2.1.100
me@me-VirtualBox:~$ ip a
1: lo:
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp1s0:
link/ether 1e:3c:9a:25:33:7e brd ff:ff:ff:ff:ff:ff
inet 10.244.154.251/32 brd 10.244.154.251 scope global dynamic noprefixroute enp1s0
valid_lft 86313563sec preferred_lft 86313563sec
inet6 fe80::e6f1:6fdd:2036:aa83/64 scope link noprefixroute
valid_lft forever preferred_lft forever
有vm 调度,但没有qemu 真正运行, 感觉文档
时间关系,不再尝试尝试了,
感觉可以用k8s 调度可以虚机