Image Management Service User Guide

Image Management Service
User Guide
Issue
01
Date
2016-02-05
Image Management Service
User Guide
Contents
Contents
1 Overview......................................................................................................................................... 1
1.1 What Is the Image Management Service? ..................................................................................................................... 1
1.2 What Functions Does IMS Provide? ............................................................................................................................. 1
1.3 OS Types Supported by IMS ........................................................................................................................................ 1
1.4 IMS Relationships with Other Services ........................................................................................................................ 2
2 Getting Started............................................................................................................................... 3
2.1 Creating a Windows Private Image Using an ECS ....................................................................................................... 3
2.2 Creating a Linux Private Image Using an ECS ............................................................................................................. 4
2.3 Configuring the Windows ECS ..................................................................................................................................... 5
2.4 Configuring the Linux ECS .......................................................................................................................................... 8
2.4.1 Configuring ECS NIC Attributes ............................................................................................................................... 8
2.4.2 Deleting Files in the Network Rule Directory ......................................................................................................... 10
2.4.3 Configuring ECS Password Attributes ..................................................................................................................... 10
2.4.4 Detaching EVS Data Disks from the ECS ............................................................................................................... 11
2.5 Registering an Image .................................................................................................................................................. 12
3 Operation Guide ......................................................................................................................... 13
3.1 Creating an ECS Using an Image ............................................................................................................................... 13
3.2 Image Management .................................................................................................................................................... 14
4 Frequently Asked Questions .................................................................................................... 15
4.1 What Is the Image Management Service? ................................................................................................................... 15
4.2 Can I Specify the System Disk Size When Using an Image to Create an ECS? ......................................................... 15
4.3 How Do I Select an OS? ............................................................................................................................................. 15
4.4 What OSs Does IMS Support for Public Images? ...................................................................................................... 16
4.5 How Many Private Images Can Be Created Using an Account? ................................................................................ 17
4.6 Can Hardware Specifications of the ECS Created Using a Private Image Be Different from Those of the ECS Used
for Generating an the Image? ............................................................................................................................................ 17
4.7 How Long Is Required for Creating a Private Image Using an ECS? ........................................................................ 17
4.8 Should I Stop the ECS Before Creating a Private Image Using the ECS? .................................................................. 17
Issue 01 (2016-02-05)
ii
Image Management Service
User Guide
1 Overview
1
Overview
1.1 What Is the Image Management Service?
The Image Management Service (IMS) provides a mandatory Elastic Cloud Server (ECS)
template and software, including at least OS, application software (for example, database
software), and private software.
IMS provides easy-to-use self-service management functions for your convenience. You can
choose to use a public or private image to create an ECS. You can also create a private image
using an existing ECSor a private image.
Images are classified into public images and private images. The system provides public
images for you to create ECSs. You can create private images. After the images are created,
you can use the private image to create ECSs.
1.2 What Functions Does IMS Provide?
IMS provides a self-service function for controlling image content. A management platform
with high controllability and flexibility is delivered together with IMS. This platform can
flexibly and efficiently manage image content.
IMS allows you to:

Use public images with mainstream OSs.

Create ECSs using images.

Create private images using existing ECSs.

Create private images by registering image files.

Query image information.

Modify private image information.

