Libvirt crash when upgrade from version 1.2.2 to version 2.5.0

If you install libvirt from ubuntu software library like this

sudo apt-get install libvirt-bin

The default version is 1.2.2 for Ubuntu Trusty.

However, after you upgrade it to version 2.5.0 from its source codes (restart the libvirtd service), you will see following error if you want to install vm with virt-install.

# ./ 

Starting install...
ERROR    Failed to connect socket to '/var/run/libvirt/virtlogd-sock': No such file or directory
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect qemu:///system start kvm1
otherwise, please restart your installation.
asked Dec 23, 2016 by harryxiyou (4,060 points)

1 Answer

Best answer

For this question, I find that, after new version (2.5.0) is installed and restart the libvirtd service (service libvirt-bin restart), '/usr/sbin/virtlogd' is not started automatically so that '/var/run/libvirt/virtlogd-sock' is not existed.

Just run "/usr/sbin/virtlogd" manually will solve this problem.

You may want to run virtlogd as a daemon like following.

# virtlogd -d
answered Dec 23, 2016 by harryxiyou (4,060 points)

Related questions

1 answer
asked Jan 28, 2014 by anonymous
1 answer
asked Sep 29, 2016 by harryxiyou (4,060 points)
1 answer
1 answer
asked Jul 12, 2014 by Eric Z Ma (41,910 points)
Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost