23.8. 构建完整磁盘镜像
设置环境变量和自定义镜像后,使用 openstack overcloud image build 命令创建镜像。
步骤
使用所有必要配置文件运行
openstack overcloud image build命令。openstack overcloud image build \ --image-name overcloud-hardened-full \ --config-file /home/stack/overcloud-hardened-images-python3-custom.yaml \ --config-file /usr/share/openstack-tripleo-common/image-yaml/overcloud-hardened-images-rhel8.yaml
# openstack overcloud image build \ --image-name overcloud-hardened-full \ --config-file /home/stack/overcloud-hardened-images-python3-custom.yaml \1 --config-file /usr/share/openstack-tripleo-common/image-yaml/overcloud-hardened-images-rhel8.yaml2 Copy to Clipboard Copied! Toggle word wrap Toggle overflow 该命令会创建一个称为
overcloud-hardened-full.qcow2的镜像,其中包含所有必需的安全功能。