Unable to Manage Libvirtd Process With Systemctl
Problem
Environment
Cause
Resolution
$ sudo vi /etc/default/libvirt-bin# options passed to libvirtd, add "-l" to listen on tcplibvirtd_opts="-l -d"Last updated
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 - All Versions
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-binRemove the ' -d' flag from Libvirt options.
# options passed to libvirtd, add "-l" to listen on tcplibvirtd_opts="-l -d"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.
Last updated
$ sudo systemctl stop libvirt-bin$ ps -ef | grep libvirtd# pkill libvirtd# pkill -9 libvirtd$ sudo systemctl start libvirt-bin