> 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/unable-to-manage-libvirtd-process-with-systemctl.md).

# Unable to Manage Libvirtd Process With Systemctl

## Problem

* After upgrading from Ubuntu 14.04 LTS to Ubuntu 16.04 LTS, systemctl shows ***libvirt-bin*** in an **inactive/dead** state.
* Attempts to manage the process using systemctl commands or */etc/init.d/\** scripts fail silently.

## Environment

* Platform9 Managed OpenStack - All Versions
* Ubuntu 16.04 LTS after upgrading from Ubuntu 14.04 LTS

## Cause

Upgrading from Ubuntu 14.04 LTS with ***libvirt-bin*** installed, to Ubuntu 16.04 LTS does not consistently update the */etc/default/libvirt-bin* configuration file causing an option which attempts to fork the ***libvirtd*** process to be left in place.

## Resolution

1. Open the */etc/default/libvirt-bin* file for editing on the affected host.

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

```none
$ sudo vi /etc/default/libvirt-bin
```

{% endtab %}
{% endtabs %}

2. Remove the ' **-d**' flag from Libvirt options.

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

```none
# options passed to libvirtd, add "-l" to listen on tcplibvirtd_opts="-l -d"
```

{% endtab %}
{% endtabs %}

3. Attempt to stop the Libvirt daemon.

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

```none
$ sudo systemctl stop libvirt-bin
```

{% endtab %}
{% endtabs %}

4. Verify the service has been stopped.

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

```none
$ ps -ef | grep libvirtd
```

{% endtab %}
{% endtabs %}

5. If the process is still present, attempt to gracefully kill it.

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

```none
# pkill libvirtd
```

{% endtab %}
{% endtabs %}

6. Repeat Step #4 to verify the process exist. If it still does then kill it forcefully.

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

```none
# pkill -9 libvirtd
```

{% endtab %}
{% endtabs %}

7. Start the service.

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

```none
$ sudo systemctl start libvirt-bin
```

{% endtab %}
{% endtabs %}


---

# 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/unable-to-manage-libvirtd-process-with-systemctl.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.