Delete existing private images.
1.3 OS Types Supported by IMS
Table 1-1 lists OSs supported by IMS for public images:
Issue 01 (2016-02-05)
1
Image Management Service
User Guide
1 Overview
Table 1-1 OSs supported by IMS for public images
OS
Version
CentOS
7.1 64-bit
7.0 64-bit
SUSE Enterprise Linux Server
11 SP3 64-bit
OpenSUSE
11.3 64-bit
13.2 64-bit
Ubuntu Server
14.04.3 64-bit
14.04.1 64-bit
14.04 64-bit
Debian
8.2.0 64-bit
Fedora
22 64-bit
Oracle Linux Server release
6.1 64-bit
Windows Server 2012 R2
Datacenter 64-bit
Standard 64-bit
Essentials 64-bit
Windows Server 2008 R2
Datacenter 64-bit
Enterprise 64-bit
Standard 64-bit
1.4 IMS Relationships with Other Services
ECS
You can use an image to create an ECS, or convert an ECS to an image.
OBS
Private images created by users are stored in OBS buckets.
Issue 01 (2016-02-05)
2
Image Management Service
User Guide
2 Getting Started
2
Getting Started
2.1 Creating a Windows Private Image Using an ECS
Scenarios
A public image provided by Open Telekom Cloud is visible to all users and contains a
required OS and preinstalled public applications. You can select a public image and use it to
create an ECS.
A private image is created by a user for creating an ECS and is visible only to the creator. A
private image contains an OS, preinstalled public applications, and user's private applications.
A private image reduces the time required to repeatedly configure the ECS.
ECSs can be used to create private images. However, the method for creating private images
varies depending on the OSs of the ECS. The following sections use an ECS running the
Windows OS as an example to describe how to create a private image using an ECS.
Prerequisites
A Windows ECS is available.
Procedure
1.
Configure the ECS to be used to create the private image and ensure that the ECS obtains
the IP address from a DHCP server. For details, see 2.3 Configuring the Windows ECS.
2.
Log in to the management console.
3.
Click Image Management Service under Compute.
4.
On the Images page, click Create Private Image.
5.
On the image configuration page shown in Figure 2-1, enter required information, such
as Name and Source.
Issue 01 (2016-02-05)
3
Image Management Service
User Guide
2 Getting Started
Figure 2-1 Creating an image
6.
Click Create Now.
7.
Confirm image parameters as prompted.
8.
Read and agree to the ECS agreement and system image disclaimer and click Submit.
9.
Switch back to the Images page to view image status.
The time for creating an image is about 20 minutes and varies depending on the image
file size. After an image changes to the Normal state, the image is successfully created.
2.2 Creating a Linux Private Image Using an ECS
Scenarios
A public image provided by Open Telekom Cloud is visible to all users and contains a
required OS and preinstalled public applications. You can select a public image and use it to
create an ECS.
A private image is created by a user for creating an ECS and is visible only to the creator. A
private image contains an OS, preinstalled public applications, and user's private applications.
A private image reduces the time required to repeatedly configure the ECS.
ECSs can be used to create private images. However, the method for creating private images
varies depending on the OSs of the ECS. The following sections use an ECS running the
Linux OS as an example to describe how to create a private image using an ECS.
Prerequisites
A Linux ECS is available.
Procedure
1.
Configure the ECS to be used to create the private image and ensure that the ECS obtains
the IP address from a DHCP server. For details, see 2.4.1 Configuring ECS NIC
Attributes.
2.
Clear udev configuration rules. For details, see 2.4.2 Deleting Files in the Network Rule
Directory.
Issue 01 (2016-02-05)
4
Image Management Service
User Guide
2 Getting Started
3.
Configure the command used to initialize the password of a Linux ECS created using a
private image. For details, see 2.4.3 Configuring ECS Password Attributes.
4.
Detach all EVS data disks attached to the ECS used to create the private image. For
details, see 2.4.4 Detaching EVS Data Disks from the ECS.
5.
Log in to the management console.
6.
Click Image Management Service under Compute.
7.
On the Images page, click Create Private Image.
8.
On the image configuration page shown in Figure 2-2, enter required information, such
as Name and Source.
Figure 2-2 Creating an image
9.
Click Create Now.
10. Confirm image parameters as prompted.
11. Read and agree to the ECS agreement and system image disclaimer and click Submit.
12. Switch back to the Images page to view image status.
The time for creating an image is about 20 minutes and varies depending on the image
file size. After an image changes to the Normal state, the image is successfully created.
2.3 Configuring the Windows ECS
Scenarios
If the ECS to be used to create a Windows private image uses a static IP address, you must set
the IP address assignment mode of the ECS NIC to DHCP.
The following steps use the Windows Server 2008 OS as an example to describe how to
configure an ECS. For details about how to configure ECS running other OSs, see the
document for the specific OS.
Procedure
1.
Log in to the management console.
2.
Click Elastic Cloud Server under Compute.
Issue 01 (2016-02-05)
5
Image Management Service
User Guide
2 Getting Started
3.
Locate the row that contains the ECS to be used to create the private image, and click
Remote Login in the Operation column.
4.
Choose Getting Started > Control Panel.
5.
Click Network and Internet Connections.
6.
Click Network and Sharing Center. Figure 2-3 shows the page displayed after you
click Network and Sharing Center.
Figure 2-3 Network and Sharing Center
7.
Issue 01 (2016-02-05)
Select the connection configured with the static IP address. Figure 2-4 shows the
connection.
6
Image Management Service
User Guide
2 Getting Started
Figure 2-4 Local Area Connection 2 Status
8.
Click Properties and select the Internet protocol version you have configured.
9.
On the General tab, select Obtain an IP address automatically and Obtain DNS
server address automatically, and click OK. Figure 2-5 shows the dialog box for
configuring the IP address assignment mode.
The ECS will automatically obtain an IP address. You are advised to save the static IP
address information so that you can restore the settings later.
Issue 01 (2016-02-05)
7
Image Management Service
User Guide
2 Getting Started
Figure 2-5 Configuring the IP address assignment mode
2.4 Configuring the Linux ECS
2.4.1 Configuring ECS NIC Attributes
Scenarios
If the ECS to be used to create a Linux private image uses a static IP address, you must set the
IP address assignment mode of the ECS NIC to DHCP.
The following steps use the Ubuntu 12.04 OS as an example to describe how to configure an
ECS. For details about how to configure ECS running other OSs, see the document for the
specific OS.
Procedure
1.
Log in to the management console.
2.
Click Elastic Cloud Server under Compute.
3.
Locate the row that contains the ECS to be used to create the private image, and click
Remote Login in the Operation column.
4.
Run the following command to open the /etc/network/interfaces file shown in Figure
2-6 using the vi editor:
vi /etc/network/interfaces
Issue 01 (2016-02-05)
8
Image Management Service
User Guide
2 Getting Started
Figure 2-6 Configuration information of the interface file
5.
Press i to enter the editing mode.
6.
Delete the static IP address configuration and set the NIC IP address assignment mode to
DHCP. Figure 2-7 shows how to set the NIC IP address assignment mode to DHCP.
You can also press # to comment out the static IP address configuration.
Figure 2-7 Setting the IP address assignment mode of the NIC to DHCP
If the ECS has multiple NICs, configure all the other NICs to enable them to obtain IP
address in DHCP mode. For details, see the preceding steps. Figure 2-8 shows the setting
of other NICs.
Figure 2-8 Enabling multiple NICs to obtain an IP address in DHCP mode
7.
Press Esc, enter :wq, and press Enter.
The system saves the configuration and exits the vi editor.
Issue 01 (2016-02-05)
9
Image Management Service
User Guide
2 Getting Started
2.4.2 Deleting Files in the Network Rule Directory
Scenarios
This section describes how to delete network rule files when you use an ECS to create a Linux
private image.
Procedure
1.
Log in to the management console.
2.
Click Elastic Cloud Server under Compute.
3.
Locate the row that contains the ECS to be used to create the private image, and click
Remote Login in the Operation column.
4.
Run the following command to view the files in the network rule directory:
5.
ls –l /etc/udev/rules.d
Run the following command to delete the rule files whose names contain persistent and
net.
rm /etc/udev/rules.d/30-net_persistent-names.rules
rm /etc/udev/rules.d/70-persistent-net.rules
The italic contents in the command vary depending on the actual service environment.
After you delete the network rule files, do not restart the ECS. Otherwise, the deleted rule files will be
generated again.
2.4.3 Configuring ECS Password Attributes
Scenarios
To ensure that the password of the ECS created using the private image is configurable, you
are advised to configure a password initialization script on the ECS to be used to create the
private image.
Procedure
1.
Log in to the management console.
2.
Click Elastic Cloud Server under Compute.
3.
Locate the row that contains the ECS to be used to create the private image, and click
Remote Login in the Operation column.
4.
Run the following command to open the rc file using the vi editor:
5.
6.
Issue 01 (2016-02-05)
−
If the ECS runs the Ubuntu or SUSE Linux OS, run the following command:
−
vi /etc/init.d/rc
If the ECS runs the CentOS OS, run the following command:
vi /etc/rc.d/rc
Check whether the rc file contains the sh /etc/init.d/setpasswd.sh statement.
−
If no, go to the next step.
−
If yes, no further action is required.
Press i to enter the editing mode.
10
Image Management Service
User Guide
7.
8.
2 Getting Started
Add a required statement to the file based on the file content.
−
If exit 0 is displayed at the end of the file, enter sh /etc/init.d/setpasswd.sh to the
row just before exit 0.
−
If exit 0 is not displayed at the end of the file, add sh /etc/init.d/setpasswd.sh to the
end of the file.
Press Esc, enter :wq, and press Enter.
The system saves the configuration and exits the vi editor.
2.4.4 Detaching EVS Data Disks from the ECS
Scenarios
This section describes how to detach all data EVS data disks from the ECS.
Procedure
1.
Log in to the management console.
2.
Click Elastic Cloud Server under Compute.
3.
Locate the row that contains the ECS to be used to create the private image, and click
Remote Login in the Operation column.
4.
Run the following command to check the EVS disks that have been attached to the ECS:
mount
Information similar to the following is displayed:
/dev/xvde1 on /mnt/test type ext4 (rw)
5.
Run the following command to detach the EVS data disks that have been attached to the
ECS:
Before you perform the EVS disk detaching operation, ensure that no data read and write
operations are being performed on the EVS data disks. Otherwise, the detaching
operation will fail.
6.
umount /dev/xvde1
Run the following command to edit the fstab file:
7.
vi /etc/fstab
Delete the configuration information of the data EVS disk from the fstab file.
The /etc/fstab file contains information about the file systems and storage devices
automatically detached to the ECS when the ECS starts. The information needs to be
deleted. For example, the last row shown in Figure 2-9 is the EVS configuration
information contained in the fstab file.
Issue 01 (2016-02-05)
11
Image Management Service
User Guide
2 Getting Started
Figure 2-9 EVS configuration information contained in the fstab file
8.
Run the following command to check the data partitions attached to the ECS again:
If the command output does not contain information about the data EVS data disks, the
EVS data disks have been detached.
mount
2.5 Registering an Image
You can registering images of some OSs to OTC as private images. For details, see the Image
Registration User Guide.
Issue 01 (2016-02-05)
12
Image Management Service
User Guide
3 Operation Guide
3
Operation Guide
3.1 Creating an ECS Using an Image
Scenarios
You can use a private or public image to create an ECS.
The difference for creating an ECS using a private image and using a public image lies in the
following:

