시작하려는 서비스가 libvirtd.service
활성화되어 있지만 시작 시 활성화되어 있지 않습니다.
[root@GTS ~]# systemctl enable libvirtd.service
[root@GTS ~]# systemctl status libvirtd.service
○ libvirtd.service - Virtualization daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor >
Active: inactive (dead)
TriggeredBy: ○ libvirtd-admin.socket
○ libvirtd.socket
○ libvirtd-ro.socket
○ libvirtd-tcp.socket
○ libvirtd-tls.socket
Docs: man:libvirtd(8)
https://libvirt.org
[root@GTS ~]# systemctl disable libvirtd.service
Removed /etc/systemd/system/multi-user.target.wants/libvirtd.service.
Removed /etc/systemd/system/sockets.target.wants/virtlockd.socket.
Removed /etc/systemd/system/sockets.target.wants/virtlogd.socket.
Removed /etc/systemd/system/sockets.target.wants/libvirtd.socket.
Removed /etc/systemd/system/sockets.target.wants/libvirtd-ro.socket.
[root@GTS ~]# systemctl enable libvirtd.service
Created symlink /etc/systemd/system/multi-user.target.wants/libvirtd.service → /usr/lib/systemd/system/libvirtd.service.
Created symlink /etc/systemd/system/sockets.target.wants/virtlockd.socket → /usr/lib/systemd/system/virtlockd.socket.
Created symlink /etc/systemd/system/sockets.target.wants/virtlogd.socket → /usr/lib/systemd/system/virtlogd.socket.
Created symlink /etc/systemd/system/sockets.target.wants/libvirtd.socket → /usr/lib/systemd/system/libvirtd.socket.
Created symlink /etc/systemd/system/sockets.target.wants/libvirtd-ro.socket → /usr/lib/systemd/system/libvirtd-ro.socket.
[root@GTS ~]#
내 사용자를 그룹에 추가하려고 시도했지만 libvirt
작동하지 않았습니다.
또한 시작할 때libvirtd.service
[plm@GTS ~]$ systemctl start libvirtd
mi 비밀번호 확인이 필요합니다.
답변1
장치 를 활성화하고 시작해야 합니다 libvirtd.socket
. libvirtd 서비스는 소켓을 통해 활성화되며, 소켓을 사용하여 서비스에 연결할 수 있습니다.
https://libvirt.org/daemons.html#monolithic-systemd-integration