Hide Forgot
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
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-*.
Fixed in upstream commit 15dc5512ad49419df5d921ab76df55ff93ca35c9.
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.
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?
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.
Refer to comment 6 and comment 7,change the status of the bug to VERIFIED.
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.
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