Hide Forgot
Description of problem: virt-v2v should fail which a much better error message. Version-Release number of selected component (if applicable): virt-v2v-0.7.1-4.el6.x86_64 How reproducible: Very Steps to Reproduce: 1. migrate a vm with bad kernel options: <snip> serial -unit=0 -speed=115200 terminal -timeout=5 serial console </snip> Actual results: 1. libvirt returns this: Unable to convert this guest operating system. Its storage will be transferred and a domain created for it, but it may not operate correctly without manual reconfiguration. The domain will present all storage devices as ide, all network interfaces as rtl8319, and the host as x86_64. virt-v2v:BAN_brman2 configured without virtio drivers. 2. Migrated guest will crash Expected results: Better, more descriptive error message. Additional info: This was opened at mdbooth's request.
I tested this issue on el5 and el6. 1.Add "serial -unit=0 -speed=115200 terminal -timeout=5 serial console " to guest grub. 2.Convert it with virt-v2v #virt-v2v -ic qemu+ssh://10.66.5.10/system -os default -b breth0 kvm-rhel5.7-x86_64-qcow2 root.5.10's password: root.5.10's password: virt-v2v: Transferring storage volume rhel5u7-64b.qcow2: 5413437440 bytes Got signal 15 from pid 22460 aug_get: aug_get: Augeas returned NULL match at /usr/lib/perl5/vendor_perl/5.8.8/Sys/VirtV2V/GuestfsHandle.pm line 191. at /usr/lib/perl5/vendor_perl/5.8.8/Sys/VirtV2V/Converter/RedHat.pm line 425 3.If add "serial --unit=0 --speed=115200 terminal --timeout=5 serial console",then convert the guest,it will be converted successfully 4.And also I have tested with "serial -unit=0 -speed=115200",then convert it: # virt-v2v -ic qemu+ssh://10.66.5.10/system -os default -b breth0 kvm-rhel5.7-x86_64-qcow2 root.5.10's password: root.5.10's password: virt-v2v: Transferring storage volume rhel5u7-64b.qcow2: 5413896192 bytes Got signal 15 from pid 22633 virt-v2v: The connected hypervisor does not support a machine type of rhel6.1.0. It will be set to the current default. virt-v2v: kvm-rhel5.7-x86_64-qcow2 configured with virtio driver 5.Additionally,from Description,the version is virt-v2v-0.7.1-4.el6.x86_64,but the bug report version is 5.6.So installed virt-v2v-0.7.1-4.el6.x86_64 on rhel 5?
This issue is fixed on the virt-v2v side in upstream commit 3b9191d9178a18a6639e9acbd2aa8a79511d54ee.
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.
Hi,matthew I tried this issue on rhel6 and rhel7,the problem still exists,I think it is trivial,need I clone the bug to rhel6/rhel7,thanks. steps: 1.Add "serial -unit=0 -speed=115200 terminal -timeout=5 serial console " to guest grub. 2.Use virt-v2v to convert the guest,the error is still not so clearly and friendly. # virt-v2v -ic qemu+ssh://10.66.72.24/system -os default test-sparse-wl -on grubtest test-sparse-wl.img: 100% [=============================================================================]D 0h02m55s aug_get: aug_get: Augeas returned NULL match at /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line 201. at /usr/share/perl5/vendor_perl/Sys/VirtConvert/Converter/RedHat.pm line 176.