P2V: Error while converting Windows server
Hi, 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: <virt-v2v> <profile name="rhev-sparse"> <method>rhev</method> <storage format='qcow2' allocation='sparse'> 192.168.1.11:/RHEV/export </storage> <network type="default"> <network type="network" name="rhevm"/> </network> </profile> <network type='network' name='default'> <network type='network' name='rhevm'/> </network> </virt-v2v> 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 192.168.1.11:/RHEV/export I tried changing the conversion method to "preallocated" by putting this in the config file: <profile name="rhev-preallocated"> <method>rhev</method> <storage format='raw' allocation='preallocated'> 192.168.1.11:/RHEV/export </storage> <network type="default"> <network type="network" name="rhevm"/> </network> </profile> 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
On Fri, Apr 06, 2012 at 11:47:11AM -0500, Ricardo Argüello wrote:
Hi,
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:
<virt-v2v> <profile name="rhev-sparse"> <method>rhev</method> <storage format='qcow2' allocation='sparse'> 192.168.1.11:/RHEV/export </storage> <network type="default"> <network type="network" name="rhevm"/> </network> </profile> <network type='network' name='default'> <network type='network' name='rhevm'/> </network> </virt-v2v>
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 192.168.1.11:/RHEV/export
I tried changing the conversion method to "preallocated" by putting this in the config file:
<profile name="rhev-preallocated"> <method>rhev</method> <storage format='raw' allocation='preallocated'> 192.168.1.11:/RHEV/export </storage> <network type="default"> <network type="network" name="rhevm"/> </network> </profile>
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?
We're all on holiday until Tuesday. However my suggestion is to get more debugging out of the server. Is it possible to enable more debugging on the server side by setting LIBGUESTFS_DEBUG=1 and/or LIBGUESTFS_TRACE=1 ? The 'pwrite_device: offset is negative' error looks quite serious and will almost certainly be a bug in virt-p2v. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
On Fri, Apr 6, 2012 at 12:04 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
We're all on holiday until Tuesday. However my suggestion is to get more debugging out of the server. Is it possible to enable more debugging on the server side by setting LIBGUESTFS_DEBUG=1 and/or LIBGUESTFS_TRACE=1 ?
The 'pwrite_device: offset is negative' error looks quite serious and will almost certainly be a bug in virt-p2v.
I'll enable debugging and post the log here. Do you think I should give libguestfs-1.16.15-1.fc16 a try? https://admin.fedoraproject.org/updates/libguestfs-1.16.15-1.fc16 -- Ricardo Arguello - RHCE, RHCI
On Fri, Apr 06, 2012 at 12:35:45PM -0500, Ricardo Arguello wrote:
On Fri, Apr 6, 2012 at 12:04 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
We're all on holiday until Tuesday. However my suggestion is to get more debugging out of the server. Is it possible to enable more debugging on the server side by setting LIBGUESTFS_DEBUG=1 and/or LIBGUESTFS_TRACE=1 ?
The 'pwrite_device: offset is negative' error looks quite serious and will almost certainly be a bug in virt-p2v.
I'll enable debugging and post the log here.
Do you think I should give libguestfs-1.16.15-1.fc16 a try?
https://admin.fedoraproject.org/updates/libguestfs-1.16.15-1.fc16
It's the latest stable version, so it is the stablest and most bug free version. I don't know if it fixes this bug, but it's worth trying. You can find out a list of things fixed in 1.16.15 by looking at the commits here: http://fedorapeople.org/gitweb?p=rjones/public_git/libguestfs.git;a=log;h=re... Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
On Fri, Apr 6, 2012 at 2:37 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Fri, Apr 06, 2012 at 12:35:45PM -0500, Ricardo Arguello wrote:
On Fri, Apr 6, 2012 at 12:04 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
We're all on holiday until Tuesday. However my suggestion is to get more debugging out of the server. Is it possible to enable more debugging on the server side by setting LIBGUESTFS_DEBUG=1 and/or LIBGUESTFS_TRACE=1 ?
The 'pwrite_device: offset is negative' error looks quite serious and will almost certainly be a bug in virt-p2v.
I'll enable debugging and post the log here.
Do you think I should give libguestfs-1.16.15-1.fc16 a try?
https://admin.fedoraproject.org/updates/libguestfs-1.16.15-1.fc16
It's the latest stable version, so it is the stablest and most bug free version. I don't know if it fixes this bug, but it's worth trying.
You can find out a list of things fixed in 1.16.15 by looking at the commits here:
http://fedorapeople.org/gitweb?p=rjones/public_git/libguestfs.git;a=log;h=re...
I checked /var/log/messages and it looks like the problem was because of a missing 'virtio-win' package in the F16 conversion server: Apr 5 23:25:20 virt-p2v virt-v2v[9165]: FATAL: Installation failed because the following file s referenced in the configuration file are required, but missing: /usr/share/virtio-win/driver s/i386/Win2003 Apr 5 23:25:20 virt-p2v virt-v2v[9165]: FATAL: Died at /usr/bin/virt-p2v-server line 394, <> line 7. Apr 5 23:25:20 virt-p2v virt-v2v[9165]: WARNING: Error messages were written to /var/log/virt -p2v-server.1333670581.log. Apr 5 23:25:20 virt-p2v virt-v2v[9165]: p2v-server exited. Should I install the virtio-win rpm from RHEL 6 into F16 or is there any virtio-win package for Fedora somewhere? Thanks, -- Ricardo Arguello - RHCE, RHCI
On Fri, Apr 06, 2012 at 04:25:17PM -0500, Ricardo Arguello wrote:
On Fri, Apr 6, 2012 at 2:37 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Fri, Apr 06, 2012 at 12:35:45PM -0500, Ricardo Arguello wrote:
On Fri, Apr 6, 2012 at 12:04 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
We're all on holiday until Tuesday. However my suggestion is to get more debugging out of the server. Is it possible to enable more debugging on the server side by setting LIBGUESTFS_DEBUG=1 and/or LIBGUESTFS_TRACE=1 ?
The 'pwrite_device: offset is negative' error looks quite serious and will almost certainly be a bug in virt-p2v.
I'll enable debugging and post the log here.
Do you think I should give libguestfs-1.16.15-1.fc16 a try?
https://admin.fedoraproject.org/updates/libguestfs-1.16.15-1.fc16
It's the latest stable version, so it is the stablest and most bug free version. I don't know if it fixes this bug, but it's worth trying.
You can find out a list of things fixed in 1.16.15 by looking at the commits here:
http://fedorapeople.org/gitweb?p=rjones/public_git/libguestfs.git;a=log;h=re...
I checked /var/log/messages and it looks like the problem was because of a missing 'virtio-win' package in the F16 conversion server:
Apr 5 23:25:20 virt-p2v virt-v2v[9165]: FATAL: Installation failed because the following file s referenced in the configuration file are required, but missing: /usr/share/virtio-win/driver s/i386/Win2003 Apr 5 23:25:20 virt-p2v virt-v2v[9165]: FATAL: Died at /usr/bin/virt-p2v-server line 394, <> line 7. Apr 5 23:25:20 virt-p2v virt-v2v[9165]: WARNING: Error messages were written to /var/log/virt -p2v-server.1333670581.log. Apr 5 23:25:20 virt-p2v virt-v2v[9165]: p2v-server exited.
Should I install the virtio-win rpm from RHEL 6 into F16 or is there any virtio-win package for Fedora somewhere?
It's here: http://alt.fedoraproject.org/pub/alt/virtio-win/ although I seem to remember there is some configuration you have to do. Best to ask Matt on Tuesday. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
participants (3)
-
Ricardo Arguello -
Ricardo Argüello -
Richard W.M. Jones