Hello,
I'm giving kubevirt a test on minikube using kvm2 driver and I'm having issues launching a console or attaching vnc to the vm or getting any VM to start including the demo project.
Things I've done:
1)
minikube start \
--vm-driver kvm2 \
--network-plugin cni
minikube dashboard shows up and everything is up and running.
2)
First create the groups/etc via:
(tested 2 versions)
export VERSION=v0.4.1
#export VERSION=v0.5.0-alpha.1
kubectl create \
3) Created my own VM template via:
metadata:
name: testvm-ephemeral
kind: VirtualMachine
spec:
domain:
devices:
disks:
- type: RegistryDisk:v1alpha
source:
name: senior7515/fedora27qcow2:latest
target:
dev: vda
name: registrydisk
volumeName: registryvolume
interfaces:
- source:
network: default
type: network
memory:
unit: MB
value: 64
os:
type:
os: hvm
type: qemu
I notice a Pod gets created w/ the command:
compute
Image:
kubevirt/virt-launcher:v0.4.1
Commands:
/entrypoint.sh
--qemu-timeout
5m
--name
testvm-ephemeral
--namespace
default
--kubevirt-share-dir
/var/run/kubevirt
--readiness-file
/tmp/healthy
--grace-period-seconds
45
4)
I keep getting this issue:
Readiness probe failed: cat: /tmp/healthy: No such file or directory
kubelet minikube
spec.containers{compute}
5
2018-05-01T19:30 UTC
2018-05-01T19:30 UTC
5)
virtctl shows an error (expected)
virtctl vnc testvm-ephemeral
Error encountered: Can't connect to websocket (400): Unable to connect to VM because phase is Scheduled instead of Running
Thank you for any help/tips/ pointers.
I tried looking at kubevirt-ansible but didn't run it - it has a ton of openshift specific logic that I have not manage to fully grok.