<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Greetings Richard,<br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Thanks a ton for the pointers. We have finally accomplished the conversion, after upgrading the Conversion server to FC 22.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Appreciate your support.<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Regards,<br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Ravi C<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 4, 2015 at 9:35 PM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Nov 04, 2015 at 06:08:16AM -0800, Tejas Gadaria wrote:<br>
> After starting conversation, at the time of decompressing kernel, after<br>
> loading modules by iso we are getting below error,<br>
><br>
</span>> *file -zb<br>
> /sysroot/lib/modules/3.17.4-301.fc21.x86_64/kernel/arch/x86/crypto/blowfish-x86_64.ko.xz*<br>
> *libguestfs: trace: file = "XZ compressed data"*<br>
> *libguestfs: trace: file_architecture = NULL (error)*<br>
> *virt-v2v: error: libguestfs error: file_architecture: unknown<br>
> architecture: *<br>
> */lib/modules/3.17.4-301.fc21.x86_64/kernel/arch/x86/crypto/blowfish-x86_64.ko.xz*<br>
<br>
This was fixed upstream:<br>
<br>
<a href="https://github.com/libguestfs/libguestfs/commit/7291b226d1b08c762ae2f2715a2ac9ed7b8d5d14" rel="noreferrer" target="_blank">https://github.com/libguestfs/libguestfs/commit/7291b226d1b08c762ae2f2715a2ac9ed7b8d5d14</a><br>
<br>
With a more recent virt-v2v it will work fine, as in this example:<br>
<br>
$ virt-builder fedora-22<br>
<br>
$ guestfish --ro -a fedora-22.img -i find /lib/modules | grep xz | head<br>
/4.0.4-301.fc22.x86_64/kernel/arch/x86/crypto/blowfish-x86_64.ko.xz<br>
/4.0.4-301.fc22.x86_64/kernel/arch/x86/crypto/camellia-aesni-avx-x86_64.ko.xz<br>
/4.0.4-301.fc22.x86_64/kernel/arch/x86/crypto/camellia-aesni-avx2.ko.xz<br>
/4.0.4-301.fc22.x86_64/kernel/arch/x86/crypto/camellia-x86_64.ko.xz<br>
/4.0.4-301.fc22.x86_64/kernel/arch/x86/crypto/cast5-avx-x86_64.ko.xz<br>
/4.0.4-301.fc22.x86_64/kernel/arch/x86/crypto/cast6-avx-x86_64.ko.xz<br>
/4.0.4-301.fc22.x86_64/kernel/arch/x86/crypto/crc32-pclmul.ko.xz<br>
/4.0.4-301.fc22.x86_64/kernel/arch/x86/crypto/crc32c-intel.ko.xz<br>
/4.0.4-301.fc22.x86_64/kernel/arch/x86/crypto/crct10dif-pclmul.ko.xz<br>
/4.0.4-301.fc22.x86_64/kernel/arch/x86/crypto/des3_ede-x86_64.ko.xz<br>
<br>
$ virt-v2v -i disk fedora-22.img -o null<br>
[ 0.0] Opening the source -i disk fedora-22.img<br>
[ 0.1] Creating an overlay to protect the source from being modified<br>
[ 0.6] Initializing the target -o null<br>
[ 0.6] Opening the overlay<br>
[ 17.0] Inspecting the overlay<br>
[ 19.7] Checking for sufficient free disk space in the guest<br>
[ 19.7] Estimating space required on target for each disk<br>
[ 19.7] Converting Fedora 22 (Twenty Two) to run on KVM<br>
virt-v2v: warning: /files/boot/grub2/device.map/hd0 references unknown<br>
device "vda". You may have to fix this entry manually after conversion.<br>
virt-v2v: This guest has virtio drivers installed.<br>
[ 37.3] Mapping filesystem data to avoid copying unused and blank areas<br>
[ 38.2] Closing the overlay<br>
[ 38.4] Checking if the guest needs BIOS or UEFI to boot<br>
[ 38.4] Assigning disks to buses<br>
[ 38.4] Copying disk 1/1 to /var/tmp/null.5APlFC/sda (raw)<br>
(100.00/100%)<br>
[ 39.5] Creating output metadata<br>
[ 39.5] Finishing off<br>
<span class="im HOEnZb"><br>
Rich.<br>
<br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" rel="noreferrer" target="_blank">http://people.redhat.com/~rjones</a><br>
Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" rel="noreferrer" target="_blank">http://rwmj.wordpress.com</a><br>
</span><div class="HOEnZb"><div class="h5">virt-builder quickly builds VMs from scratch<br>
<a href="http://libguestfs.org/virt-builder.1.html" rel="noreferrer" target="_blank">http://libguestfs.org/virt-builder.1.html</a><br>
</div></div></blockquote></div><br></div>