If you use a public image to create an ECS, the ECS contains only an OS. You are
required to install application software.

If you use a private image to create an ECS, the ECS contains both OS and application
software.
Prerequisites
None
Procedure
1.
Log in to the management console.
2.
Click Image Management Service under Compute.
3.
Click Public Image or Private Image to enter an image list.
4.
Locate the row that contains the image, and click Create ECS in the Operation column.
5.
Enter ECS configuration information, including name, network, and quantity.
6.
Click Create Now.
7.
After confirming order details, read and agree to the ECS service agreement and system
image disclaimer.
8.
Click Submit.
9.
Switch back to the ECS homepage and click Update in the upper right corner of the ECS
list to view ECS status.
To initialize data disks or perform other operations, see the Elastic Cloud Server User
Guide.
Issue 01 (2016-02-05)
13
Image Management Service
User Guide
3 Operation Guide
3.2 Image Management
Modify an Image
Only private images can be modified. Before modifying a private image, ensure that the
private image is in the Normal state.
You can modify the name and description about the private image.
You can use either of the following methods to make the modification:

Method 1:
In the image list on the Private Image page, locate the row that contains the image, and
click Modify in the Operation column.

Method 2:
In the image list on the Private Image page, locate the row that contains the image, click
on the left of the row, and click the modification icon highlighted in Figure 3-1.
Figure 3-1 Modify private image information.Modifying attributes of an image
Delete an Image
Only private images can be deleted. Before deleting a private image, ensure that the private
image is in the Normal state.
In the image list on the Private Image page, locate the row that contains the image, and click
Delete in the Operation column.
Issue 01 (2016-02-05)
14
Image Management Service
User Guide
4 Frequently Asked Questions
4
Frequently Asked Questions
4.1 What Is the Image Management Service?
The Image Management Service (IMS) provides a mandatory Elastic Cloud Server (ECS)
template and software, including at least OS, application software (for example, database
software), and private software.
IMS provides easy-to-use self-service management functions for your convenience. You can
choose to use a public or private image to create an ECS. You can also create a private image
using an existing ECSor a private image.
Images are classified into public images and private images. The system provides public
images for you to create ECSs. You can create private images. After the images are created,
you can use the private image to create ECSs.
4.2 Can I Specify the System Disk Size When Using an
Image to Create an ECS?
If you use an image to create an ECS, the ECS system disk size must be the same as that of
the source ECS used to create the image.
4.3 How Do I Select an OS?

