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
- Open the /etc/default/libvirt-bin file for editing on the affected host.
- Remove the ' -d' flag from Libvirt options.
- Attempt to stop the Libvirt daemon.
- Verify the service has been stopped.
- If the process is still present, attempt to gracefully kill it.
- Repeat Step #4 to verify the process exist. If it still does then kill it forcefully.
- Start the service.
Was this page helpful?