Este contenido no está disponible en el idioma seleccionado.
Chapter 21. Preparing and uploading customized RHEL images to the Alibaba Cloud
You can upload customized .ami images that you created by using RHEL image builder to the Alibaba Cloud.
21.1. Creating an instance of a customized RHEL image using Alibaba Cloud Copiar enlaceEnlace copiado en el portapapeles!
You can create instances of a customized RHEL image by using the Alibaba ECS Console.
Prerequisites
- You have activated OSS and uploaded your custom image.
- You have successfully imported your image to ECS Console.
Procedure
- Log in to the ECS console.
- On the left-side menu, select Instances.
- In the upper-right corner, click Create Instance. A new window opens.
- Complete all the required information. See Creating an instance by using the custom launch for more details.
Click Create Instance and confirm the order.
NoteYou can see the option Create Order instead of Create Instance, depending on your subscription.
As a result, you have an active instance ready for deployment from the
Alibaba ECS Console.
21.2. Importing images to Alibaba Cloud Copiar enlaceEnlace copiado en el portapapeles!
You can import a customized Alibaba RHEL image that you created by using RHEL image builder to the Elastic Compute Service (ECS).
Prerequisites
- Your system is set up for uploading Alibaba images.
-
You have created an
amiimage by using RHEL image builder. - You have a bucket. See Creating a bucket.
- You have an active Alibaba Account.
- You activated OSS.
- You have uploaded the image to Object Storage Service (OSS).
Procedure
- Log in to the ECS console, click , then click . A dialog window opens.
- Confirm the correct region and enter the following information:
-
OSS Object Address: Obtain from OSS Object Address. -
Image Name,Operating System,System Disk Size,System Architecture. Platform: Red Hat-
Optional: Provide
Image Format(qcow2orami),Image Description, andAdd Images of Data Disksdetails. - Click OK and wait for the import to complete.
- Log in to the OSS console and select your bucket from the left menu.
- Click the Files, then click Upload.
- Configure Upload To to the current or specified directory, and File ACL for permission type.
Click Upload, select your image, then click Open.
ECSConsole imports the customized image.
-
Optional: Provide
21.3. Uploading customized RHEL images to Alibaba Copiar enlaceEnlace copiado en el portapapeles!
You can upload a customized AMI image you created by using RHEL image builder to the Object Storage Service (OSS).
Prerequisites
- Your system is set up for uploading Alibaba images.
-
You have created an
amiimage by using RHEL image builder. - You have a bucket. See Creating a bucket.
- You have an active Alibaba Account.
- You activated OSS.
Procedure
- Log in to the OSS console.
- In the Bucket menu on the left, select the bucket to which you want to upload an image.
- In the upper right menu, click the Files tab.
Click . A dialog window opens on the right side. Configure the following:
- Upload To: Choose to upload the file to the Current directory or to a Specified directory.
- File ACL: Choose the type of permission of the uploaded file.
- Click .
- Select the image you want to upload to the OSS Console.
- Click .
21.4. Preparing to upload customized RHEL images to Alibaba Cloud Copiar enlaceEnlace copiado en el portapapeles!
To deploy a customized RHEL image to the Alibaba Cloud, first, you must verify the customized image. The image requires a specific configuration to boot, because Alibaba Cloud custom images must meet certain requirements.
RHEL image builder generates images that conform to the requirements of Alibaba. However, you must use the Alibaba image_check tool to verify the format compliance of your image.
Prerequisites
- You must have created an Alibaba image by using RHEL image builder.
Procedure
-
Connect to the system containing the image that you want to check by using the Alibaba
image_checktool. Download the
image_checktool:$ curl -O https://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/attach/73848/cn_zh/1557459863884/image_checkChange the file permission of the image compliance tool:
# chmod +x image_checkRun the command to start the image compliance tool checkup:
# ./image_checkThe tool verifies the system configuration and generates a report that in your screen. The
image_checktool saves this report in the same folder where the image compliance tool is running.
Troubleshooting
- If any of the Detection Items fail, follow the instructions in the terminal to correct them.