Professional Documents
Culture Documents
Elastic Cloud Server User Guide
Elastic Cloud Server User Guide
User Guide
Issue 01
Date 2016-02-05
Elastic Cloud Server
User Guide Contents
Contents
1 Overview......................................................................................................................................... 1
1.1 What Is an Elastic Cloud Server? ................................................................................................................................. 1
1.2 What Functions Does ECS Provide? ............................................................................................................................ 1
1.3 ECS Restrictions ........................................................................................................................................................... 2
1.4 ECS Relationships with Other Services ........................................................................................................................ 3
2 Getting Started............................................................................................................................... 5
2.1 (Optional) Creating or Importing an SSH Key ............................................................................................................. 5
2.2 Creating ECSs ............................................................................................................................................................... 6
2.3 EVS Disk Initialization (Windows) .............................................................................................................................. 9
2.4 EVS Disk Initialization (Linux) .................................................................................................................................. 13
Issue 01 (2016-02-05) ii
Elastic Cloud Server
User Guide Contents
1 Overview
Issue 01 (2016-02-05) 1
Elastic Cloud Server
User Guide 1 Overview
Key Terms
Table 1-1 lists key terms related to the ECS service.
Issue 01 (2016-02-05) 2
Elastic Cloud Server
User Guide 1 Overview
Issue 01 (2016-02-05) 3
Elastic Cloud Server
User Guide 1 Overview
Issue 01 (2016-02-05) 4
Elastic Cloud Server
User Guide 2 Getting Started
2 Getting Started
Issue 01 (2016-02-05) 5
Elastic Cloud Server
User Guide 2 Getting Started
The private key is one of the most important methods to protect your ECSs during the remote
login. To ensure ECS security, the private key can be downloaded only once. Therefore, keep
it secure.
The private key is one of the most important methods to protect your ECSs during the remote
login. To ensure ECS security, the private key can be downloaded only once. Therefore, keep
it secure.
Issue 01 (2016-02-05) 6
Elastic Cloud Server
User Guide 2 Getting Started
This function is used to inject script files or other files when you create an ECS. This
function is optional. After the file injection function is configured, the system
automatically injects files into a specified directory when creating an ECS.
The system supports only plain-text files with the size less than or equal to 1 KB.
When creating a Linux ECS, enter a directory that injected files are to be saved, for
example, /etc/foo.txt. When creating a Windows ECS, enter the file name that contains
only letters and digits, for example, foo, because injected files are automatically saved in
the root directory of drive C.
4. Login authentication mode
Open Telekom Cloud provides two login authentication modes for ECSs. Select either of
them when creating an ECS.
− Certificate
In this mode, the Secure Shell (SSH) key certificate is used for authenticating users
who attempt to log in to ECSs. If you select this mode, create or import a key on the
SSH key page. The Linux OS supports only the certificate authentication mode, and
the Windows OS supports only the username and password authentication mode.
− Username and password
In this mode, the initial password of user root (Linux ECSs) or user Administrator
(Windows ECSs) is used for authentication. You can log in to an ECS using the
username and its initial password.
5. Network
ECSs use networks, including subnets and security groups, provided by a VPC. If you do
not have a VPC configured when creating an ECS for the first time, the system creates
the default VPC, security group, and subnet for you.
Create an ECS
The following describes how to create an ECS.
1. Log in to the management console.
2. Choose Elastic Cloud Server under Compute.
The Elastic Cloud Server (ECS) page is displayed.
3. Click Create ECS.
4. Set basic information, network information, login mode, and the number of the ECSs to
be obtained. Table 2-1 describes the parameters.
Issue 01 (2016-02-05) 7
Elastic Cloud Server
User Guide 2 Getting Started
Issue 01 (2016-02-05) 8
Elastic Cloud Server
User Guide 2 Getting Started
Prerequisites
You have logged in to an ECS.
EVS disks have been attached to the ECS, and the EVS disks or expanded capacity is not
initialized.
Issue 01 (2016-02-05) 9
Elastic Cloud Server
User Guide 2 Getting Started
Procedure
1. Choose Start > Computer > Manage.
The Server Manager page is displayed.
2. In navigation on the left, choose Storage > Disk Management.
The EVS disk list is displayed in the right pane. Disks in the Unallocated status shown
in Figure 2-1 must be initialized.
3. Select a disk in the Unallocated status. Right-click the disk and choose Online on the
page shown in Figure 2-2.
Issue 01 (2016-02-05) 10
Elastic Cloud Server
User Guide 2 Getting Started
4. Right-click the unallocated area on the disk and choose Initialize Disk on the page
shown in Figure 2-3.
Issue 01 (2016-02-05) 11
Elastic Cloud Server
User Guide 2 Getting Started
5. Select the EVS disk to be initialized and select a partitioning mode for the disk.
6. Click OK.
7. Right-click the unallocated area on the disk and choose New Simple Volume on the
page shown in Figure 2-4.
Issue 01 (2016-02-05) 12
Elastic Cloud Server
User Guide 2 Getting Started
Issue 01 (2016-02-05) 13
Elastic Cloud Server
User Guide 2 Getting Started
The method for initializing disks varies depending on the OS that the ECS is running. This
section uses Ubuntu 14.04 64-bit OS as an example to describe how to initialize an EVS disk.
For disk initialization on ECSs running other OSs, see corresponding OS product
documentation.
Prerequisites
You have logged in to an ECS.
EVS disks have been attached to the ECS, and the EVS disks or expanded capacity is not
initialized.
Issue 01 (2016-02-05) 14
Elastic Cloud Server
User Guide 2 Getting Started
6. Press Enter.
The default start cylinder number is used as an example.
Information similar to the following is displayed:
...
Using default value 2048
Last sector, +sectors or +size{k,M,G} (2048-209715199, default 209715199):
7. Press Enter.
The default end cylinder number is used as an example.
Information similar to the following is displayed:
....
Using default value 209715199
Perform steps 11 and 12 for initializing EVS disks with capacity expansion.
11. Run the following commands to check and adjust the xvd1 file system size:
sde is used as an example.
e2fsck -f /dev/sde
resize2fs /dev/sde
Issue 01 (2016-02-05) 15
Elastic Cloud Server
User Guide 2 Getting Started
12. Run the following command to check the partition ID and size:
sde is used as an example.
fdisk -l
If the size of dev/sde changes to 100 GB, the disk is successfully initialized.
13. Run the following commands to attach the new partition to the /mnt/sdc directory:
/mnt/sdc is used as an example.
mkdir /mnt/sdc
mount /dev/sde /mnt/sdc
14. Run the following command to view the attachment result:
df -TH
Information similar to the following is displayed:
File System Type Size Used Avail Use% Mountedon
/dev/xvda1 ext3 8.4G 2.5G 5.5G 32% /
tmpfs tmpfs 1.1G 0 1.1G 0% /dev/shm
/dev/sde ext4 99G 60M 94G 1% /mnt/sdc
Issue 01 (2016-02-05) 16
Elastic Cloud Server
User Guide 3 Operation Guide
3 Operation Guide
Issue 01 (2016-02-05) 17
Elastic Cloud Server
User Guide 3 Operation Guide
Issue 01 (2016-02-05) 18
Elastic Cloud Server
User Guide 3 Operation Guide
4. Locate the row that contains the ECS, and click Remote Login in the Operation
column.
5. Confirm the displayed browser security information.
6. Enter the password you set during ECS creation.
Issue 01 (2016-02-05) 19
Elastic Cloud Server
User Guide 3 Operation Guide
1. On the Linux command line interface (CLI), run the following command to change the
permission:
chmod 600 /path/kp-123
path in the preceding command is the path where the key file is saved.
2. Run the following command to log in to the ECS:
ssh -i /path/kp-123 root@Elastic IP address
path in the preceding command is the path where the key file is saved.
Elastic IP address in the preceding command is the elastic IP address bound to the ECS.
Procedure
This section describes how to remotely log in to the ECS from a local PC.
1. Click Start.
2. Enter mstsc in the Search programs and files box.
3. Log in to the ECS as prompted.
Issue 01 (2016-02-05) 20
Elastic Cloud Server
User Guide 3 Operation Guide
4. Select the ECS and click Start, Stop, Restart, or Delete in the upper left corner of the
ECS list. Table 3-1 describes the ECS statuses.
Creating Intermediate state An ECS is in this state after the ECS instance is
created and before the ECS enters the running
state.
If the ECS keeps in this state for a long period of
time, exceptions occur. Contact the administrator
to handle the exceptions.
Starting Intermediate state An ECS is in this state when the ECS instance is
in an intermediate state between Stopped and
Running.
If the ECS keeps in this state for a long period of
time, exceptions occur. Contact the administrator
to handle the exceptions.
Running Stable state An ECS is in this state when the ECS is properly
running.
An ECS in this state can provide services for you.
Stopping Intermediate state An ECS is in this state when the ECS instance is
in an intermediate state between Running and
Issue 01 (2016-02-05) 21
Elastic Cloud Server
User Guide 3 Operation Guide
Issue 01 (2016-02-05) 22
Elastic Cloud Server
User Guide 3 Operation Guide
7. Click OK.
8. On the Modify ECS Specification page, confirm the modified CPU and memory
specifications, select I have read and agreed to the agreement, and click Submit.
Issue 01 (2016-02-05) 23
Elastic Cloud Server
User Guide 3 Operation Guide
Add a NIC
If more NICs are required for your ECSs, perform the following steps to add a NIC to the
ECS:
1. Log in to the management console.
6. Select the security group and subnet to be added on the page shown in Figure 3-8.
Issue 01 (2016-02-05) 24
Elastic Cloud Server
User Guide 3 Operation Guide
7. Click OK.
Follow-up tasks
Some OSs cannot identify newly added NICs. In this case, manually activate the NIC. The
Ubuntu OS is used as an example to describe how to activate the NIC.
1. Locate the row that contains the ECS, and click Remote Login in the Operation
column.
Log in to the ECS.
2. Run the following command to check the NIC name:
ifconfig -a
For example, the NIC name is eth2.
3. Run the following command to switch to the corresponding directory:
cd /etc/network
4. Run the following command to open the interfaces file:
vi interfaces
5. Add the following information to the interfaces file:
auto eth2
iface eth2 inet dhcp
6. Run the following command to save and exit the interfaces file:
:wq
7. Run the ifup ethX or /etc/init.d/networking restart command to make the newly added
NIC take effect.
X in the preceding command indicates the NIC name and SN, for example, ifup eth2.
Delete a NIC
An ECS can have up to 12 NICs, including one primary NIC that cannot be deleted. You can
perform the following steps to delete a NIC other than the primary one:
1. Log in to the management console.
Issue 01 (2016-02-05) 25
Elastic Cloud Server
User Guide 3 Operation Guide
3. Click in the front of the row that contains the ECS in the ECS list.
4. Locate the row that contains the ID of NIC to be deleted, and click Delete in the
Operation column.
5. Click OK in the displayed dialog box.
3. Click in the front of the row that contains the ECS in the ECS list.
4. Locate the row that contains the ID of the NIC for which the security group is to be
changed, and click Change Security Group in the Operation column.
5. Select the required security group in the displayed Change Security Group dialog box
and click OK.
3. Click in the front of the row that contains the ECS in the ECS list.
4. Locate the row that contains the ID of the NIC to which a floating private IP address is to
be bound, and click Manage Private IP in the Operation column.
5. Select Bind floating private IP address in the displayed Manage Private IP dialog
box.
6. Set Subnet and IP Address and click OK.
Adjust Bandwidth
If an elastic IP address has been bound to an ECS, the ECS can access the public network
using specified bandwidth. To adjust the ECS bandwidth, perform the following steps:
1. Log in to the management console.
3. Click in the front of the row that contains the ECS in the ECS list.
4. In the displayed ECS details area, click the Virtual Private Cloud (VPC) name link.
The VPC management page is displayed.
Issue 01 (2016-02-05) 26
Elastic Cloud Server
User Guide 3 Operation Guide
5. Click Bandwidth.
The bandwidth management page is displayed.
6. Check the bandwidth for the elastic IP address bound to the ECS.
7. Locate the row that contains the bandwidth to be modified and click Modify in the
Operation column.
The page for modifying the bandwidth is displayed.
8. Modify the bandwidth as prompted on the page shown in Figure 3-9.
Issue 01 (2016-02-05) 27
Elastic Cloud Server
User Guide 3 Operation Guide
4. Locate the row that contains the ECS, click More in the Operation column, and select
Make Image.
Before making an image, ensure that the ECS has been stopped. If the ECS is not
stopped, stop it first.
5. Enter information including the image name and description.
6. Click Create Now.
7. Complete the image making as prompted.
Issue 01 (2016-02-05) 28
Elastic Cloud Server
User Guide 4 Frequently Asked Questions
2. Click in the front of the row that contains the target ECS.
3. In the lower left corner of the details area, click View Monitoring Data.
Issue 01 (2016-02-05) 29
Elastic Cloud Server
User Guide 4 Frequently Asked Questions
Issue 01 (2016-02-05) 30
Elastic Cloud Server
User Guide 4 Frequently Asked Questions
Issue 01 (2016-02-05) 31
Elastic Cloud Server
User Guide 4 Frequently Asked Questions
Issue 01 (2016-02-05) 32
Elastic Cloud Server
User Guide 4 Frequently Asked Questions
4.4 OS FAQs
4.4.1 Can I Install or Upgrade OSs by Myself?
ECSs must use OSs provided by Open Telekom Cloud or OSs made based on OSs provided
by Open Telekom Cloud. You are not allowed to add or upgrade an OS. OSs can be patched.
Issue 01 (2016-02-05) 33
Elastic Cloud Server
User Guide 4 Frequently Asked Questions
Issue 01 (2016-02-05) 34