24.9. 전체 디스크 이미지 빌드
환경 변수를 설정하고 이미지를 사용자 지정한 후 openstack overcloud image build
명령을 사용하여 이미지를 생성합니다.
절차
필요한 모든 설정 파일을 사용하여
openstack overcloud image build
명령을 실행합니다.# openstack overcloud image build \ --image-name overcloud-hardened-full \ 1 --config-file /home/stack/overcloud-hardened-images-python3-custom.yaml \ 2 --config-file /usr/share/openstack-tripleo-common/image-yaml/overcloud-hardened-images-rhel8.yaml 3
- 1
- UEFI 전체 디스크 이미지의 경우
overcloud-hardened-uefi-full
을 사용합니다. - 2
overcloud-hardened-images-python3-custom.yaml
파일은 새 디스크 크기가 포함된 사용자 지정 설정 파일입니다. 다른 사용자 지정 디스크 크기를 사용하지 않는 경우 기존/usr/share/openstack-tripleo-common/image-yaml/overcloud-hardened-images-python3.yaml
파일을 대신 사용합니다. 표준 UEFI 전체 디스크 이미지의 경우overcloud-hardened-images-uefi-python3.yaml
을 사용합니다.- 3
- UEFI 전체 디스크 이미지의 경우
overcloud-hardened-images-uefi-rhel8.yaml
을 사용합니다.
이 명령을 실행하면
overcloud-hardened-full.qcow2
라는 이미지가 생성되고 필요한 모든 보안 기능이 포함됩니다.