Overview
If an image file is larger than 128 GB, you can import it using fast import. Only the RAW and ZVHD2 formats support fast import. The image file to be imported cannot exceed 1 TB.
Methods
- ZVHD2
- Optimize the image file.
- Upload the image file to an OBS bucket.
- Register the image file on the cloud platform.
- RAW
- Optimize the image file.
- Generate a bitmap file for the image file.
- Upload the image file and bitmap file to an OBS bucket.
- Register the image file on the cloud platform.
- Others
- If the file format is converted to ZVHD2:
- Optimize the image file.
- Convert the image file format to ZVHD2.
- Upload the image file to an OBS bucket.
- Register the image file on the cloud platform.
- If the file format is converted to RAW:
- Optimize the image file.
- Convert the image file format to RAW and generate a bitmap file for the image file.
- Upload the image file and bitmap file to an OBS bucket.
- Register the image file on the cloud platform.
- If the file format is converted to ZVHD2:
- The import of large files depends on lazy loading which defers loading of file data until it is needed. This reduces the initial loading time. However, RAW files do not support this feature. When you upload a RAW file, you need to upload its bitmap together.
- For details about how to optimize an image file, see Optimization Process (Windows) or Optimization Process (Linux) depending on the OS type specified in the image file.
Import Process
The following describes how to import an external image file. Assume that you need to convert the file format to ZVHD2 or RAW.
You can use qemu-img-hw or the open-source tool qemu-img to convert the image format. qemu-img-hw can only be used in Linux.
The tool package contains qemu-img-hw (for converting image formats) and CreateMF.jar (for generating bitmap files).
- Linux
You are advised to use an EulerOS ECS to convert the file format.
Figure 1 Import process
For details, see Quickly Importing an Image File (Linux).
- Windows
You are advised to use a local PC running Windows to convert the file format.
qemu-img cannot convert image files to the ZVHD2 format. You need to convert an image file to the RAW format and then use CreateMF.jar to generate a bitmap file.
Figure 2 Import process (Windows)
For details, see Quickly Importing an Image File (Windows).
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot