ansible-role-libvirt-host icon indicating copy to clipboard operation
ansible-role-libvirt-host copied to clipboard

role fails on debian: no available installation candidate for qemu-kvm

Open DO1JLR opened this issue 3 years ago • 0 comments

Hi there.

Thank you for this Ansible role. Unfortunately this role throws the following error for me on Debian GNU/Linux 11 (bullseye):

TASK [libvirtd : Ensure libvirt packages are installed] ************************************************
FAILED - RETRYING: [example.com]: Ensure libvirt packages are installed (3 retries left).
FAILED - RETRYING: [example.com]: Ensure libvirt packages are installed (2 retries left).
FAILED - RETRYING: [example.com]: Ensure libvirt packages are installed (1 retries left).
fatal: [example.com]: FAILED! => changed=false 
  attempts: 3
  cache_update_time: 1669112189
  cache_updated: false
  msg: no available installation candidate for qemu-kvm

If I adjust the libvirt_host_libvirt_packages_common: variable under vars/Debian.yml and install the package qemu-system-x86 instead of the Debian package qemu-kvm, the role runs through without complaining.

You certainly know this, but the qemu-kvm package is a "virtual package". See packages.debian.org/bullseye/qemu-kvm.

DO1JLR avatar Nov 22 '22 10:11 DO1JLR