7.5. 设置 UEFI 引导模式
默认引导模式是传统 BIOS 模式。新式系统可能要求使用 UEFI 引导模式,而非传统 BIOS 模式。完成以下步骤以将引导模式更改为 UEFI 模式。
步骤
在
undercloud.conf文件中设置下列参数:ipxe_enabled = True inspection_enable_uefi = True
ipxe_enabled = True inspection_enable_uefi = TrueCopy to Clipboard Copied! Toggle word wrap Toggle overflow 保存
undercloud.conf文件并运行 undercloud 安装:openstack undercloud install
$ openstack undercloud installCopy to Clipboard Copied! Toggle word wrap Toggle overflow 等待安装脚本完成。
将每个注册节点的引导模式设置为
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
$ 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")" $NODECopy to Clipboard Copied! Toggle word wrap Toggle overflow 注意检查是否保留了
profile和boot_option功能。openstack baremetal node show r530-12 -f json -c properties | jq -r .properties.capabilities
$ openstack baremetal node show r530-12 -f json -c properties | jq -r .properties.capabilitiesCopy to Clipboard Copied! Toggle word wrap Toggle overflow 将各个类型的引导模式设为
uefi:openstack flavor set --property capabilities:boot_mode='uefi' control
$ openstack flavor set --property capabilities:boot_mode='uefi' controlCopy to Clipboard Copied! Toggle word wrap Toggle overflow