How to enable libvirtd auth just like oVirt ?

Hi everyone: In my libvirtd test env, there's no auth when using virsh: root@ubts2:~# virsh Welcome to virsh, the virtualization interactive terminal. Type: 'help' for help with commands 'quit' to quit virsh # virsh # virsh # list Id Name State -------------------------- 26 3.ohost1 running 27 3.ohost2 running 28 3.ohost3 running virsh # virsh # virsh # virsh # But, in oVirt env, there's auth when using virsh: [root@ohost1 ~]# virsh Welcome to virsh, the virtualization interactive terminal. Type: 'help' for help with commands 'quit' to quit virsh # virsh # virsh # virsh # virsh # list Please enter your authentication name: How can I enable auth in my libvirtd env just like oVirt ? Thanks.

On Mon, Jan 18, 2021 at 8:33 AM tommy <sz_cuitao@163.com> wrote:
*How can I enable auth in my libvirtd env just like oVirt ?*
Thanks.
The main howto file for doing this in general with libvirt is here: https://libvirt.org/auth.html Based on what oVirt 4.3 and 4.4 configure inside the files: /etc/libvirt/libvirtd.conf /etc/sasl2/libvirt.conf you can map the howto above possible choices with what you want and so mimic oVirt behavior. If I read correctly the above files, it should be sasl authentication mechanism with DIGEST-MD5 plugin and SCRAM mechanism for both oVirt 4.3 and 4.4 HIH, Gianluca
participants (2)
-
Gianluca Cecchi
-
tommy