In addition to creating a custom image, you can also import the system disk images of local servers or servers on other cloud platforms to a custom CVM image, and then create or reinstall a CVM with it.
Prepare an image file that meets the import requirements.
Image Attribute | Requirements |
---|---|
OS |
|
Image format |
|
File system type | GPT partition is not supported |
Image size |
|
Network |
|
Driver |
|
Kernel | Native kernel is preferred for an image. Any modifications on the kernel may cause the import to fail. |
Region | Importing images from COS in another region is unavailable for the Shanghai Finance and Shenzhen Finance. |
You will be notified about the result of import in the Message Center.NoteEnsure the entered COS file URL is correct.
If the import failed, troubleshoot as follows:
Make sure you have subscribed to product service notifications via Message Subscription. This ensures you can receive notifications from Message Center, SMS messages, and emails about the cause of failure.
NoteIf you do not subscribe to product service notifications, you will not receive the import result in Message Center.
You can refer to the following information for troubleshooting on errors. See error codes for detailed error prompt and error description.
The InvalidUrl error indicates that an incorrect COS URL has been entered. The possible causes are:
NoteSigned COS URLs can only be accessed once.
NoteThe image import service accesses the COS server in the local region through the private network.
The InvalidFormatSize error indicates that the format or size of an image to be imported does not meet the following requirements of Tencent Cloud:
qcow2
,vhd
, vmdk
, and raw
.If you receive an error message that the image format or size is invalid:
The VirtioNotInstall error indicates that the image to be imported does not have Virtio driver installed. Tencent Cloud uses the KVM virtualization technology and requires users to install Virtio driver on the image to be imported. Except for a few customized Linux OSs, most Linux OSs have Virtio driver installed. In Windows OSs, users need to manually install the Virtio driver:
The CloudInitNotInstalled error indicates that the image to be imported does not have cloud-init installed. Tencent Cloud uses the open-source cloud-init software to initialize the CVM. If cloud-init is not installed, the CVM initialization will fail.
The PartitionNotPresent error indicates that the imported image is incomplete. Check whether the boot partition was included when the image was created.
The RootPartitionNotFound error indicates that the root partition cannot be detected in the image to be imported. Check the image file. The possible causes are:
The InternalError error indicates that the cause of error has not yet been recorded. Contact the customer service and our technical personnel will help you resolve the issue.
Error Code | Description | Troubleshoot |
---|---|---|
InvalidUrl | Invalid COS URL | Check whether the COS URL is the same as the imported image URL. |
InvalidFormatSize | The format is incorrect or the size is too large. | Check the format and size of the image as described in Preparations. |
VirtioNotInstall | The Virtio driver has not bee installed. | Install the Virtio driver in the image by referring to the Driver section in Preparations. |
PartitionNotPresent | Partition information not found. | Image is corrupted possibly due to incorrect image creation method. |
CloudInitNotInstalled | Cloud-init software not installed. | Install cloud-init in the Linux image by referring to the Driver section in Preparations. |
RootPartitionNotFound | Root partition not found. | Image is corrupted possibly due to incorrect image creation method. |
InternalError | Other errors. | Contact our customer service. |
Was this page helpful?