Hello everyone,
I installed k8s v1.25.0 on Fedora server 36 OS (1 node cluster ) then I installed kubevirt v0.55.0 and tried to run "
quay.io/kubevirt/cirros-container-disk-demo" VM but the status of the VM went to "ErrorUnschedulable". I appreciate your help to sort out what is the root cause for this failure.
Below is my observations and the details I have in points, please let me know if more details are required :
- Virtualization is enabled :
virt-host-validate qemu
QEMU: Checking for hardware virtualization : PASS
QEMU: Checking if device /dev/kvm exists : PASS
QEMU: Checking if device /dev/kvm is accessible : PASS
QEMU: Checking if device /dev/vhost-net exists : PASS
QEMU: Checking if device /dev/net/tun exists : PASS
QEMU: Checking for cgroup 'cpu' controller support : PASS
QEMU: Checking for cgroup 'cpuacct' controller support : PASS
QEMU: Checking for cgroup 'cpuset' controller support : PASS
QEMU: Checking for cgroup 'memory' controller support : PASS
QEMU: Checking for cgroup 'devices' controller support : PASS
QEMU: Checking for cgroup 'blkio' controller support : PASS
QEMU: Checking for device assignment IOMMU support : PASS
QEMU: Checking if IOMMU is enabled by kernel : PASS
QEMU: Checking for secure guest support : WARN (Unknown if this platform has Secure Guest support)
- The vm yaml is the one mentioned in kubevirt tutorial site >
https://kubevirt.io/labs/manifests/vm.yaml.
- the Launcher pod "virt-launcher-testvm-n2b67" stuck in pending status and the output for "kubectl describe " command can be found in the [launcher-description.txt] :
virt-launcher-testvm-n2b67 0/2 Pending 0 59m- when I described the node I noticed the kubvirt schedulable label set to false "kubevirt.io/schedulable=false", you can find the complete output for "kubectl describe node " command attached [Node-description.txt].
- Moreover the handler is not able to register devices as I can see below logs in the cirt-handler-XXXX pod logs.
{"component":"virt-handler","level":"info","msg":"SELinux is reported as 'permissive'","pos":"virt-handler.go:381","timestamp":"2022-08-31T13:17:52.173970Z"}
{"component":"virt-handler","level":"warning","msg":"Permissive mode, ignoring 'semodule' failure: out: \"Failed to resolve typeattributeset statement at /var/lib/selinux/targeted/tmp/modules/400/virt_launcher/cil:15\\nFailed to resolve AST\\n/sbin/semodule: Failed!\\n\", error: exit status 1","pos":"labels.go:102","timestamp":"2022-08-31T13:17:56.058845Z"}
{"component":"virt-handler","level":"info","msg":"Starting virt-handler controller.","pos":"vm.go:1348","timestamp":"2022-08-31T13:17:56.088893Z"}
{"component":"virt-handler","level":"info","msg":"Starting a device plugin for device: kvm","pos":"device_controller.go:56","timestamp":"2022-08-31T13:17:56.088990Z"}
{"component":"virt-handler","level":"info","msg":"Starting a device plugin for device: tun","pos":"device_controller.go:56","timestamp":"2022-08-31T13:17:56.089077Z"}
{"component":"virt-handler","level":"info","msg":"Starting a device plugin for device: vhost-net","pos":"device_controller.go:56","timestamp":"2022-08-31T13:17:56.089098Z"}
{"component":"virt-handler","level":"info","msg":"Starting a device plugin for device: sev","pos":"device_controller.go:56","timestamp":"2022-08-31T13:17:56.089109Z"}
{"component":"virt-handler","level":"info","msg":"refreshed device plugins for permitted/forbidden host devices","pos":"device_controller.go:292","timestamp":"2022-08-31T13:17:56.089140Z"}
{"component":"virt-handler","level":"info","msg":"enabled device-plugins for: []","pos":"device_controller.go:293","timestamp":"2022-08-31T13:17:56.089192Z"}
{"component":"virt-handler","level":"info","msg":"set verbosity to 2","pos":"virt-handler.go:457","timestamp":"2022-08-31T13:17:56.089208Z"}
{"component":"virt-handler","level":"info","msg":"disabled device-plugins for: []","pos":"device_controller.go:294","timestamp":"2022-08-31T13:17:56.089234Z"}
{"component":"virt-handler","level":"info","msg":"setting rate limiter to 5 QPS and 10 Burst","pos":"virt-handler.go:466","timestamp":"2022-08-31T13:17:56.089297Z"}
{"component":"virt-handler","level":"info","msg":"set verbosity to 2","pos":"virt-handler.go:457","timestamp":"2022-08-31T13:17:56.089313Z"}
{"component":"virt-handler","level":"info","msg":"setting rate limiter to 5 QPS and 10 Burst","pos":"virt-handler.go:466","timestamp":"2022-08-31T13:17:56.089164Z"}
{"component":"virt-handler","level":"info","msg":"refreshed device plugins for permitted/forbidden host devices","pos":"device_controller.go:292","timestamp":"2022-08-31T13:17:56.089399Z"}
{"component":"virt-handler","level":"info","msg":"enabled device-plugins for: []","pos":"device_controller.go:293","timestamp":"2022-08-31T13:17:56.089421Z"}
{"component":"virt-handler","level":"info","msg":"disabled device-plugins for: []","pos":"device_controller.go:294","timestamp":"2022-08-31T13:17:56.089497Z"}
{"component":"virt-handler","level":"error","msg":"Error starting sev device plugin","pos":"device_controller.go:68","reason":"error registering with device plugin manager: rpc error: code = Unknown desc = failed to dial device plugin: context deadline exceeded","timestamp":"2022-08-31T13:18:07.092539Z"}
{"component":"virt-handler","level":"error","msg":"Error starting tun device plugin","pos":"device_controller.go:68","reason":"error registering with device plugin manager: rpc error: code = Unknown desc = failed to dial device plugin: context deadline exceeded","timestamp":"2022-08-31T13:18:07.092524Z"}
{"component":"virt-handler","level":"error","msg":"Error starting kvm device plugin","pos":"device_controller.go:68","reason":"error registering with device plugin manager: rpc error: code = Unknown desc = failed to dial device plugin: context deadline exceeded","timestamp":"2022-08-31T13:18:07.092626Z"}
{"component":"virt-handler","level":"error","msg":"Error starting vhost-net device plugin","pos":"device_controller.go:68","reason":"error registering with device plugin manager: rpc error: code = Unknown desc = failed to dial device plugin: context deadline exceeded","timestamp":"2022-08-31T13:18:07.098892Z"}
W0831 13:18:07.996142 5118 client_config.go:617] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.
{"component":"virt-handler","level":"info","msg":"Updating cluster config from KubeVirt to resource version '422547'","pos":"configuration.go:320","timestamp":"2022-08-31T13:18:13.157955Z"}
{"component":"virt-handler","level":"info","msg":"refreshed device plugins for permitted/forbidden host devices","pos":"device_controller.go:292","timestamp":"2022-08-31T13:18:13.157994Z"}
{"component":"virt-handler","level":"info","msg":"enabled device-plugins for: []","pos":"device_controller.go:293","timestamp":"2022-08-31T13:18:13.158009Z"}
{"component":"virt-handler","level":"info","msg":"disabled device-plugins for: []","pos":"device_controller.go:294","timestamp":"2022-08-31T13:18:13.158021Z"}
{"component":"virt-handler","level":"info","msg":"setting rate limiter to 5 QPS and 10 Burst","pos":"virt-handler.go:466","timestamp":"2022-08-31T13:18:13.158038Z"}
{"component":"virt-handler","level":"info","msg":"set verbosity to 2","pos":"virt-handler.go:457","timestamp":"2022-08-31T13:18:13.158051Z"}
{"component":"virt-handler","level":"error","msg":"Error starting sev device plugin","pos":"device_controller.go:68","reason":"error registering with device plugin manager: rpc error: code = Unknown desc = failed to dial device plugin: context deadline exceeded","timestamp":"2022-08-31T13:18:20.097032Z"}
{"component":"virt-handler","level":"error","msg":"Error starting tun device plugin","pos":"device_controller.go:68","reason":"error registering with device plugin manager: rpc error: code = Unknown desc = failed to dial device plugin: context deadline exceeded","timestamp":"2022-08-31T13:18:20.097074Z"}
{"component":"virt-handler","level":"error","msg":"Error starting kvm device plugin","pos":"device_controller.go:68","reason":"error registering with device plugin manager: rpc error: code = Unknown desc = failed to dial device plugin: context deadline exceeded","timestamp":"2022-08-31T13:18:20.097166Z"}
{"component":"virt-handler","level":"error","msg":"Error starting vhost-net device plugin","pos":"device_controller.go:68","reason":"error registering with device plugin manager: rpc error: code = Unknown desc = failed to dial device plugin: context deadline exceeded","timestamp":"2022-08-31T13:18:20.113480Z"}