kubevirt: panic: fork/exec /usr/sbin/virtqemud: errno 0

What happened:

KubeVirt v0.59.0 enabled rootless mode by default. This makes my VMs unable to start:

{"component":"virt-launcher","level":"info","msg":"Collected all requested hook sidecar sockets","pos":"manager.go:86","timestamp":"2023-03-20T15:23:53.580575Z"}
{"component":"virt-launcher","level":"info","msg":"Sorted all collected sidecar sockets per hook point based on their priority and name: map[]","pos":"manager.go:89","timestamp":"2023-03-20T15:23:53.580605Z"}
{"component":"virt-launcher","level":"info","msg":"Connecting to libvirt daemon: qemu+unix:///session?socket=/var/run/libvirt/virtqemud-sock","pos":"libvirt.go:496","timestamp":"2023-03-20T15:23:53.580998Z"}
{"component":"virt-launcher","level":"info","msg":"Connecting to libvirt daemon failed: virError(Code=38, Domain=7, Message='Failed to connect socket to '/var/run/libvirt/virtqemud-sock': No such file or directory')","pos":"libvirt.go:504","timestamp":"2023-03-20T15:23:53.581221Z"}
{"component":"virt-launcher","level":"error","msg":"failed to start virtqemud","pos":"libvirt_helper.go:250","reason":"fork/exec /usr/sbin/virtqemud: errno 0","timestamp":"2023-03-20T15:23:53.581307Z"}
panic: fork/exec /usr/sbin/virtqemud: errno 0

goroutine 8 [running]:
kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/util.LibvirtWrapper.StartVirtquemud.func1()
	pkg/virt-launcher/virtwrap/util/libvirt_helper.go:251 +0x4ce
created by kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/util.LibvirtWrapper.StartVirtquemud
	pkg/virt-launcher/virtwrap/util/libvirt_helper.go:218 +0x65
{"component":"virt-launcher-monitor","level":"info","msg":"Reaped pid 12 with status 512","pos":"virt-launcher-monitor.go:124","timestamp":"2023-03-20T15:23:53.586064Z"}
{"component":"virt-launcher-monitor","level":"error","msg":"dirty virt-launcher shutdown: exit-code 2","pos":"virt-launcher-monitor.go:142","timestamp":"2023-03-20T15:23:53.586143Z"}

What you expected to happen: VM able to start without errors

How to reproduce it (as minimally and precisely as possible):

Not sure what is exactly wrong, I tried to compile version without patches and faced the same behavior.

  • Install KubeVirt v0.59.0
  • Make sure that Root feature gate is not enabled
  • Create VM:
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
  name: vm123
spec:
  running: true
  template:
    spec:
      domain:
        devices: {}
        machine:
          type: q35
        resources:
          requests:
            cpu: "4"
            memory: 2048M

Additional context: When I enable Root feature gate everything starts working as it should

Environment:

  • KubeVirt version: v0.59.0-dirty
  • Kubernetes version: v1.23.17
  • VM or VMI specifications: N/A
  • Cloud provider or hardware configuration: bare metal cluster
  • OS (e.g. from /etc/os-release): Ubuntu 22.04 LTS
  • Kernel (e.g. uname -a): 5.15.0-25-generic
  • Install tools: deckhouse
  • Others: N/A

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 21 (9 by maintainers)

Most upvoted comments

@k8scoder192 Each user needs to update the docker to a fixed version. There is not much more Kubevirt can do at the moment (We do not ship CRI).