Skip to content

Drop Agent dependency on qemu-kvm for Ubuntu #5350

@tetra12

Description

@tetra12
ISSUE TYPE
  • Improvement Request
COMPONENT NAME
Agent, Core
CLOUDSTACK VERSION
4.16.0-Snapshot
CONFIGURATION

Built the latest qemu version from source

OS / ENVIRONMENT

Ubuntu 20.04 and newer

SUMMARY

CS Agent requires qemu-kvm installation. However, newer versions of qemu have dropped dependency on qemu-kvm in favor of qemu-system-x86.

If I build and install the latest qemu from source, I'm unable to install the CloudStack Agent due to its dependency on qemu-kvm, which was dropped in recent releases of qemu.

Thus, I can't use the latest release of qemu, since trying to apt install -y qemu-kvm yields in the following error :

bku@ttx0:~/work/qemu/build$ sudo apt install -y qemu-kvm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'qemu-system-x86' instead of 'qemu-kvm'
qemu-system-x86 is already the newest version (1:5.2+dfsg-9ubuntu3.1).
qemu-system-x86 set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 cloudstack-agent : Depends: qemu-kvm (>= 2.5)
                    Depends: ebtables but it is not going to be installed
                    Depends: vlan but it is not going to be installed
                    Depends: ipset but it is not going to be installed
                    Depends: python3-libvirt but it is not going to be installed
                    Depends: ethtool but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

STEPS TO REPRODUCE
1. Clone qemu repository
2. Build and install qemu from master
3. Install a stock libvirt for Ubuntu
3. Validate qemu and virsh installation: `qemu-img --version` , `libvirtd --version`
4. Try to install CloudStack Agent on the node
5. Observe error installing the CS agent
EXPECTED RESULTS
Agent works with the latest qemu and libvirt
ACTUAL RESULTS
Fail to install CS Agent  on the node with the latest `qemu` is installed

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions