[Pkg-libvirt-maintainers] Bug#983674: libvirt: autopkgtest always fails on qemu testbed with -u debci

Ryutaroh Matsumoto ryutaroh at ict.e.titech.ac.jp
Sun Feb 28 10:42:42 GMT 2021


Source: libvirt
Version: 7.0.0-3
Severity: important
Tags: sid bullseye

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


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.9.16-preempt (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-log.tar.xz
Type: application/x-xz
Size: 19240 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-libvirt-maintainers/attachments/20210228/2d0e65d3/attachment-0001.xz>


More information about the Pkg-libvirt-maintainers mailing list