libvirt 版本:3.2.0
这是我的 libvirtd.conf 配置。
vim /etc/libvirt/libvirtd.conf
listen_tls = 0
listen_tcp = 1
auth_tcp = "none"
如果我不使用上述配置,我关闭并重新启动 libvirt 没有任何问题。但是因为要live migrate,所以需要添加上面的参数,添加后出现问题,并且导致关机重启失败
cat /usr/lib/systemd/system/libvirtd.service
[root@localhost wl]# cat /usr/lib/systemd/system/libvirtd.service
# NB we don't use socket activation. When libvirtd starts it will
# spawn any virtual machines registered for autostart. We want this
# to occur on every boot, regardless of whether any client connects
# to a socket. Thus socket activation doesn't have any benefit
[Unit]
Description=Virtualization daemon
Requires=virtlogd.socket
Requires=virtlockd.socket
Before=libvirt-guests.service
After=network.target
After=dbus.service
After=iscsid.service
After=apparmor.service
After=local-fs.target
After=remote-fs.target
Documentation=man:libvirtd(8)
Documentation=http://libvirt.org
[Service]
Type=notify
EnvironmentFile=-/etc/sysconfig/libvirtd
ExecStart=/usr/sbin/libvirtd $LIBVIRTD_ARGS **-d -l**
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
# At least 1 FD per guest, often 2 (eg qemu monitor + qemu agent).
# eg if we want to support 4096 guests, we'll typically need 8192 FDs
# If changing this, also consider virtlogd.service & virtlockd.service
# limits which are also related to number of guests
LimitNOFILE=8192
[Install]
WantedBy=multi-user.target
Also=virtlockd.socket
Also=virtlogd.socket
-d -l 上面加粗的工作,也支持live migrate plus
首先我使用“systemctl start libvirtd”来启动 libvirt,
然后 systemctl 停止 libvirtd,但 libvirt 不会关闭
问题是我使用“systemctl restart libvirtd”命令会报错
想问是什么问题?我该如何解决?