[Libguestfs] P2V: Error while converting Windows server

Ricardo Argüello ricardo.arguello at gmail.com
Fri Apr 6 16:47:11 UTC 2012


I'm trying to do a physical-to-virtual migration for a Windows 2003 
Server to RHEV 3.0 and I'm getting errors in the conversion.

I created a Virt-P2V.iso using Fedora 16 (i686) using virt-v2v-0.8.7 and 
virt-p2v-image-builder-0.8.7 instead of the 0.8.5 version available in 
the repos. The conversion server is the same server where I created the ISO.

I edited the /etc/virt-v2v.conf file to configure a RHEV 3.0 Export 
Domain as the target:

   <profile name="rhev-sparse">
     <storage format='qcow2' allocation='sparse'>
     <network type="default">
       <network type="network" name="rhevm"/>
   <network type='network' name='default'>
     <network type='network' name='rhevm'/>

I created the RHEV Export Domain and I activated it.

I booted the physical server with the Virt-P2V ISO and entered the 
conversion server information. I choosed the "rhev-sparse" method and 
let the other parameters by default.

The sda hard disk begins to get transfered and after some minutes I get 
this error in the virt-p2v-server log:

# cat virt-p2v-server.1333661869.log
virt-v2v: pwrite_device: pwrite_device: offset is negative at 
/usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line 203, 
<> line 6.
  at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Transfer/Local.pm line 271

The transfer file gets deleted in the NFS export

I tried changing the conversion method to "preallocated" by putting this 
in the config file:

   <profile name="rhev-preallocated">
     <storage format='raw' allocation='preallocated'>
     <network type="default">
       <network type="network" name="rhevm"/>

It obviously takes longer to transfer to the conversion server, but 
after a few hour it gives me this error in the virt-p2v-server log:

# cat /var/log/virt-p2v-server.1333670581.log
warning: Unable to get device geometry for /var/tmp/guestfs.9vgHe0/root
virt-v2v: Died at /usr/bin/virt-p2v-server line 394, <> line 7.

Any ideas?

Ricardo Arguello - RHCE, RHCI

More information about the Libguestfs mailing list