tetra12 opened a new issue #5350:
URL: https://github.com/apache/cloudstack/issues/5350
<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and main branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete
the comments.
-->
##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
* Improvement Request
##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
Agent, Core
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main
branch.
-->
~~~
4.16.0-Snapshot
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network,
advanced networking, etc. N/A otherwise
-->
Built the latest qemu version from source
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
Ubuntu 20.04 and newer
##### SUMMARY
<!-- Explain the problem/feature briefly -->
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
<!--
For bugs, show exactly how to reproduce the problem, using a minimal
test-case. Use Screenshots if accurate.
For new features, show how the feature would be used.
-->
<!-- Paste example playbooks or commands between quotes below -->
~~~
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
~~~
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
Agent works with the latest qemu and libvirt
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
Fail to install CS Agent on the node with the latest `qemu` is installed
~~~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]