5.4.3. 사용자 이미지 설치


사용자 이미지를 구성한 다음 이미지를 이미지 서비스(glance)에 업로드합니다.

사전 요구 사항

절차

  1. 고객 포털에서 Red Hat Enterprise Linux KVM 게스트 이미지를 다운로드합니다.
  2. 다운로드한 이미지로 DIB_LOCAL_IMAGE 를 정의합니다.

    $ export DIB_LOCAL_IMAGE=rhel-8.0-x86_64-kvm.qcow2
    Copy to Clipboard Toggle word wrap
  3. 등록 정보를 설정합니다. Red Hat 고객 포털을 사용하는 경우 다음 정보를 구성해야 합니다.

    $ export REG_USER='USER_NAME'
    $ export REG_PASSWORD='PASSWORD'
    $ export REG_AUTO_ATTACH=true
    $ export REG_METHOD=portal
    $ export https_proxy='IP_address:port' (if applicable)
    $ export http_proxy='IP_address:port' (if applicable)
    Copy to Clipboard Toggle word wrap

    Red Hat Satellite를 사용하는 경우 다음 정보를 구성해야 합니다.

    $ export REG_USER='USER_NAME'
    $ export REG_PASSWORD='PASSWORD'
    $ export REG_SAT_URL='<SATELLITE URL>'
    $ export REG_ORG='<SATELLITE ORG>'
    $ export REG_ENV='<SATELLITE ENV>'
    $ export REG_METHOD=<METHOD>
    Copy to Clipboard Toggle word wrap

    오프라인 리포지토리가 있는 경우 DIB_YUM_REPO_CONF를 로컬 리포지토리 구성으로 정의할 수 있습니다.

    $ export DIB_YUM_REPO_CONF=<path-to-local-repository-config-file>
    Copy to Clipboard Toggle word wrap
  4. diskimage-builder 도구를 사용하여 사용자 이미지를 생성합니다.

    $ disk-image-create rhel8 baremetal -o rhel-image
    Copy to Clipboard Toggle word wrap

    이 명령은 커널을 rhel-image.vmlinuz 로 추출하고 초기 램디스크를 rhel-image.initrd 로 추출합니다.

  5. 이미지를 이미지 서비스에 업로드합니다.

    $ KERNEL_ID=$(openstack image create \
      --file rhel-image.vmlinuz --public \
      --container-format aki --disk-format aki \
      -f value -c id rhel-image.vmlinuz)
    $ RAMDISK_ID=$(openstack image create \
      --file rhel-image.initrd --public \
      --container-format ari --disk-format ari \
      -f value -c id rhel-image.initrd)
    $ openstack image create \
      --file rhel-image.qcow2   --public \
      --container-format bare \
      --disk-format qcow2 \
      --property kernel_id=$KERNEL_ID \
      --property ramdisk_id=$RAMDISK_ID \
      rhel-image
    Copy to Clipboard Toggle word wrap
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat