Openstack 创建实例提示Failed to allocate the network(s)

环境是 Windows 11 → VMware Workstation→ Ubuntu → VirtualBox → OpenStack Web界面 创建实例时 报错
Error: Failed to perform requested operation on instance "ecs02", the instance has an error status: Please try again later [Error: Build of instance 6c7a7ffc-c3f7-4082-bd2a-5b6a32a286eb aborted: Failed to allocate the network(s), not rescheduling.].

解决方案:

修改 provider 【自服务网络】

🛡️ 嵌套环境优化补丁
在控制节点修改配置:controller

1. 修改L3代理配置(解决路由问题)

sudo nano /etc/neutron/l3_agent.ini

找到并修改:

[DEFAULT]
interface_driver = openvswitch
external_network_bridge = # 确保此行为空

2. 修改DHCP代理配置(解决元数据服务)

sudo nano /etc/neutron/dhcp_agent.ini

添加/修改:

[DEFAULT]
enable_isolated_metadata = true # 解除网络隔离限制

步骤3:重启服务生效

sudo systemctl restart neutron-l3-agent
sudo systemctl restart neutron-dhcp-agent
sudo systemctl restart neutron-server

image

posted @ 2025-08-07 23:57  Huysheng  阅读(23)  评论(0)    收藏  举报