Encrypt System Disk and Image
Overview
You can create an encrypted custom image, and the system disk of instances created from it will also be encrypted. Once the encrypted system disk is created, any new custom images or system disk snapshots derived from it will also be encrypted.
Create an encrypted custom image
1. Sign in to the Baidu AI Cloud official website
Sign in to Baidu AI Cloud official website.
- If you have not registered an account, you must first [register an account](UserGuide/Register an account.md#Register a Baidu Account).
- If you have registered an account, you can directly sign in.
2. Access the BCC console
Navigate to the BCC console by selecting "Baidu Cloud Compute > Baidu Cloud Compute (BCC)" in the left sidebar.
3. Enter the disk list
Click "Disk" on the left sidebar of the console page to view the disk list. Then click the "Create Image" button next to the System Disk to create an image for it.

4. Create an Encrypted Custom Image
After clicking "Create Image," enable the Encryption option to create an encrypted custom image. If enabling CDS Disk Encryption for the first time, you must authorize CDS to use your created KMS master keys and review KMS billing details. If the KMS service hasn’t been enabled, you’ll need to enable it first.
After enabling Disk Encryption, CDS will automatically retrieve your created KMS master keys within this region. If your master key does not appear in the drop-down menu, possible reasons include:
- You have not created a KMS key yet. Please proceed to the KMS console to create one;
- KMS is Region-specific. If you have not created a KMS key in this Region, please proceed to the KMS console to create one;
- The KMS key type you created in this region is incompatible with associated disk encryption. Please create BAIDU_AES_256, AES_128, or AES_256 type keys.

5. Creation Completed
After clicking "Confirm," please wait a few minutes. During the image creation process, the System Disk will display an "Unavailable" status. Once the image creation is complete, the System Disk status will change to "Running," and you can click on "Image" in the left sidebar to view the image list.

Creating Encrypted System Disks
1. Sign in to the Baidu AI Cloud official website
Sign in to Baidu AI Cloud official website.
- If you have not registered an account, you must first [register an account](UserGuide/Register an account.md#Register a Baidu Account).
- If you have registered an account, you can directly sign in.
2. Access the BCC console
Navigate to the BCC console by selecting "Baidu Cloud Compute > Baidu Cloud Compute (BCC)" in the left sidebar.
3. Creating New BCC Cloud Compute
Click "Create Instance" at the top of the console page to create a new BCC Instance.

4. Create an Encrypted System Disk
Select "Image Type" as "Custom Image" and choose the created encrypted custom image. The new System Disk will automatically be encrypted and use the KMS master key associated with the encrypted custom image.

Note:
- Encrypted System Disks cannot be changed to be non-encrypted after creation. Enable encryption with caution;
- Snapshots of encrypted System Disks and new Custom Images created from them will be automatically encrypted and cannot be changed to a non-encrypted state;
- Encrypted Images can currently only be created in Beijing; Guangzhou and Suzhou are not yet supported;
- Encrypted system disks retain the KMS master key from their custom images and cannot be altered. Subsequent snapshots and custom images will continue to utilize the same KMS master key.
5. Creation Completed
