libvirt Version: 3.2.0restart libvirtd --listen Fehler
Dies ist meine Konfiguration von libvirtd.conf.
vim /etc/libvirt/libvirtd.conf
listen_tls = 0
listen_tcp = 1
auth_tcp = "none"
Wenn ich die obige Konfiguration nicht verwende, schalte ich libvirt ohne Probleme herunter und starte sie neu. Aber weil ich Migrate leben will, so muß ich die oben genannten Parameter hinzuzufügen, Nach Problemen Hinzufügen und Ursache der Abschaltung und Neustart fehlgeschlagen
cat /usr/lib/systemd/system/libvirtd.service
[[email protected] 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 über der kühne Arbeit, auch Live-Migrate zu unterstützen und
zunächst verwende ich "systemctl starten libvirtd" libvirt zu starten,
dann systemctl libvirtd zu stoppen, aber die libvirt nicht‘schließen
das Problem ist, dass ich die Verwendung "systemctl neu starten libvirtd" Befehl wird ein Fehler sein
Möchten Sie fragen, was ist das Problem? Wie löse ich es?