Hide Forgot
## Description of problem: Using rhel7 virt-v2v, i cannot convert a remote KVM guest ## Version-Release number of selected component (if applicable): virt-v2v-1.28.1-1.55.el7_2.4.x86_64 libguestfs-1.28.1-1.55.el7_2.4.x86_64 ## How reproducible: always ## Steps to Reproduce: 1. Set up some guests on a RHEL6 KVM server 2. install virt-v2v on a RHEL7 conversion host 3. try and convert with the command: virt-v2v -v -x -ic qemu+ssh://root@<kvm-host>/system rhel7-01 -o rhev -os <rhev-export-domain>:/data/export --network ovirtmgmt ## Actual results: Get the error: qemu-img create -q -f qcow2 -b '/var/lib/libvirt/images/rhel7-01.qcow2' -o 'compat=1.1,backing_fmt=qcow2' /var/tmp/v2vovl8cb460.qcow2 qemu-img: /var/tmp/v2vovl8cb460.qcow2: Could not open '/var/lib/libvirt/images/rhel7-01.qcow2': No such file or directory virt-v2v: error: qemu-img command failed, see earlier errors ## Expected results: Be able to export the VM, so it can be imported into RHEV later. ## Additional info: KVM host details: kernel-2.6.32-573.el6.x86_64 qemu-img-0.12.1.2-2.491.el6_8.3.x86_64 qemu-kvm-0.12.1.2-2.491.el6_8.3.x86_64 libvirt-0.10.2-60.el6.x86_64 If I run that failed qemu-img command on the KVM host with the '-q' and 'compat' options removed, it works: # qemu-img create -q -f qcow2 -b '/var/lib/libvirt/images/rhel7-01.qcow2' -o 'compat=1.1,backing_fmt=qcow2' /var/tmp/v2vovl8cb460.qcow2 create: invalid option -- 'q' ... # qemu-img create -f qcow2 -b '/var/lib/libvirt/images/rhel7-01.qcow2' -o 'compat=1.1,backing_fmt=qcow2' /var/tmp/v2vovl8cb460.qcow2 Unknown option 'compat' Invalid options for file format 'qcow2'. # qemu-img create -f qcow2 -b '/var/lib/libvirt/images/rhel7-01.qcow2' -o 'backing_fmt=qcow2' /var/tmp/v2vovl8cb460.qcow2 Formatting '/var/tmp/v2vovl8cb460.qcow2', fmt=qcow2 size=7516192768 backing_file='/var/lib/libvirt/images/rhel7-01.qcow2' backing_fmt='qcow2' encryption=off cluster_size=65536 <success> # qemu-img info /var/tmp/v2vovl8cb460.qcow2 image: /var/tmp/v2vovl8cb460.qcow2 file format: qcow2 virtual size: 7.0G (7516192768 bytes) disk size: 196K cluster_size: 65536 backing file: /var/lib/libvirt/images/rhel7-01.qcow2 backing file format: qcow2 We are trying to migrate these KVM guests to a new RHEV3.6/RHEL6.6 environment. We can't use the RHV 'import disk' feature, as I believe that's only in 4.0 If there's a better way to go about this, please let me know.
You're using the wrong tool. If the guest already runs on KVM then you shouldn't be using virt-v2v. Use something like import-to-ovirt: http://git.annexia.org/?p=import-to-ovirt.git;a=summary I recently modified import-to-ovirt so it can be run directly from RHEL 6 hosts.