我要评分
获取效率
正确性
完整性
易理解

Troubleshooting

Symptom

After the libvirtd service is started, an error message is displayed during VM startup, stating "error: can't connect to virtlogd: Failed to connect socket to '/var/run/libvirt/virtlogd-sock': Connection refused."

Solution

Run the following commands to rectify the fault:

1
2
3
4
5
6
sudo systemctl enable --now virtlogd.socket
sudo systemctl enable --now libvirtd.service
sudo pkill virtlogd
sudo pkill libvirtd
sudo systemctl restart virtlogd.socket
sudo systemctl restart libvirtd