主要思路: 通过kvm安装(libvirt是建立在kvm之上的),然后用仓库,最后记得安装charts,就可以运行helm命令来安装组件
步骤0: 安装libvirt
https://github.com/kubernetes/minikube/blob/master/docs/drivers.md
sudo yum install libvirt-daemon-kvm qemu-kvm -y
sudo systemctl enable libvirtd.service
sudo systemctl start libvirtd.service
sudo systemctl status libvirtd.service
出现错误:
[root@localhost ~]# sudo systemctl status libvirtd.service -l
● libvirtd.service - Virtualization daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit) since 一 2019-03-18 19:48:51 CST; 18s ago
Docs: man:libvirtd(8)
https://libvirt.org
Process: 8501 ExecStart=/usr/sbin/libvirtd $LIBVIRTD_ARGS (code=exited, status=3)
Main PID: 8501 (code=exited, status=3)
Tasks: 2 (limit: 32768)
CGroup: /system.slice/libvirtd.service
├─1951 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
└─1954 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
3月 18 19:48:51 localhost.localdomain systemd[1]: Failed to start Virtualization daemon.
3月 18 19:48:51 localhost.localdomain systemd[1]: Unit libvirtd.service entered failed state.
3月 18 19:48:51 localhost.localdomain systemd[1]: libvirtd.service failed.
3月 18 19:48:51 localhost.localdomain systemd[1]: libvirtd.service holdoff time over, scheduling restart.
3月 18 19:48:51 localhost.localdomain systemd[1]: start request repeated too quickly for libvirtd.service
3月 18 19:48:51 localhost.localdomain systemd[1]: Failed to start Virtualization daemon.
3月 18 19:48:51 localhost.localdomain systemd[1]: Unit libvirtd.service entered failed state.
3月 18 19:48:51 localhost.localdomain systemd[1]: libvirtd.service failed.
尝试:
1) 搜索
libvirtd.service holdoff time over, scheduling restart.
有错误日志:
Mar 18 20:14:40 bogon journal: libvirt version: 4.5.0, package: 10.el7_6.4 (CentOS BuildSystem <http://bugs.centos.org>, 2019-01-29-17:31:22, x86-01.bsys.centos.org)
Mar 18 20:14:40 bogon journal: hostname: localhost.localdomain
Mar 18 20:14:40 bogon journal: 内部错误:Failed to load module '/usr/lib64/libvirt/storage-backend/libvirt_storage_backend_rbd.so': /usr/lib64/libvirt/storage-backend/libvirt_storage_backend_rbd.so: undefined symbol: rbd_diff_iterate2
Mar 18 20:14:40 bogon st2rulesengine: 2019-03-18 20:14:40,793 INFO [-] Found 0 rules defined for trigger default.my_polling_event
Mar 18 20:14:40 bogon st2rulesengine: 2019-03-18 20:14:40,795 INFO [-] No matching rules found for trigger instance 5c8f8bb09dc6d66cbbda47a5.
Mar 18 20:14:44 bogon dbus-daemon: dbus[813]: [system] Activating service name='org.fedoraproject.Setroubleshootd' (using servicehelper)
Mar 18 20:14:44 bogon dbus[813]: [system] Activating service name='org.fedoraproject.Setroubleshootd' (using servicehelper)
Mar 18 20:14:44 bogon dbus[813]: [system] Activated service 'org.fedoraproject.Setroubleshootd' failed: Failed to execute program /lib64/dbus-1/dbus-daemon-launch-helper: Success
Mar 18 20:14:44 bogon dbus-daemon: dbus[813]: [system] Activated service 'org.fedoraproject.Setroubleshootd' failed: Failed to execute program /lib64/dbus-1/dbus-daemon-launch-helper: Success
Mar 18 20:14:44 bogon dbus[813]: [system] Activating service name='org.fedoraproject.Setroubleshootd' (using servicehelper)
Mar 18 20:14:44 bogon dbus-daemon: dbus[813]: [system] Activating service name='org.fedoraproject.Setroubleshootd' (using servicehelper)
Mar 18 20:14:44 bogon dbus[813]: [system] Activated service 'org.fedoraproject.Setroubleshootd' failed: Failed to execute program /lib64/db