Creating a custom image from volume and provisioning an instance in the UI
This tutorial demonstrates how to create a custom image from the boot volume of a virtual server instance, and then use that image to create an instance.
Before you begin
This tutorial requires the following prerequisites.
- An IBM Cloud billable account.
- An IBM Cloud VPC.
- An IBM Cloud SSH key.
- An IBM Cloud virtual server instance.
Objectives
- Create a resource group, Image resources.
- Create a custom image from an instances' boot volume.
- Create a new virtual server instance by using the custom image.
Creating a resource group
You can use resource groups to organize images.
- Log in to the IBM Cloud console.
- Click Manage > Account.
- From the Account page, click Resource groups > Create.
- Give the resource group a unique name such as Image resources.
- Click Add.
Creating an image from a volume in the UI
You can use the UI to create an image from a volume that is attached to an available virtual server instance as the primary boot volume.
Choose the source for your custom image
Complete the following actions to import your custom image in the UI.
- In IBM Cloud console, go to Navigation Menu icon > Infrastructure > Compute > Images.
- On the Custom images tab, click Create. The Custom image provision page is displayed.
- Complete the following required fields on the Custom image provision page.
Field | Value |
---|---|
Name | Custom OS |
Resource group | Image resources |
Tags | Custom image |
Region | Dallas 2 |
Source | Virtual server instance boot volume (default) |
Create an image from a virtual server instance boot volume
When you select Virtual server instance boot volume as the source of your custom image, a list of instances is displayed. Complete the following actions to create an image from the instance's boot volume.
- On the Custom image provision page, select Virtual server instance boot volume (default).
- Select an instance from the list. You're selecting the boot volume of the instance.
- Make sure that the instance is not running. You can stop a running instance by clicking the Actions icon and selecting Stop.
- Select IBM-managed encryption as the encryption type.
- On the side panel, click Create custom image.
Creating virtual server instances in the UI
You can create virtual server instances in your IBM Cloud VPC in the IBM Cloud console. Complete the following actions to create a virtual server instance.
-
In the IBM Cloud console, go to Navigation Menu icon > Infrastructure > Compute > Virtual server instances.
-
Click Create and enter the required information.
Instance provisioning selections Field Value Name Server Instance Resource group Image resources Tags OS Location Dallas 2 Type of virtual server Public Operating system Select Custom image > (custom image). SSH key An existing SSH key
For more information, see SSH keys.Data volumes You can add one or more secondary data volumes to be included when you provision the instance. To add volumes, click Create in the Data volumes section of the page.
For more information about provisioning the volume, see Create and attach a Block Storage volume when you create an instance.Networking Select your pre-existing VPC -
Click Create virtual server instance when you are ready to provision.