检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Before using an ECS or external image file to create a private image, ensure that VirtIO drivers have been installed in the OS so that ECSs created from this image can support KVM virtualization and the network performance can be improved.
For example: Sharing an ECS with other users Migrating an ECS from one region to another, for example, from CN East-Shanghai1 to CN South-Guangzhou Migrating data from an old ECS to a new one Why Do I Have to Select a Vault When Creating a Full-ECS Image?
For details, see Elastic Cloud Server User Guide. The ECS status is Running or Stopped. Constraints The data disk capacity of the cloud server must be no greater than 1 TB. If the capacity is greater than 1 TB for an ECS, you can only use it to create a full-ECS image.
For example, if image A does not support fast ECS creation, you can replicate it to generate image copy_A that supports fast ECS creation. Constraints Full-ECS images cannot be replicated within the same region.
(Optional) Installing and Configuring Cloud-Init Scenarios To ensure that you can use the user data injection function to inject initial custom information into ECSs created from a private image (such as setting the ECS login password), install Cloud-Init on the ECS used to create
Before using an ECS to create a private image, ensure that the ECS is stopped. The token obtained from IAM is valid for only 24 hours. If you want to use a token for authentication, you can cache it to avoid frequently calling the IAM API.
When creating an ECS or a BMS, you can select an image based on the following factors: Region and AZ Image Type Image Fee OS Region and AZ An image is a regional resource. You cannot use an image to create an instance in a different region.
Function ECS system disk image This parameter specifies whether the image is used to create ECSs or BMSs. The value can be ECS system disk image or BMS system disk image. Architecture x86 The value can be x86 or ARM.
If an ECS has no Xen drivers installed, the network performance of the ECS will be poor, and the security groups and firewall configured for the ECS will not take effect.
Constraints (Creating a Full-ECS Image from an ECS) When creating a full-ECS image from an ECS, ensure that the ECS has been properly configured, or the image creation may fail. For details, see How Do I Configure an ECS, BMS, or Image File Before I Use It to Create an Image?
If you selected the wrong OS, the ECS creation may fail when the image is used. If the system disk capacity you configured is less than the one in the image file, image registration will fail. In such cases, delete the image and create a new one using the correct settings.
Log in to the ECS as user root.
OSs Supporting UEFI Boot Mode The ECS boot mode can be BIOS or UEFI. For details about the differences between them, see How Is BIOS Different from UEFI? Table 1 lists the OSs that support the UEFI boot mode.
Deleting Files from the Network Rule Directory Scenarios To prevent NIC name drift when you use a private image to create ECSs, you need to delete files from the network rule directory of the VM where the ECS or image file is located during the private image creation.
Operation Guide Creating a System Disk Image from a Windows ECS 01:45 Creating a System Disk Image from a Windows ECS. Creating a Linux System Disk Image from an External Image File 02:20 Creating a Linux System Disk Image from an External Image File.
More ECS Can I Change the Image After Successfully Purchasing an ECS? Can an ECS Created from a Private Image Have Different Hardware Specifications from the ECS Used to Create the Private Image? What Should I Do If an ECS Starts Slowly? How Do I Clean Up the Disk Space?
The following figure shows the process of creating an ECS from an image, customizing the ECS, creating a new image from the ECS, and using the new image to create identical ECSs.
file to create an image, you must have Tenant Administrator permissions for OBS. ims:serverImages:create obs:bucket:* obs:object:* kms:*:* ecs:cloudServers:get ecs:servers:get ecs:serverVolumes:use ecs:cloudServers:list ecs:serverVolumeAttachments:list ecs:servers:list evs:volumes
Why Can't I Find an ISO Image When I Want to Use It to Create an ECS or Change the OS of an ECS? How Do I Create a Full-ECS Image Using an ECS That Has a Spanned Volume? Why Is Sysprep Required for Creating a Private Image from a Windows ECS?
It will not be available on the ECS console. You cannot use it to create ECSs or change ECS OSs. You need to install an OS on the temporary ECS and use that ECS to create a system disk image which can be used to create ECSs or change ECS OSs.