Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 953994 - virt-v2v failing for VMware guest on vmware-tools-foundation dependency
virt-v2v failing for VMware guest on vmware-tools-foundation dependency
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-v2v (Show other bugs)
6.4
Unspecified Unspecified
high Severity high
: rc
: ---
Assigned To: Matthew Booth
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-19 15:53 EDT by Dustin Black
Modified: 2013-11-21 00:39 EST (History)
6 users (show)

See Also:
Fixed In Version: virt-v2v-0.9.1-1.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-11-21 00:39:06 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1547 normal SHIPPED_LIVE virt-v2v bug fix and enhancement update 2013-11-20 16:40:38 EST

  None (edit)
Description Dustin Black 2013-04-19 15:53:27 EDT
Description of problem:
Converting ESX RHEL VM's to KVM VM's, the process is failing possibly because the version of vmware-tools in use is later than the code can cope with.

This has been tried with both the vmware-tools packages installed on the VM and un-installed, each time resulting in this sort of messages in the error logs:

command: command: error: Failed dependencies:
        vmware-tools-foundation >= 0:9.0.1 is needed by (installed)         vmware-tools-libraries-nox-0:9.0.1-2.x86_64 at /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line 204.


The v2v code doesn't attempt to remove the vmware-tools-libraries-nox package, hence the error.


Version-Release number of selected component (if applicable):
virt-v2v-0.8.9-2.el6.x86_64

How reproducible:
Consistently on same systems, with and without vmware tools on the guest.

Steps to Reproduce:
Conversion command is:
virt-v2v -ic ${ESXHOST}         \
         -os ${STROAGEPOOL}      \
         -oa "sparse"            \
         -of "raw"               \
         --bridge "bridge1"      \
         -on ${ESXVM}-v2v        \
         ${ESXVM}
  
Actual results:
Conversion fails with:
command: command: error: Failed dependencies:
        vmware-tools-foundation >= 0:9.0.1 is needed by (installed)         vmware-tools-libraries-nox-0:9.0.1-2.x86_64 at /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line 204.


Expected results:
Conversion succeeds.

Additional info:
Comment 3 Dustin Black 2013-04-19 16:03:04 EDT
Problem observed with: ESX 5.0 build 768111
Comment 5 tingting zheng 2013-04-22 02:26:05 EDT
I can reproduce this issue with virt-v2v-0.8.9-2.el6.x86_64:

# virt-v2v  -ic esx://10.66.6.211/?no_verify=1 -os default  esx5.1-rhel6-x64-vmware-toolesx5.0-template-test_esx5.0-template-test: 100% [======================================================]D 0h03m51s
virt-v2v: WARNING: Failed to install replacement dependencies for vmware-tools-libraries-nox. Package will not be uninstalled. Error was: command: command: Error: Need to pass a list of pkgs to install at /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line 204.
 at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 1094

virt-v2v: WARNING: Failed to install replacement dependencies for vmware-tools-libraries-x. Package will not be uninstalled. Error was: command: command: Error: Need to pass a list of pkgs to install at /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line 204.
 at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 1094

command: command: error: Failed dependencies:
	vmware-tools-foundation >= 0:9.0.1 is needed by (installed) vmware-tools-libraries-nox-0:9.0.1-2.x86_64
	vmware-tools-foundation >= 0:9.0.1 is needed by (installed) vmware-tools-libraries-x-0:9.0.1-2.x86_64 at /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line 204.
 at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 895
Comment 7 Matthew Booth 2013-06-10 10:40:01 EDT
This is fixed upstream.
Comment 10 tingting zheng 2013-06-14 04:47:43 EDT
Tested with:
virt-v2v-0.9.1-1.el6_5.x86_64
libvirt-0.10.2-18.el6_4.8.x86_64
libguestfs-1.20.8-5.el6.x86_64

# virt-v2v  -ic esx://10.66.6.211/?no_verify=1 -os default  esx5.1-rhel6-x64-vmware-tool
esx5.0-template-test_esx5.0-template-test: 100% [======================================================]D 0h03m56s
virt-v2v: esx5.1-rhel6-x64-vmware-tool configured with virtio drivers.

After conversion,the guest can boot successfully.

So mark the status of the bug as VERIFIED.
Comment 15 errata-xmlrpc 2013-11-21 00:39:06 EST
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-2013-1547.html

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