#983674 libvirt: autopkgtest always fails on qemu testbed with -u debci

Package:
src:libvirt
Source:
libvirt
Submitter:
Ryutaroh Matsumoto
Date:
2025-08-17 17:49:20 UTC
Severity:
important
Tags:
#983674#5
Date:
2021-02-28 10:42:42 UTC
From:
To:
Dear Maintainer,

I made an autopkgtest qemu testbed by debci setup -f -s sid -a amd64 -b qemu.
Then I run autopkgtest -U -B -u debci libvirt -- qemu.

"smoke-qemu-session" always fails. Its stdout shows

echo Running as debci
  QEMU: Checking for hardware virtualization                                 : PASS
  QEMU: Checking if device /dev/kvm exists                                   : PASS
  QEMU: Checking if device /dev/kvm is accessible                            : FAIL (Check /dev/kvm is world writable or you are in a group that is allowed to access it)
  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                     : WARN (Enable 'devices' in kernel Kconfig file or mount/enable cgroup controller in your system)
  QEMU: Checking for cgroup 'blkio' controller support                       : PASS
  QEMU: Checking for device assignment IOMMU support                         : WARN (No ACPI DMAR table found, IOMMU either disabled in BIOS or not supported by this hardware platform)
  QEMU: Checking for secure guest support                                    : WARN (Unknown if this platform has Secure Guest support)
<capabilities>

Its stderr shows


+ virt-host-validate qemu
+ true
+ virsh capabilities
+ virsh capabilities
+ grep -qs arch name='x86_64'
+ virsh capabilities
+ grep -qs os_type>hvm
+ virt-xml-validate debian/tests/smoke-qemu-session.xml
debian/tests/smoke-qemu-session.xml validates
+ virsh define debian/tests/smoke-qemu-session.xml
error: Failed to define domain from debian/tests/smoke-qemu-session.xml
error: unsupported configuration: Emulator '/usr/bin/kvm' does not support virt type 'kvm'
+ cleanup
+ [ -z  ]
+ virsh destroy sqs
error: failed to get domain 'sqs'
+ true
+ virsh undefine sqs
error: failed to get domain 'sqs'
+ true
+ CLEANED_UP=1

I suspect that "Rectrictions: needs-root" is forgotten in the test specification.

The full log of autopkgtest is attached.

Best regards, Ryutaroh Matsumoto