Owen Williams
2013-Nov-15 10:47 UTC
[Libguestfs] Virtio: 32bit CentOS 6.4 on VirtualBox to oVirt on Fedora 19 64bit via virt-v2v
Hello, I've trying to move a 32bit CentOS 6.4 on VirtualBox to oVirt on Fedora 19 64bit via virt-v2v. The command I'm currently using is: virt-v2v -i libvirtxml -of qcow2 -oa sparse -o rhev -osd xxx.xxx.xxx.xxx:/usr/local/ovirt/exports --network ovirtmgmt /usr1/home/williams/Downloads/OpenAthens/VMs/OpenAthensLARuntime2.2.xml The exciting bit of the XML is: <devices> <emulator>/usr/bin/qemu-kvm</emulator> <disk type='file' device='disk' snapshot='no'> <source file='/usr1/home/williams/Downloads/OpenAthens/VMs/OpenAthens_LA_Runtime_2.2.img'/> <target dev='vda' bus='virtio'/> <alias name='virtio-disk0'/> </disk> </devices> The image is a RAW (taken from the working VirtualBox install) but I have tried the original image with the same result: virtio configured, but no virtio kernel found at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm I have looked at the code: /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm:~490 creating this and dumped the contents of the grub look up: Sys::VirtConvert::GuestfsHandle=HASH(0x433da98)< >/dev/VolGroup/lv_root< $VAR1 = bless( { 'onclose' => [ sub { "DUMMY" } ], 'g' => bless( { '_g' => 70645888, '_flags' => 0 }, 'Sys::Guestfs' ) }, 'Sys::VirtConvert::GuestfsHandle' ); If I tell the code to skip the section that calls 'die' the result becomes: virt-v2v: Failed to find a kernel_pkg.i686 package to install Any ideas on how to solve this or what the solution might, please? Best regards, Owen.
Matthew Booth
2013-Nov-15 14:05 UTC
Re: [Libguestfs] Virtio: 32bit CentOS 6.4 on VirtualBox to oVirt on Fedora 19 64bit via virt-v2v
On Fri, 2013-11-15 at 10:47 +0000, Owen Williams wrote:> Hello, > I've trying to move a 32bit CentOS 6.4 on VirtualBox to oVirt on > Fedora 19 64bit via virt-v2v. The command I'm currently using is: > > virt-v2v -i libvirtxml -of qcow2 -oa sparse -o rhev -osd > xxx.xxx.xxx.xxx:/usr/local/ovirt/exports --network > ovirtmgmt /usr1/home/williams/Downloads/OpenAthens/VMs/OpenAthensLARuntime2.2.xml > > The exciting bit of the XML is: > > <devices> > <emulator>/usr/bin/qemu-kvm</emulator> > <disk type='file' device='disk' snapshot='no'> > <source > file='/usr1/home/williams/Downloads/OpenAthens/VMs/OpenAthens_LA_Runtime_2.2.img'/> > <target dev='vda' bus='virtio'/> > <alias name='virtio-disk0'/> > </disk> > </devices> > > The image is a RAW (taken from the working VirtualBox install) but I > have tried the original image with the same result: > > virtio configured, but no virtio kernel found > at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pmHi, Owen, Could you please pastebin the output of the conversion run with the environment variable LIBGUESTFS_TRACE=1. Thanks, Matt
Owen Williams
2013-Nov-15 14:26 UTC
Re: [Libguestfs] Virtio: 32bit CentOS 6.4 on VirtualBox to oVirt on Fedora 19 64bit via virt-v2v
Matt, On Fri, 2013-11-15 at 14:05 +0000, Matthew Booth wrote:> On Fri, 2013-11-15 at 10:47 +0000, Owen Williams wrote: > > Hello, > > I've trying to move a 32bit CentOS 6.4 on VirtualBox to oVirt on > > Fedora 19 64bit via virt-v2v. The command I'm currently using is: > > > > virt-v2v -i libvirtxml -of qcow2 -oa sparse -o rhev -osd > > xxx.xxx.xxx.xxx:/usr/local/ovirt/exports --network > > ovirtmgmt /usr1/home/williams/Downloads/OpenAthens/VMs/OpenAthensLARuntime2.2.xml > > > > The exciting bit of the XML is: > > > > <devices> > > <emulator>/usr/bin/qemu-kvm</emulator> > > <disk type='file' device='disk' snapshot='no'> > > <source > > file='/usr1/home/williams/Downloads/OpenAthens/VMs/OpenAthens_LA_Runtime_2.2.img'/> > > <target dev='vda' bus='virtio'/> > > <alias name='virtio-disk0'/> > > </disk> > > </devices> > > > > The image is a RAW (taken from the working VirtualBox install) but I > > have tried the original image with the same result: > > > > virtio configured, but no virtio kernel found > > at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm > > Hi, Owen, > > Could you please pastebin the output of the conversion run with the > environment variable LIBGUESTFS_TRACE=1. > > Thanks, > > Matt >Done but with LIBGUESTFS_DEBUG=1 (I already had it) : http://pastebin.com/ZUQ9BMzP Anyway, I have a working VM now. I added: <capability os='linux' name='kernel' distro='centos' major='6' minor='4' arch='i686'> <dep name='kernel' minversion='2.6.18-128.el5'/> <dep name='lvm2' minversion='2.02.40-6.el5'/> <dep name='selinux-policy-targeted' minversion='2.4.6-203.el5' ifinstalled='yes'/> </capability> to /var/lib/virt-v2v/virt-v2v.db I hope this is useful. Best regards, Owen.
Maybe Matching Threads
- Virtio: 32bit CentOS 6.4 on VirtualBox to oVirt on Fedora 19 64bit via virt-v2v
- Re: Virtio: 32bit CentOS 6.4 on VirtualBox to oVirt on Fedora 19 64bit via virt-v2v
- RHN support and capabilities
- Firebug 1.2.0b4 for FF3
- [PATCH 0/4] Add SUSE guest converter to virt-v2v