Re: [ovirt-users] [libvirt-users] virsh athentification failure

2015-12-04 Thread Daniel P. Berrange
On Fri, Dec 04, 2015 at 03:18:19PM +, 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 :|
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] virt-v2v import needs saslauth credentials

2013-08-13 Thread Daniel P. Berrange
On Tue, Aug 13, 2013 at 05:34:29PM +0100, Richard W.M. Jones wrote:
 On Mon, Aug 12, 2013 at 04:49:02PM -0400, Jim Kinney wrote:
  I need to convert a vmdk to ovirt use. I have a qcow2 formatted image and
  it's corresponding xml. I'm trying to run virt-v2v to put things into the
  proper formats/places for ovirt but I need to use my proper credentials to
  access the qemu:///system space.
  
  Where/how do I do this? man pages have no suggestions on virt-v2v. I have a
  user/passwd combo in saslauth that works for virsh.
  
  virt-v2v -i libvirtxml -o libvirt -os export --vmtype server -n ovirtmgmt
  /var/lib/exports/exports/5eb89069-b750-4d32-b7d3-432fd77202d1/images/test/test.xml
  virt-v2v: Failed to connect to qemu:///system: libvirt error code: 45,
  message: authentication failed: Failed to step SASL negotiation: -7
  (SASL(-7): invalid parameter supplied: Unexpectedly missing a prompt result)
 
 This is really a libvirt question, to which I don't know the answer.
 
 Complex libvirt authentication (such as SASL) may ask the user a
 series of questions, such as username and password.  Are you running
 virt-v2v interactively at a terminal?

More importantly does virt-v2v use the virConnectOpenAuth() method
which enables callbacks to be provided to prompt for auth ? If not,
then it'll need to be updated to support authentication.

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 :|
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] [node-devel] Seting the timezone on the node

2012-05-28 Thread Daniel P. Berrange
On Fri, May 25, 2012 at 04:57:59PM +0200, Michel van Horssen wrote:
 My time paranoia is partly because of the other migration problem
 I had (tls related). It was suggested to look at time differences
 on the nodes and the VDSM.

Anything time related with migration, and/or TLS should be operating
against UTC, regardless of what the OS timezone is set to. Basically
the only thing timezone ought to affect is timestamps written into
logfiles.

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 :|
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users