[ovirt-users] [libvirt-users] virsh athentification failure
Daniel P. Berrange
berrange at redhat.com
Fri Dec 4 15:26:04 UTC 2015
On Fri, Dec 04, 2015 at 03:18:19PM +0000, Jean-Pierre Ribeauville wrote:
> Hi,
>
> I wrote a C program running in a KVM host.
> Part of it adds a Unix Channel device in all Guests in order to have a dialog from Host to Guest.
> As long as my host wasn't part of an Ovirt cluster , all was running fine.
>
>
> I added my host in a ovirt cluster , and then , when running the script creating the channel device ( by using "virsh attach-device --persistent -live ....." ) , I got following error :
>
> Please enter your authentication name:
> Please enter your password:
> error: failed to connect to the hypervisor
> error: no valid connection
> error: authentication failed: Failed to step SASL negotiation: -1 (SASL(-1): generic failure: All-whitespace username.)
>
>
> What's the user/password I've to use then ?
When you attach a compute node to oVirt, it sets up auth with libvirt
to prevent admins from connecting to libvirt. If you want to oiverride
that you need to create yourself a SASL user + password using the
saslpasswd2 command eg see
http://libvirt.org/auth.html#ACL_server_username
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the Users
mailing list