[Libguestfs] libguestfs-tools with libvirt SASL authentication

Dan Ryder (daryder) daryder at cisco.com
Tue Nov 4 18:47:04 UTC 2014


Hello,

I'm running into an issue using the 'virt-df' command when SASL is enabled in libvirt. I'm running version 1.26.5 of libguestfs on an Ubuntu 14.04 OS.

I'm running 'virt-df' for all guests at one time, not specifying a domain or image to use. I was expecting a SASL authentication prompt but to no avail. Below is a sample run:

root at all-in-one:~# virt-df -P 15
libvirt: XML-RPC error : authentication failed: Failed to start SASL negotiation: -4 (SASL(-4): no mechanism available: No worthy mechs found)
virt-df: could not connect to libvirt (code 45, domain 7): authentication failed: Failed to start SASL negotiation: -4 (SASL(-4): no mechanism available: No worthy mechs found)

However, if I do specify a domain to run on, I am prompted for SASL authentication:

root at all-in-one:~# virt-df -d instance-0000004d
libvirt needs authentication to connect to libvirt URI NULL
(see also: http://libvirt.org/auth.html http://libvirt.org/uri.html)
Please enter your authentication name: nova at all-in-one
Please enter your password:
Filesystem                           1K-blocks       Used  Available  Use%
instance-0000004d:/dev/sdb                 458        458          0  100%
instance-0000004d:/dev/sda1              22773      12223       9322   54%

Is there any way to successfully run 'virt-df' for all instances at once while SASL is enabled in libvirt?


Thanks,
Dan Ryder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20141104/9e918651/attachment.htm>


More information about the Libguestfs mailing list