libvirt版本
If you install libvirt from ubuntu software library like this
如果从这样的ubuntu 软件库安装libvirt
sudo apt-get安装libvirt-bin (sudo apt-get install libvirt-bin)
The default version is 1.2.2 for Ubuntu Trusty.
Ubuntu Trusty的默认版本是1.2.2。
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.
但是,将其从源代码升级到2.5.0版(重新启动libvirtd服务)后,如果要使用virt-install安装vm,则会看到以下错误 。
# ./installkvm1.sh
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.
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.
对于这个问题,我发现在安装新版本(2.5.0)并重新启动libvirtd服务(服务libvirt-bin restart)之后,不会自动启动'/ usr / sbin / virtlogd',因此'/ var / run / libvirt / virtlogd-sock'不存在。
Just run “/usr/sbin/virtlogd” manually will solve this problem.
只需手动运行“ / usr / sbin / virtlogd”即可解决此问题。
You may want to run virtlogd as a daemon like following.
您可能希望将virtlogd作为守护程序运行,如下所示。
# virtlogd -d
翻译自: https://www.systutorials.com/libvirt-crash-when-upgrade-from-version-1-2-2-to-version-2-5-0/
libvirt版本