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 787734 - virt-v2v does not remove VMware guest tools RPMs
Summary: virt-v2v does not remove VMware guest tools RPMs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-v2v
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Matthew Booth
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 837167
TreeView+ depends on / blocked
 
Reported: 2012-02-06 16:02 UTC by Marko Myllynen
Modified: 2012-07-03 03:31 UTC (History)
4 users (show)

Fixed In Version: virt-v2v-0.8.7-1.el6
Doc Type: Bug Fix
Doc Text:
Cause The customer is converting a VMware guest which has installed the newer style of VMware tools which are split into multiple packages. Consequence VMware tools are not removed during the conversion process. They may cause warnings to be displayed in the converted guest, or cause it to function incorrectly. Fix The conversion process was updated to recognise the new VMware tools packages and remove them. Result VMware tools packages are correctly removed during conversion.
Clone Of:
: 837167 (view as bug list)
Environment:
Last Closed: 2012-06-20 12:42:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0788 0 normal SHIPPED_LIVE virt-v2v bug fix and enhancement update 2012-06-19 20:34:39 UTC

Description Marko Myllynen 2012-02-06 16:02:26 UTC
Description of problem:
When converting a VMware guest which has VMware guest tools installed from VMware's Yum repo the RPMs are not being removed during conversion (but the services are correctly disabled).

virt-v2v should remove VMware guest tools RPMs and also probably disable / remove VMware Yum repositories (e.g., /etc/yum.repos.d/vmware.repo or /etc/yum.repos.d/vmware-tools.repo).

VMware guest tools RPMs for RHEL 6 64-bit, for example, are at

http://packages.vmware.com/tools/esx/latest/rhel6/x86_64/

Version-Release number of selected component (if applicable):
RHEL 6.2

Comment 2 Matthew Booth 2012-02-06 16:29:58 UTC
Looks like the rpms have been renamed. They're now called vmware-tools-* and kmod-vmware-tools-*. We've already previously decided not to remove kmods, but we ought to remove anything called vmware-tools-*.

Comment 3 Matthew Booth 2012-03-01 16:00:44 UTC
Fixed in upstream commit 15dc5512ad49419df5d921ab76df55ff93ca35c9.

Comment 5 tingting zheng 2012-03-07 07:55:16 UTC
When convert a VMware guest with vmware tools installed,it will install some replacement dependencies for some packages,due to Bug 800353,virt-v2v failed to install packages using yum during conversion,so the bug is blocked by Bug 800353.

Comment 6 tingting zheng 2012-03-09 07:30:06 UTC
As the Bug 800353 has been fixed,so tested the bug with:
virt-v2v-0.8.7-4.el6.x86_64
libvirt-0.9.10-4.el6.x86_64
libguestfs-1.16.8-1.el6.x86_64

Steps:
1.Configure a esx rhel6 guest with vmware repo and install vmware-tools-* and kmod-vmware-tools-*

2.Use virt-v2v to convert the guest.
# virt-v2v  -ic esx://10.66.72.149/?no_verify=1 -os default -b breth0 rhel6.2-x64-vmware-tools
rhel6.2-x64-vmware-tools_rhel6.2-x64-vmware-tools: 100% [==============================================]D 0h10m06s
virt-v2v: rhel6.2-x64-vmware-tools configured with virtio drivers.

3.After conversion,check the guests
1).check the vmware repo
It has been disabled.
2)check whether the vmware tools packages have been removed.
#rpm -qa|grep vmware-tools
#rpm -qa|grep kmod
The vmware-tools-* and kmod-vmware-tools-* are all removed.

As comment 2 said:"We've already previously decided not to remove kmods, but
we ought to remove anything called vmware-tools-*." 

matthew,it removed all kmod packages,does it have problem or have you decided to design that way?

Comment 7 Matthew Booth 2012-03-12 11:42:49 UTC
Removing these kmods didn't cause any problems in my testing, and as they're VMware-specific I think they're unlikely to. This is deliberate in this case.

Comment 8 tingting zheng 2012-03-13 02:12:25 UTC
Refer to comment 6 and comment 7,change the status of the bug to VERIFIED.

Comment 9 Matthew Booth 2012-04-11 14:03:27 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause
The customer is converting a VMware guest which has installed the newer style of VMware tools which are split into multiple packages.

Consequence
VMware tools are not removed during the conversion process. They may cause warnings to be displayed in the converted guest, or cause it to function incorrectly.

Fix
The conversion process was updated to recognise the new VMware tools packages and remove them.

Result
VMware tools packages are correctly removed during conversion.

Comment 11 errata-xmlrpc 2012-06-20 12:42:02 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.

http://rhn.redhat.com/errata/RHBA-2012-0788.html


Note You need to log in before you can comment on or make changes to this bug.