Creating a Private Image from a BMS
Scenarios
You can create a private image from a BMS and copy the system disk data of the BMS to the private image. The system disk contains an OS and pre-installed applications for running services.
Constraints
- Currently, only a BMS that supports quick provisioning (the OS is installed on an EVS disk) can be used to create a private image.
- Data disks of a BMS cannot be exported as images.
- The BMS must be stopped.
- This operation depends on the bms-network-config and Cloud-Init plug-ins in the BMS image.
Do not delete or modify built-in plug-ins of an image, such as Cloud-Init and bms-network-config. Otherwise, basic BMS functions may be unavailable.
- If the BMS is created using a public image, the image has the bms-network-config and Cloud-Init plug-ins by default.
- If the BMS is created using a private image, check whether bms-network-config and Cloud-Init are installed by following the instructions in Bare Metal Server Private Image Creation Guide.
Precautions
- Delete sensitive data from the BMS to prevent data leak before using it to creating a private image.
- Delete the configdrive partition.
If you used a BMS in a special network, a partition of about 64 MB will be generated. If the partition is not deleted before you use the BMS to create a private image, data in this partition will remain in the image.

Run the following command:
fdisk /dev/sda
d # Deletion command
3 # Location of the configdrive partition
w # Command to save the change

Example: configdrive partition deleted

- Delete residual files from the OS. For details, see Deleting Files.
- During the image creation process, do not change the BMS status. Otherwise, the image will fail to be created.
Procedure
- Log in to the BMS console.
- Locate the row that contains the target BMS, click More in the Operation column, and select Stop from the drop-down list.
Only a BMS in stopped state can be used to create a private image.
- After the BMS status changes to Stopped, click More in the Operation column and select Create Image.
The page for creating an image is displayed.
- Enter the image name, select an enterprise project, set a tag, and enter description as needed.
- On the displayed Details page, confirm the configuration and click Submit.
- Return to the image list. If the status of the private image changes to Normal, the private image is created successfully.
Follow-up Operations
If you want to create BMSs using the private image, see Creating a BMS Using a Private Image. On the page for creating BMSs, select the private image you have created.