[libvirt-users] Problems with tls connection when ran with user privileges

Pasquale Dir phate867 at gmail.com
Wed Feb 26 13:05:17 UTC 2014


I set up my certificates, ca client and server, as described in your
documentation: http://wiki.libvirt.org/page/TLSCreateServerCerts.
I followed it step by step so it must be ok.

However, when I run
virsh -c qemu://192.168.1.2/system and I try a command like
list --all

I get:
error: impossible connect to the hypervisor
errore: no valid connection
errore: Unable to set x509 CA certificate: /etc/pki/CA/cacert.pem: Error
while reading file.

If I run the same command with root privileges:

virsh -c qemu://192.168.1.2/system

everything works, anyway I get this warning too:

2014-02-26 13:03:25.035+0000: 10825: info : libvirt version: 1.1.1
2014-02-26 13:03:25.035+0000: 10825: warning :
virNetTLSContextCheckCertKeyPurpose:364 : Certificate
/etc/pki/libvirt/clientcert.pem purpose does not allow use for with a TLS
client

I don't know if it is a problem, I need to live migrate machines...

Anyway, main problem is that I don't want to run virsh with root privileges.
Where the problem is?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20140226/0974d275/attachment.htm>


More information about the libvirt-users mailing list