Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DO1JLR opened this issue Nov 22, 2022 · 0 comments
Open

Comments

@DO1JLR
Copy link
Contributor

DO1JLR commented Nov 22, 2022

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 added a commit to DO1JLR/ansible-role-libvirt-host that referenced this issue Jul 31, 2023
Ansible won't find the package qemu-kvm on my debian host. See Issue stackhpc#68
So I changed the package name to qemu-system-x86 and it works fine.

*(Tested with debian buster and bullseye)*

For Package Details, have a look at https://packages.debian.org/bookworm/qemu-kvm
DO1JLR added a commit to DO1JLR/ansible-role-libvirt-host that referenced this issue Jul 31, 2023
Ansible won't find the package qemu-kvm on my debian host. See Issue stackhpc#68
So I changed the package name to qemu-system-x86 and it works fine.

*(Tested with debian bullseye and bookworm)*

For Package Details, have a look at https://packages.debian.org/bookworm/qemu-kvm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant