Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1162755

Summary: The virt-xml tool should be installed
Product: Red Hat Enterprise Linux 7 Reporter: Cole Robinson <crobinso>
Component: virt-managerAssignee: Giuseppe Scrivano <gscrivan>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: codong, dyuan, gscrivan, juzhou, kchamart, lersek, liye, mzhan, tzheng
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-manager-1.1.0-7.el7 Doc Type: Enhancement
Doc Text:
Feature: new tool virt-xml Reason: easier modifications of the XML description of guests
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 10:07:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Cole Robinson 2014-11-11 16:04:34 UTC
When RHEL was rebased to virt-manager-1.1.0, the spec file disabled installation of the virt-xml tool. virt-xml is definitely useful on RHEL and is actively developed, so I think we should enable it (virt-convert should stay disabled).

I'm not sure if there's issues with enabling it at this point in the RHEL7.1 cycle, especially since QA likely isn't testing it (though we have unit tests), but IMO it's worth it.

Comment 1 Kashyap Chamarthy 2014-11-11 16:09:06 UTC
Yup, I can confirm it:

$  which virt-xml
/usr/bin/which: no virt-xml in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin)

$ rpm -qf `which /usr/share/virt-manager/virt-xml`
virt-manager-1.1.0-4.el7.noarch

$ rpm -q virt-install virt-manager
virt-install-1.1.0-4.el7.noarch
virt-manager-1.1.0-4.el7.noarch

$ rpm -ql virt-install-1.1.0-4.el7.noarch | grep virt-xml
$ echo $?
1

Comment 3 Giuseppe Scrivano 2014-11-11 19:22:20 UTC
should be enough to backport this patch from upstream:

diff --git a/virt-manager.spec.in b/virt-manager.spec.in
index 45a3af8..3c06319 100644
--- a/virt-manager.spec.in
+++ b/virt-manager.spec.in
@@ -93,6 +93,7 @@ Provides: virt-install
 Provides: virt-clone
 Provides: virt-image
 Provides: virt-convert
+Provides: virt-xml
 Obsoletes: python-virtinst
 
 %description -n virt-install
@@ -194,6 +195,7 @@ fi
 %{_mandir}/man1/virt-install.1*
 %{_mandir}/man1/virt-clone.1*
 %{_mandir}/man1/virt-convert.1*
+%{_mandir}/man1/virt-xml.1*
 %{_mandir}/man1/virt-image.1*
 %{_mandir}/man5/virt-image.5*
 
@@ -201,11 +203,13 @@ fi
 %{_datadir}/%{name}/virt-clone
 %{_datadir}/%{name}/virt-image
 %{_datadir}/%{name}/virt-convert
+%{_datadir}/%{name}/virt-xml
 
 %{_bindir}/virt-install
 %{_bindir}/virt-clone
 %{_bindir}/virt-image
 %{_bindir}/virt-convert
+%{_bindir}/virt-xml
 
 
 %changelog

Comment 4 Laszlo Ersek 2014-11-17 22:00:53 UTC
Yes, please do this. Thanks.

Comment 6 CongDong 2014-11-20 05:42:34 UTC
I can reproduce with:
virt-manager-1.1.0-4.el7.noarch
virt-install-1.1.0-4.el7.noarch

Steps:
1. # which virt-xml
/usr/bin/which: no virt-xml in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/root/bin)

2. # rpm -ql virt-install-1.1.0-4.el7.noarch| grep virt-xml
[root@codong-work 1.1.0-4]# echo $?
1


Verify with: 

1. # which virt-xml
/usr/bin/virt-xml

2. # rpm -ql virt-install-1.1.0-7.el7.noarch | grep virt-xml
/usr/bin/virt-xml


As the result, move to VERIFIED.

Comment 8 errata-xmlrpc 2015-03-05 10:07:27 UTC
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.

https://rhn.redhat.com/errata/RHBA-2015-0427.html