| Summary: | RFE: allow capabilities/guest XML to be used with virsh cpu-compare | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Dave Allan <dallan> |
| Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 6.3 | CC: | crobinso, dyuan, eton_vser, gren, jdenemar, mzhan, rwu, xen-maint |
| Target Milestone: | rc | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-0.9.9-1.el6 | Doc Type: | Enhancement |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 723540 | Environment: | |
| Last Closed: | 2012-06-20 06:30:00 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | 723540 | ||
| Bug Blocks: | |||
|
Description
Dave Allan
2011-08-16 19:20:06 UTC
fixed with upstream commit:
commit 882e768ef0b2b11feeeab7fda0c5b5a3224ed57b
Author: Peter Krempa <pkrempa>
AuthorDate: Thu Sep 15 09:18:04 2011 +0200
virsh: Allow using domain and capabilities XMLs with cpu-compare
This patch adds extraction of the <cpu> element from capabilities and
domain definition XML documents to improve user experience.
Reproduce this bug with libvirt-0.9.4-23.el6.x86_64.
Verified this bug with libvirt-0.9.9-1.el6.
Steps:
1. Compare with capabilities file
# virsh capabilities > capabilities2.xml
# virsh cpu-compare capabilities2.xml
Host CPU is a superset of CPU described in capabilities2.xml
2. Compare with guest xml which has cpu elements
# virsh dumpxml guest > rhel62.xml
# cat rhel62.xml
...
<cpu match='exact'>
<model>core2duo</model>
<vendor>Intel</vendor>
<topology sockets='1' cores='2' threads='1'/>
<feature policy='disable' name='lahf_lm'/>
</cpu>
...
# virsh cpu-compare rhel62.xml
Host CPU is a superset of CPU described in rhel62.xml
3. Compare with guest xml which has no cpu elements
# virsh cpu-compare rhel62.xml
error: File 'rhel62.xml' does not contain a <cpu> element or is not a valid domain or capabilities XML
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2012-0748.html |