> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pmo/solution/libvirt-service-fails-to-start-with-error-cannot-read-ca-certif.md).

# Libvirt Service Fails to Start With Error "Cannot Read CA Certificate

## Problem

The ***pf9-ostackhost*** service is down because dependent ***libvirtd*** service refuses to start with error "Cannot read CA certificate: No such file or directory".

{% tabs %}
{% tab title="log" %}

```java
libvirtd: 6368: error : virNetTLSContextCheckCertFile:112 : Cannot read CA certificate '/etc/pf9/certs/libvirt/cacert.pem': No such file or directory
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack - v3.6.0 and Higher
* Nova
* Libvirt

## Cause

Libvirt is configured to look for a CA certificate by default and use it to establish a TLS/SSL connection. If the correct certificate is not configured or is missing or is not applicable then ***libvirtd*** refuses to start with an error about the CA certificate.

## Resolution

1. Open the file */etc/libvirt/libvirtd.conf* with a text editor and make the following changes.

{% tabs %}
{% tab title="Values" %}

```bash
listen_tcp=1
listen_tls=0
auth_tcp="none"
tcp_port="16509"
```

{% endtab %}
{% endtabs %}

2. Start the ***libvirtd*** service.

{% tabs %}
{% tab title="Command" %}

```none
# systemctl start libvirtd.service
```

{% endtab %}
{% endtabs %}

3. Start the ***pf9-ostackhost*** service.

{% tabs %}
{% tab title="Command" %}

```none
# systemctl start pf9-ostackhost.service
```

{% endtab %}
{% endtabs %}

4. If the ***libvirtd*** service still does not start, please contact [Platform9 Support](http://support.pf9.io) for further assistance.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://platform9.com/kb/pmo/solution/libvirt-service-fails-to-start-with-error-cannot-read-ca-certif.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