For Windows OSs
Applies to development platforms or operating services on Windows OSs. The OS
contains the legal license file. You are required to pay for the license authorization.
The system disk size must be greater than or equal to 40 GB and memory size greater
than or equal to 1 GB.
The Internet information server (IIS) and structured query language (SQL) server can be
installed on ECSs.

For Linux OSs
Applies to development platforms or operating services on Linux OSs. CentOS
(recommended) and Ubuntu OSs are available.
Issue 01 (2016-02-05)
15
Image Management Service
User Guide
4 Frequently Asked Questions
The system disk size must be greater than or equal to 40 GB and memory size greater
than or equal to 512 MB.

Selecting an OS with greater than 4 GB memory
Select a 64-bit OS. This is because a 32-bit OS allows addressing within only 4 GB
memory range, and the OS fails to access other extra memory.
4.4 What OSs Does IMS Support for Public Images?
Table 4-1 lists OSs supported by IMS for public images.
Table 4-1 OSs supported by IMS for public images
OS
Version
CentOS
7.1 64bit
7.0 64bit
SUSE Enterprise Linux Server
11 SP3 64-bit
OpenSUSE
11.3 64-bit
13.2 64-bit
Ubuntu Server
14.04.3 64-bit
14.04.1 64-bit
14.04 64-bit
Debian
8.2.0 64-bit
Fedora
22 64-bit
Oracle Linux Server release
6.1 64-bit
Windows Server 2012 R2
Datacenter 64-bit
Standard 64-bit
Essentials 64-bit
Windows Server 2008 R2
Datacenter 64-bit
Enterprise 64bit
Standard 64-bit
Issue 01 (2016-02-05)
16
Image Management Service
User Guide
4 Frequently Asked Questions
4.5 How Many Private Images Can Be Created Using an
Account?
In this version, you can create a maximum of 10 private images using an account in one
region. If you want to create more private images, submit a work order to increase your
private image quota.
4.6 Can Hardware Specifications of the ECS Created Using
a Private Image Be Different from Those of the ECS Used
for Generating an the Image?
If you use a private image to create an ECS, the size of the EVS system disk for the new ECS
is the same as that of the source ECS used to create the image.
Specifications of the CPU, memory, bandwidth, and data disk specifications can be modified
based on requirements.
4.7 How Long Is Required for Creating a Private Image
Using an ECS?
It takes about 20 minutes to create a private image using an ECS.
4.8 Should I Stop the ECS Before Creating a Private Image
Using the ECS?
Yes, you must stop the ECS when creating a private image using an ECS. If the ECS is in the
running state, the ECS memory may buffer data to be read, which may result in data loss in
the created image. To prevent this issue, stop the ECS before creating an image.
Issue 01 (2016-02-05)
17