Hide Forgot
Description of problem: In virt-v2v manual,there is description of -ic parameter as: -ic URI Specifies the connection to use when using the libvirt input method. If omitted, this defaults to qemu:///system when virt-v2v runs as root, or qemu:///session when virt-v2v runs as a regular user When use virt-v2v as regular user,the -ic parameter descripted in virt-v2v manual doesn't match the actual behaviour Version-Release number of selected component (if applicable): virt-v2v-0.8.3-5.el6.x86_64 libguestfs-1.7.17-26.el6.x86_64 libvirt-0.9.4-20.el6.x86_64 How reproducible: always Steps to Reproduce: 1.Make sure there are two pools created by non-root user,and there is a guest in one pool. [tzheng@tzheng-linux ~]$ virsh pool-list Name State Autostart ----------------------------------------- test-pool active no tzheng-pool active no [tzheng@tzheng-linux ~]$ virsh list --all Id Name State ---------------------------------- - esx4.0-rhel5.6-x86_64 shut off 2.Use virt-v2v to convert the guest to another pool as non-root user. [tzheng@tzheng-linux ~]$ virt-v2v -os test-pool -on test esx4.0-rhel5.6-x86_64 virt-v2v: Failed to connect to qemu:///system: libvirt error code: 45, message: authentication failed: authentication failed When I add "-ic qemu:///session" to the command,it will convert successfully. [tzheng@tzheng-linux ~]$ virt-v2v -ic qemu:///session -os test-pool -on test esx4.0-rhel5.6-x86_64 ESX4.0-rhel5u6-64b_ESX4.0-rhel5u6-64b: 100% [=====================================================================]D 0h03m04s virt-v2v: test configured with virtio drivers. Actual results: If omit the -ic parameter,the error message showed as:Failed to connect to qemu:///system. Expected results: Since in virt-v2v manual,if omit the -ic parameter as regular user,it defaults to qemu:///session,so the error message showed should be:Failed to connect to qemu:///session Additional info:
As communicated with Matthew,the priority and severity of the bug is low,it can be fixed in 6.3.
Since RHEL 6.3 External Beta has begun, and this bug remains unresolved, it has been rejected as it is not proposed as exception or blocker. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
So the solution is to update man page: -ic URI Specifies the connection to use when using the libvirt input method. If omitted, this defaults to qemu:///system Or to fix it in the source code?
Virt-v2v needs to run on the latest Red Hat Enterprise Linux release to ensure it can correctly read and modify new guest filesystem features. A new version of virt-v2v is now available for RHEL 7.1. Before RHEL 7.1 is released, follow the instructions here to install unsupported preview packages on top of RHEL 7.0: https://www.redhat.com/archives/libguestfs/2014-May/msg00090.html After RHEL 7.1 is released, virt-v2v will be available in Technical Preview. You can run virt-v2v in a single virtual machine. Other requirements are covered here: http://libguestfs.org/virt-v2v.1.html#resource-requirements If you find a missing feature or bug in the new version of virt-v2v please file a bug using the following link: https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%207&component=libguestfs