이 콘텐츠는 선택한 언어로 제공되지 않습니다.

8.4. Support for ISO images


You can load ISO images into the Image service. You can subsequently boot an ISO image using Compute.

Procedure 8.1. To load an ISO image to an Image service data store

  1. In the Image service, run the following command:
    $ glance image-create --name "rhel-server-7.0.iso" 
    --copy-from https://access.redhat.com/downloads/content/69/ver=/rhel---7/7.0/x86_64/product-downloads/rhel-server-7.0-x86_64-dvd.iso --is-public True --container-format bare --disk-format iso
    In this command, rhel-server-7.0.iso is the name for the ISO image after it is loaded to the Image service, and rhel-server-7.0-x86_64-dvd.iso is the name of the source ISO image.
  2. Optionally, to confirm the upload in Image service (glance), run this command:
    $ glance image-list

Procedure 8.2. To boot an instance from an ISO image

OpenStack supports booting instances using ISO images, but in order to make the instances created using ISO images functional, follow a few more steps:
  1. Boot instance with ISO image using the following command:
    $ nova boot 
    --image rhel-server-7.0-x86_64-dvd.iso 
    --block-device source=blank,dest=volume,size=10,shutdown=preserve 
    --nic net-id=NETWORK_UUID --flavor 3 INSTANCE_NAME
    In this command, rhel-server-7.0.iso is the ISO image, and INSTANCE_NAME is the name of the new instance. NETWORK_UUID is a valid network id in your system
    You will need Block Storage service and setting the parameter shutdown=preserve will preserve the volume even after the shutting down an instance.
  2. After the instance is successfully launched, connect to the instance using remote console and follow the instructions to install the system as using ISO images on regular computers. When the installation is complete and system reboots, the instance prompts you to install the operating system, which implies your instance is not usable.

Procedure 8.3. To make an instance that was booted from an ISO image functional

Run the following commands to ensure the instances you created using ISO images are functional:
  1. Delete the instance you just created:
    $ nova delete INSTANCE_NAME
  2. After you delete an instance, the system you just installed using your ISO image remains because the parameter shutdown=preserve was set, run the following command:
    $ cinder list
    You get a list with all the volumes in your system. In this list, you can find the volume that is attached to your ISO created instance, with the false bootable property.
  3. Upload the volume to glance:
    $ cinder upload-to-image VOLUME_UUID IMAGE_NAME
    The VOLUME_UUID is the uuid of the volume that is attached to your ISO created instance, and the IMAGE_NAME is the name that you give to your new image.
  4. After the image is successfully uploaded, you can now use the new image to boot instances, the instance launched using this image will contain the system you just installed using the ISO image.
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

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

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

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

Red Hat 소개

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

© 2024 Red Hat, Inc.