# Live Migration Fails With Error "Failed to connect to remote libvirt URI

## Problem

Live migration of an instance fails with the following error observed in the */var/log/pf9/ostackhost.log* on the source host.

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

```none
ERROR nova.virt.libvirt.driver [-] [instance: 4c36cc41-3b5f-47f1-952b-44e8485c811e] Live Migration failure: operation failed: Failed to connect to remote libvirt URI qemu+tls://10.85.150.24/system?no_verify=1&pkipath=/etc/pf9/certs/libvirt: Unable to read TLS confirmation: Input/output error: libvirt.libvirtError: operation failed: Failed to connect to remote libvirt URI qemu+tls://10.85.150.24/system?no_verify=1&pkipath=/etc/pf9/certs/libvirt: Unable to read TLS confirmation: Input/output error
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack - All versions
* Nova
* Libvirt

## Cause

The *libvirt* service is not able to setup a TLS connection with the destination host because the certificates were rotated recently. This is an upstream limitation and has been fixed in *libvirt* v6.2.0.

## Resolution

1. Restart the *libvirtd* service on the destination host where the instance was being migrated.

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

```none
# sudo service libvirtd restart
```

{% endtab %}
{% endtabs %}

## Additional Information

Starting **v6.2.0**, the *libvirtd* service restart will not be needed as per the *libvirt*[release notes](https://libvirt.org/news.html).


---

# Agent Instructions: 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:

```
GET https://platform9.com/kb/pmo/solution/live-migration-fails-with-error-failed-to-connect-to-remote-lib.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
