Red Hat Bugzilla – Bug 953994
virt-v2v failing for VMware guest on vmware-tools-foundation dependency
Last modified: 2013-11-21 00:39:06 EST
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:
Problem observed with: ESX 5.0 build 768111
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
This is fixed upstream.
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.
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