The following patch series adds support to pre-populate libvirt connection credentials using a simple config file
(In reply to comment #1)
> The following patch series adds support to pre-populate libvirt connection
> credentials using a simple config file
Dan, is this work committed, so this BZ can be put in POST?
If this work didn't get committed, please move back to assigned.
Hi, Daniel Berrange
I want to verify this bug , could you provide some steps to do that ?
Thanks very much.
This feature is basically about providing a way to provide a username+ password when connecting to a libvirtd server configured with SASL Digest-MD5
To setup libvirtd auth config for username+password see this section:
Check you can connect using virsh, and that you are prompted for username+password.
Next, to configure the libvirt client so that apps like virsh can get password/username from a config file follow this guide:
if that is setup correctly, you should now be able to connect with virsh without password
Thanks, Daniel Berrange!
Verify this bug with :
1)add configurations in /etc/libvirt/libvirtd.conf
listen_tls = 0
listen_tcp = 1
auth_tcp = "sasl"
2) add sasl user
# saslpasswd2 -a libvirt test
(input your passwd)
# sasldblistusers2 -f /etc/libvirt/passwd.db
3) restart libvirtd
1) add this file in the Client
# cat /etc/libvirt/auth.conf
2) try to connect to server
#virsh -c qemu+tcp://10.66.85.231/system
Welcome to virsh, the virtualization interactive terminal.
Type: 'help' for help with commands
'quit' to quit
No need pass to login , so bug is fixed
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.