7.5. 设置 UEFI 引导模式
默认引导模式是传统 BIOS 模式。新式系统可能要求使用 UEFI 引导模式,而非传统 BIOS 模式。完成以下步骤以将引导模式更改为 UEFI 模式。
步骤
在
undercloud.conf
文件中设置下列参数:ipxe_enabled = True inspection_enable_uefi = True
保存
undercloud.conf
文件并运行 undercloud 安装:$ openstack undercloud install
等待安装脚本完成。
将每个注册节点的引导模式设置为
uefi
。例如,要在capabilities
属性中添加或替换现有的boot_mode
参数,可运行以下命令:$ NODE=<NODE NAME OR ID> ; openstack baremetal node set --property capabilities="boot_mode:uefi,$(openstack baremetal node show $NODE -f json -c properties | jq -r .properties.capabilities | sed "s/boot_mode:[^,]*,//g")" $NODE
注意检查是否保留了
profile
和boot_option
功能。$ openstack baremetal node show r530-12 -f json -c properties | jq -r .properties.capabilities
将各个类型的引导模式设为
uefi
:$ openstack flavor set --property capabilities:boot_mode='uefi' control