Red Hat Bugzilla – Bug 814270
P2V fail at 100% with error : Can't call method get_path
Last modified: 2012-04-20 04:28:05 EDT
Description of problem:
I have a RHEV virtualization environment with 2 hypervisors and 1 manager. My goal is to virtualize a Windows 7 physical machine to virtual machine in RHEV.
To do this, I installed virt-v2v.x86_64 on my manager. I also installed libguestfs-winsupport.x86_64 version 1.0-7.el6 and virtio-win.noarch version 1.4.0-1.el6.
As I can't install virt-p2v-builder-image on my manager because it doesn't find package available I installed it on another computer with fedora 16 64 bits order to create an image Virt-P2V.iso. Of course I installed the previous packages (virt-v2v, libguestfs and virtio-win) on that distribution before creating my image.
Then I copied that image on a USB stick format vfat. And i attached an export storage domain (It is in NFS) to my data center.
I started my physical machine to the USB key with Virt-p2v and I proceeded the conversion with 'rhev' method, 'raw' storage format, preallocated 'allocation' storage and default type network defined in the '/etc/virt-v2v.conf' file of my manager.
The conversion reaches 100% but i get the following error:
"Can't call method get_path on an undefined value at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Connection/RHEVTarget.pm line 923".
I don't understand this error.
Version-Release number of selected component (if applicable):
MY MANAGER -->
virt-v2v.x86_64 version 0.8.3-5.el6
libguestfs-winsupport.x86_64 version 1.0-7.el6
virtio-win.noarch version 1.4.0-1.el6
MY FEDORA 16 -->
virt-v2v.x86_64 version 0.8.5-2.fc16
No package virtio or virtio-win available.
virt-p2v-image-builder.noarch version 0.8.5-1.fc16
Restart the process of converting the physical machine with virt-p2v and wait until it reaches 100%.
Steps to Reproduce:
1. Start a physical machine on the image created by virt-p2v-image-builder
2. Make the conversion by transferring data to virt-p2v-server (my manager)
3. Wait until the end of operation (100%)
Unable to virtualize a physical machine into a virtual machine
Get a virtual machine of the physical machine to import it into RHEV.
We don't support virt-p2v in RHEL 6.2, and consequently it wasn't tested. It will be supported in RHEL 6.3, however.
virt-v2v in RHEL 6.2 contained the bug you describe, which was only triggered when doing a p2v. It has already been fixed during the 6.3 QA process. Here's the upstream commit which fixed it: