Exporting an image to IBM Cloud Object Storage
From the Image Templates page, you can export an image template to an IBM Cloud® Object Storage account.
The image export process takes a preexisting, private standard image template, or an encrypted image template and coverts the image into an image file that is stored in a specified location on an IBM Cloud Object Storage account.
If you imported a VMDK image, you can export that image in VHD or VMDK format. Because of the differences between the image formats, a chance of data loss exists. To protect your data if data loss occurs, the original VHD file is retained.
Before you begin
First, go to the device menu and make sure that you have the correct account permissions to complete the tasks.
- Go to your console's device menu. For more information, see Navigating to devices.
- Make sure that you have write access to IBM Cloud Object Storage. Only the account owner, or a user with the Manage Users classic infrastructure permission, can adjust the permissions.
For more information about permissions, see Classic infrastructure permissions and Managing device access.
If you plan to export this image template to IBM Cloud Object Storage, make sure the image template name does not contain any characters that can be problematic in a web address. For example, ?, =, <, and other special characters might cause unwanted behavior if not URL-encoded.
Exporting an image to IBM Cloud Object Storage
Use the following steps to export an image template to IBM Cloud Object Storage.
- From the Devices menu, select Manage > Images.
- Click Actions for the image template that you want to export and select Export Image to IBM COS. If an image template with the configuration that you want is not yet available, see Creating an Image Template.
- Complete the required fields (see table 1).
- Click OK to export the image to the specified location in the IBM Cloud Object Storage Account.
Field | Value |
---|---|
File Name | Enter the file name for the image. |
IBM Cloud Object Storage | Select an IBM Cloud Object Storage account. |
Location | Select the specific geographic region where you want the image template stored. |
Bucket | Select the IBM Cloud Object Storage bucket where you want the image template stored. Only buckets that exist in the regional location that you selected are valid. An error message is displayed if you specify a bucket that doesn't exist in the selected location. |
API Key | Specify the service ID API key that has write access to IBM Cloud Object Storage. For more information, see Managing service ID API keys. |
Target file type | Select the file type that you want to export. If you imported a VMDK image, you can export that image in VHD or VMDK format. If the file was originally in VHD format, you can export only as VHD. |
Next Steps
Because each image is a different size and has different characteristics, the export process might take several minutes before it completes.
After you export an image, the image remains in the list of image templates, but it is also available as a file in the IBM Cloud Object Storage location that is specified during the export process. You can download the image file from IBM Cloud Object Storage. From the Resource List in IBM Cloud console, access your Cloud Object Storage service instance. In the bucket where your image is stored, select the image files that you want to download and select Download objects.
When your image template is exported to IBM Cloud Object Storage, each block device (or disk) has its own associated file. For example, if your image file is named image.vhd, the first block device is exported as image-0.vhd. The second block device is exported as image-1.vhd, and so on.