Importing disk images with import-to-ovirt.pl = Authentication Error

--------------060608090400030400020601 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit We have an existing setup consisting of virt-manager/libvirt/KVM hypervisors that we're planning to migrate to Ovirt. Given that all of our guests are existing KVM/virtio images, it does not make sense for us to virt-v2v them over because of the ensuing registry/kernel/etc. changes that may be unnecessarily applied. One solution to this is the import-to-ovirt.pl script created by Redhat's maintainer of virt-v2v. https://rwmj.wordpress.com/2015/09/18/importing-kvm-guests-to-ovirt-or-rhev/ Running this script on a host against a disk image will import the image to exported storage and mate it to a basic configuration so it can be imported easily afterward, or at least it should. Our current test set up consists of hosted engine Ovirt 3.5.4 on Centos 7.1. When attempting to import an image using this script on the host we get the following errors: |libvirt needs authentication to connect to libvirt URI qemu:///system ||libvirt: XML-RPC error : authentication failed: authentication failed ||could not connect to libvirt (URI = qemu:///system): authentication failed: authentication failed at ./import-to-ovirt.pl line 230. | I understand that diagnosing this script is well outside of the context of this mailing list, but this is clearly just an authentication problem. We've tried the root, ovirt and the admin@internal credentials and none of them work. Is there a default login/password to access libvirt on an Ovirt host? Our system works as it should otherwise. Thanks in advance to anyone that can shed light here. --------------060608090400030400020601 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> </head> <body bgcolor="#FFFFFF" text="#000000"> We have an existing setup consisting of virt-manager/libvirt/KVM hypervisors that we're planning to migrate to Ovirt. Given that all of our guests are existing KVM/virtio images, it does not make sense for us to virt-v2v them over because of the ensuing registry/kernel/etc. changes that may be unnecessarily applied.<br> <br> One solution to this is the import-to-ovirt.pl script created by Redhat's maintainer of virt-v2v. <a href="https://rwmj.wordpress.com/2015/09/18/importing-kvm-guests-to-ovirt-or-rhev/"><a class="moz-txt-link-freetext" href="https://rwmj.wordpress.com/2015/09/18/importing-kvm-guests-to-ovirt-or-rhev/">https://rwmj.wordpress.com/2015/09/18/importing-kvm-guests-to-ovirt-or-rhev/</a></a> Running this script on a host against a disk image will import the image to exported storage and mate it to a basic configuration so it can be imported easily afterward, or at least it should.<br> <br> Our current test set up consists of hosted engine Ovirt 3.5.4 on Centos 7.1. When attempting to import an image using this script on the host we get the following errors:<br> <br> <code>libvirt needs authentication to connect to libvirt URI qemu:///system<br> </code><code>libvirt: XML-RPC error : authentication failed: authentication failed<br> </code><code>could not connect to libvirt (URI = qemu:///system): authentication failed: authentication failed at ./import-to-ovirt.pl line 230.<br> </code><br> I understand that diagnosing this script is well outside of the context of this mailing list, but this is clearly just an authentication problem. We've tried the root, ovirt and the admin@internal credentials and none of them work. Is there a default login/password to access libvirt on an Ovirt host? <br> <br> Our system works as it should otherwise. <br> <br> Thanks in advance to anyone that can shed light here.<br> </body> </html> --------------060608090400030400020601--

On Fri, Sep 25, 2015 at 6:08 PM, Adrian Garay < adrian.garay@thaultanklines.com> wrote:
We have an existing setup consisting of virt-manager/libvirt/KVM hypervisors that we're planning to migrate to Ovirt. Given that all of our guests are existing KVM/virtio images, it does not make sense for us to virt-v2v them over because of the ensuing registry/kernel/etc. changes that may be unnecessarily applied.
One solution to this is the import-to-ovirt.pl script created by Redhat's maintainer of virt-v2v. <https://rwmj.wordpress.com/2015/09/18/importing-kvm-guests-to-ovirt-or-rhev/> https://rwmj.wordpress.com/2015/09/18/importing-kvm-guests-to-ovirt-or-rhev/ Running this script on a host against a disk image will import the image to exported storage and mate it to a basic configuration so it can be imported easily afterward, or at least it should.
Our current test set up consists of hosted engine Ovirt 3.5.4 on Centos 7.1. When attempting to import an image using this script on the host we get the following errors:
libvirt needs authentication to connect to libvirt URI qemu:///system libvirt: XML-RPC error : authentication failed: authentication failed could not connect to libvirt (URI = qemu:///system): authentication failed: authentication failed at ./import-to-ovirt.pl line 230.
I understand that diagnosing this script is well outside of the context of this mailing list, but this is clearly just an authentication problem. We've tried the root, ovirt and the admin@internal credentials and none of them work. Is there a default login/password to access libvirt on an Ovirt host?
Yes: username: vdsm@ovirt password: shibboleth Nir Our system works as it should otherwise.
Thanks in advance to anyone that can shed light here.
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On Fri, Sep 25, 2015 at 10:08:48AM -0500, Adrian Garay wrote:
|libvirt needs authentication to connect to libvirt URI qemu:///system ||libvirt: XML-RPC error : authentication failed: authentication failed ||could not connect to libvirt (URI = qemu:///system): authentication failed: authentication failed at ./import-to-ovirt.pl line 230. | I understand that diagnosing this script is well outside of the context of this mailing list, but this is clearly just an authentication problem.
For the mailing list record, Adrian's solution was to set export LIBGUESTFS_BACKEND=direct which causes libguestfs to run qemu directly instead of trying to use libvirt. Thanks, Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
participants (3)
-
Adrian Garay
-
Nir Soffer
-
Richard W.M. Jones