Bug 1155610

Summary: disable uninstallation of VMware drivers on Linux for RHEL 7.1
Product: Red Hat Enterprise Linux 7 Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: codong, dyuan, juzhou, mbooth, myllynen, mzhan, ptoscano, tzheng, virt-bugs
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: V2V
Fixed In Version: libguestfs-1.28.1-1.4.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1155150 Environment:
Last Closed: 2015-03-05 13:46:50 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:
Bug Depends On:    
Bug Blocks: 1155150    

Description Richard W.M. Jones 2014-10-22 13:11:33 UTC
+++ This bug was initially created as a clone of Bug #1155150 +++

Description of problem:

I don't have a high confidence that this code works.  In fact, I
have a very low confidence that it works (eg. bug 1155150).

We don't have time to fix this mess in RHEL 7.1, so defer that
bug to RHEL 7.2.  In the meantime, disable this in RHEL 7.1.

Note that we don't uninstall VMware drivers in Windows at all,
for different reasons.

Comment 1 Marko Myllynen 2014-10-24 12:00:17 UTC
> Fixed In Version: libguestfs-1.28.1-1.4.el7

Will you push this to the RHEL 7.1 Preview repo, too?

Thanks.

Comment 3 Marko Myllynen 2014-10-24 13:18:51 UTC
Tested the internal builds, conversion completed successfully.

Thanks!

Comment 5 Richard W.M. Jones 2014-10-24 20:19:11 UTC
(In reply to Marko Myllynen from comment #1)
> > Fixed In Version: libguestfs-1.28.1-1.4.el7
> 
> Will you push this to the RHEL 7.1 Preview repo, too?
> 
> Thanks.

A new package is now available in the preview repo
which contains this patch.

Comment 6 Marko Myllynen 2014-10-27 09:02:24 UTC
(In reply to Richard W.M. Jones from comment #5)
> (In reply to Marko Myllynen from comment #1)
> > > Fixed In Version: libguestfs-1.28.1-1.4.el7
> > 
> > Will you push this to the RHEL 7.1 Preview repo, too?
> 
> A new package is now available in the preview repo
> which contains this patch.

Conversion completed successfully with virt-v2v-1.28.1-1.5.el7.x86_64.

Thanks.

Comment 7 zhoujunqin 2014-11-10 06:16:40 UTC
I can reproduce this issue with following package version:
Host:
libguestfs-1.28.1-1.2.el7.x86_64
virt-v2v-1.28.1-1.2.el7.x86_64

Guest with vmware-tools installing version:
vmware-tools-libraries-x-9.4.0-1.el6.x86_64

Steps:
# virt-v2v -ic vpx://root.111.25/tzheng-demo/10.66.106.63/?no_verify=1 test-rhel6.5-released-desktop 
[   0.0] Opening the source -i libvirt -ic vpx://root.111.25/tzheng-demo/10.66.106.63/?no_verify=1 test-rhel6.5-released-desktop
Enter root's password for 10.66.111.25: 
Enter host password for user 'root':
[  18.0] Creating an overlay to protect the source from being modified
[  18.0] Opening the overlay
[  31.0] Initializing the target -o libvirt -os default
[  31.0] Inspecting the overlay
[  95.0] Checking for sufficient free disk space in the guest
[  95.0] Estimating space required on target for each disk
[  95.0] Converting Red Hat Enterprise Linux Server release 6.5 (Santiago) to run on KVM
virt-v2v: could not install replacement for vmware-tools-libraries-x.  Error was: command: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Error: Need to pass a list of pkgs to install.  vmware-tools-libraries-x was not removed.
virt-v2v: could not install replacement for vmware-tools-libraries-nox.  Error was: command: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Error: Need to pass a list of pkgs to install.  vmware-tools-libraries-nox was not removed.
virt-v2v: error: libguestfs error: command: error: Failed dependencies:
	vmware-tools-foundation >= 0:9.4.0 is needed by (installed) 
vmware-tools-libraries-nox-0:9.4.0-1.el6.x86_64
	vmware-tools-foundation >= 0:9.4.0 is needed by (installed) 
vmware-tools-libraries-x-0:9.4.0-1.el6.x86_64

If reporting bugs, run virt-v2v with debugging enabled and include the 
complete output:

  virt-v2v -v -x [...]


then try to verify with new build:
libguestfs-1.28.1-1.9.el7.x86_64
virt-v2v-1.28.1-1.9.el7.x86_64

steps:
# virt-v2v -ic vpx://root.111.25/tzheng-demo/10.66.106.63/?no_verify=1 test-rhel6.5-released-desktop -on test-rhel6.5-released-desktop-second 
[   0.0] Opening the source -i libvirt -ic vpx://root.111.25/tzheng-demo/10.66.106.63/?no_verify=1 test-rhel6.5-released-desktop
Enter root's password for 10.66.111.25: 
Enter host password for user 'root':
[  16.0] Creating an overlay to protect the source from being modified
[  16.0] Opening the overlay
[  95.0] Initializing the target -o libvirt -os default
[  95.0] Inspecting the overlay
[ 160.0] Checking for sufficient free disk space in the guest
[ 160.0] Estimating space required on target for each disk
[ 160.0] Converting Red Hat Enterprise Linux Server release 6.5 (Santiago) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 537.0] Mapping filesystem data to avoid copying unused and blank areas
[ 540.0] Closing the overlay
[ 540.0] Copying disk 1/1 to /var/lib/libvirt/images/test-rhel6.5-released-desktop-second-sda (raw)
    (100.00/100%)
[ 809.0] Creating output metadata
Pool default refreshed

Domain test-rhel6.5-released-desktop-second defined from /tmp/v2vlibvirt361a63.xml

[ 809.0] Finishing off


Result: Conversion finished successfully and guest can boot up successfully.
So move this bug from ON_QA to VERIFIED.

Comment 9 errata-xmlrpc 2015-03-05 13:46:50 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-0303.html