When completing an upgrade from Ubuntu 14.04 with libvirt-bin installed to Ubuntu 16.04 LTS, the libvirtd daemon may become unmanageable. This article will provide steps to verify you are facing this particular bug and make the necessary configuration changes to resolve the issue.
- 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.
- Platform9 Managed OpenStack
- Ubuntu 16.04 LTS after upgrading from Ubuntu 14.04 LTS
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.
- Open the /etc/default/libvirt-bin file for editing on the affected host.
$ sudo vi /etc/default/libvirt-bin
- Remove the '-d' flag from the Libvirt options.
# options passed to libvirtd, add "-l" to listen on tcp
- Attempt to stop the Libvirt daemon.
$ sudo systemctl stop libvirt-bin
- Verify the service has been stopped.
$ ps -ef | grep libvirtd
- If the process is still present, attempt to gracefully kill it.
# pkill libvirtd
- Repeat Step #4 to verify the process exist. If it still does then kill it forcefully
# pkill -9 libvirtd
- Start the service.
$ sudo systemctl start libvirt-bin