[libvirt-users] [Libvirt Users]how to provide password authentication for qemu driver

Dhaval_Shah1 at dell.com Dhaval_Shah1 at dell.com
Mon Apr 27 12:13:36 UTC 2015


Dell Customer Communication
Hi All,

I am using

Compiled against library: libvirt 1.2.9
Using library: libvirt 1.2.9
Using API: QEMU 1.2.9
Running hypervisor: QEMU 2.1.2

I want user to provide username and password authentication to virConnectPtr
virConnectOpenAuth(const char *name,
                   virConnectAuthPtr auth,
                   unsigned int flags)  to login remotely for the qemu hypervisor.

But it is not taking user provided username and driver. Because internally it is calling below qemu driver function,

static virDrvOpenStatus qemuConnectOpen(virConnectPtr conn,
                                        virConnectAuthPtr auth ATTRIBUTE_UNUSED,
                                        unsigned int flags)

so it is not taking any user provided auth parameters and it is internally calling separate function for prompting password. I don't want to provide password here.
In case of windows HyperV it is working fine as it takes auth parameters  but for Qemu Hypervisor I am facing this issue since here the auth parameters as marked as ATTRIBUTE_UNUSED.

Can anyone help me with this that how can I achieve this?

Thanks & Regards,
Dhaval Shah

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20150427/f324187c/attachment.htm>


More information about the libvirt-users mailing list