我尝试在 Virtualbox 中的 Centos 8 上安装 openstack 计算服务。我遵循以下说明:https://docs.openstack.org/nova/yoga/install/compute-install-rdo.html
但是当我尝试启动服务时出现错误:
vsystemctl status libvirtd.service openstack-nova-compute.service
● libvirtd.service - Virtualization daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset:
enabled)
Active: inactive (dead) since Fri 2023-11-03 21:17:08 MSK; 1min 22s ago
Docs: man:libvirtd(8)
https://libvirt.org
Main PID: 2529 (libvirtd)
Tasks: 19 (limit: 32768)
Memory: 14.8M
CGroup: /system.slice/libvirtd.service
└─2529 /usr/sbin/libvirtd --timeout 120
Nov 03 21:17:08 compute.openstack.local systemd[1]: Starting Virtualization daemon...
Nov 03 21:17:08 compute.openstack.local systemd[1]: Started Virtualization daemon.
Nov 03 21:17:08 compute.openstack.local libvirtd[2529]:36:36, )
Nov 03 21:17:08 compute.openstack.local libvirtd[2529]: hostname:
compute.openstack.local
Nov 03 21:17:08 compute.openstack.local libvirtd[2529]: Unable to open /dev/kvm: No
such file or directory
● openstack-nova-compute.service - OpenStack Nova Compute Server
Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled;
vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2023-11-03 21:17:09 MSK; 1min 20s ago
Process: 2575 ExecStart=/usr/bin/nova-compute (code=exited, status=203/EXEC)
Main PID: 2575 (code=exited, status=203/EXEC)
Nov 03 21:17:09 compute.openstack.local systemd[1]: openstack-nova-compute.service:
Failed with result 'exit-code'.
Nov 03 21:17:09 compute.openstack.local systemd[1]: Failed to start OpenStack Nova
Compute Server.
Nov 03 21:17:09 compute.openstack.local systemd[1]: openstack-nova-compute.service:
Service RestartSec=100ms expired, scheduling restart.
Nov 03 21:17:09 compute.openstack.local systemd[1]: openstack-nova-compute.service:
Scheduled restart job, restart counter is at 5.
Nov 03 21:17:09 compute.openstack.local systemd[1]: Stopped OpenStack Nova Compute
Server.
Nov 03 21:17:09 compute.openstack.local systemd[1]: openstack-nova-compute.service:
Start request repeated too quickly.
Nov 03 21:17:09 compute.openstack.local systemd[1]: openstack-nova-compute.service:
Failed with result 'exit-code'.
Nov 03 21:17:09 compute.openstack.local systemd[1]: Failed to start OpenStack Nova
Compute Server.
怎么修复?
由于我在 VM 上安装,因此我将 libvirt 配置为使用 QEMU 而不是 KVM。
etc/nova/nova.conf
[libvirt]
# ...
virt_type = qemu