Re: [libvirt] SYSCONF_DIR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 02, 2009 at 08:44:55PM +0300, Zvi Dubitzky wrote:
> I can do  TLS certificate authentication on a remote libvirt access 
> through  'virsh'   ( virsh -c  qemu+tls://hostnake/system) .
> But  when I try same auth  from my C code linked with  libvirt 0.6.1 I get 
> the message : " libvir:  Remote error:  cannot access CA  certificate 
> '/usr/local/etc/pki/CA/cacert.pem   . No such file or directory"
> 
> My certificate is at /etc/pki/CA   as instructed in the web site (deafult) 
> and so is my libvirtd.conf saying.   virsh works ok with it . 
> In  my case the server and client are on same machine .
> 
> I guess  the need for  SYSCONF_DIR = /usr/local/etc  comes from the 
> configure of the libvirt . In fact I see  in the configure file the 
> statement :  sysconfigdir = '${prefix}/etc .
> 
> Any idea how to fix that . I am using the installed libvirt . did not 
> rebuild it . 

The online documentation assumes that you've got an OS distributor
packaged installation.

ie, that it was built with

  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var


The fact that its looking in /usr/local/etc/pki suggests you've
just run the configured script with its default settings. You
can either move your certificates to this location, or change
the configure arguments during build


Regards,
Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]