Create a cloud server
Control Panel
OpenStack CLI
Terraform
-
In the Control panel, on the top menu, click Products and select Cloud Servers.
-
Click Create server.
-
Fill in the blocks:
-
Check the cloud server price. For more details, see the Cloud server payment model and pricing instruction.
-
Click Create.
Name and placement
-
Enter the server name. It will be set as the hostname in the operating system.
-
Select the location in which the server will be created. The available server configurations and resource cost depend on the location. You cannot change the location after creating the server.
Source
You can create a server from a pre-built image with a pre-installed and configured operating system, an application, own image, network volume, or snapshot.
Pre-built image
Application
Network volume
Own image
Snapshot
-
Open the OS tab.
-
Select an image. Pre-built images are available in all pool segments.
-
If you are creating a GPU server, turn on the Auto-select GPU image toggle switch so that an optimized OS image is automatically selected when you choose a configuration.
-
Optional: if you need a different current or archived OS version, select the required version in the Version field. OS versions marked as GPU optimized contain drivers necessary for working with graphic processors.
Configuration
For all lines except Shared and Dedicated, two types of server configurations are available:
- fixed configurations — configurations of lines with different technical specifications, in which the resource ratio is fixed;
- custom configurations — configurations in which any resource ratio can be specified.
Configurations use different processors depending on the line and pool segment. You can configure the selected configuration. After creating the server, you will be able to change the configuration.
Fixed configuration
Custom configuration
-
Open the tab with the line.
-
Click Fixed.
-
Optional: you can configure the setup if you are creating a server in a multi-zonal pool segment ru-6 or pool segments ru-3b, ru-7a, and ru-7b:
3.1. Expand the block with the configuration settings description.
3.2. Optional: select the processor manufacturer. Manufacturer selection is not available in all pools.
3.3. Optional: if you do not want physical processor cores to be pinned to the cloud server vCPUs, uncheck the Dedicated cores checkbox. For more details, see the Dedicated cores instruction.
3.4. Optional: if you want to turn off Hyper-Threading for a server with dedicated cores, uncheck the Hyper-Threading (SMT) checkbox.
3.5. Optional: if you are creating a server with dedicated cores and want to host a multiprocessor server on a single NUMA node, check the Mandatory hosting on a single NUMA node checkbox. A server with 4 vCPUs or more can be hosted on a single NUMA node. If cloud server resources cannot be placed on one node, the server will not be created. For more information, see the Placing on a single NUMA node section of the Dedicated cores instruction.
-
Select a configuration.
-
If both local and network volumes are available in the selected configuration, select the volume to be used as the boot volume:
- local disk — check the Local SSD NVMe disk checkbox. A server with a local disk can only be created from images and applications;
- network volume — do not check the Local SSD NVMe disk checkbox.
The amount of RAM allocated to the server may be less than the amount specified in the configuration — the operating system kernel reserves some RAM depending on the kernel version and distribution. The allocated volume on the server can be checked using the
sudo dmesg | grep Memorycommand.
Volumes
-
If you did not check the Local SSD NVMe disk checkbox when setting up the configuration, the first specified network volume will be used as the server boot volume. To configure it:
1.1. Select the type of network boot volume.
1.2. Specify the size of the network boot volume in GB or TB. Observe the limits for network volumes for the maximum size.
1.3. If you selected the Universal v2 or Fast SSD v2 volume type, specify the total number of read and write operations in IOPS. After creating the volume, you can change the number of IOPS — decrease or increase it. The number of IOPS changes is unlimited.
-
Optional: to add additional network volumes to the server:
2.1. Click Add.
2.2. Select the type of network volume.
2.3. Specify the network volume size in GB or TB. Observe the limits for network volumes for the maximum size.
2.4. If you selected the Universal v2 or Fast SSD v2 volume type, specify the total number of read and write operations in IOPS. After creating the volume, you can change the number of IOPS — decrease or increase it. The number of IOPS changes is unlimited.
After creating the server, you will be able to detach additional volumes from it or attach new ones.
Network
The server can be added to a new subnet or an existing one. A subnet can be:
- private — a subnet without access from the internet or with one static public IP address. The IP address connects to the server that will be accessible from the internet;
- public — a subnet where all addresses are accessible from the internet.
Private subnet
Public subnet
-
Click Private subnet.
-
In the Public IP address for internet access field, select the subnet type:
- New public IP address — a private subnet with a static public IP address. Only the server to which the public IP address is connected will be accessible from the internet;
- Without a public IP address — a private subnet without access from the internet. You will not be able to connect to the server from the internet, including via SSH or RDP.
-
To add a server to an existing private subnet:
3.1. Expand the block with the private subnet settings.
3.2. In the Subnet field, select an existing subnet.
3.3. In the Private IP field, specify the server private IP address. For a private subnet with a public IP address, the public address will be automatically connected to the private address;
-
To add a server to a new private subnet of an existing network:
4.1. Expand the block with the private subnet settings.
4.2. In the Subnet field, select New subnet.
4.3. Optional: change the subnet CIDR.
4.4. Optional: turn on the DHCP toggle switch.
4.5. Optional: in the Gateway field, change the default gateway IP address.
4.6. In the Network field, select an existing network where the subnet will be created, or New network. For a private subnet with a public IP address, a router
router-<network_name>will be created automatically, where<network_name>is the network name.4.7. If you selected New network, enter the network name.
-
To add a server to a new network and a new private subnet:
5.1. Expand the block with the private subnet settings.
5.2. Optional: change the subnet CIDR.
5.3. Optional: turn on the DHCP toggle switch.
5.4. Optional: in the Gateway field, change the default gateway IP address.
5.5. In the Network field, select New network to create a new network and private subnet.
5.6 Enter the network name. For a private subnet with a public IP address, a router
router-<network_name>will be created automatically, where<network_name>is the network name.
Security
Select security groups to filter traffic on server ports. Without security groups, traffic will be denied. If the block is missing, traffic filtering (port security) is disabled in the server network. With filtering disabled, all traffic will be allowed.
Access
-
Place an SSH key for the project on the server for secure connection:
1.1. If the SSH key for the project is not added to the cloud platform, click Add SSH key, enter the key name, paste the public key in OpenSSH format, and click Add.
1.2. If the SSH key for the project is added to the cloud platform, select an existing key in the SSH key field. The SSH key is only available in the pool where it is located.
-
Optional: in the Password for “root” field:
2.1. Copy the password for the
rootuser — the user with unrestricted rights for all system actions.2.2. Save the password in a secure place and do not share it in plain text.
Optional: additional settings
-
To create a preemptible server, check the Preemptible server checkbox.
-
If you plan to create several servers and want to increase infrastructure reliability, add the server to a placement group:
2.1. To create a new group, in the Placement group field, select New group, enter the group name, and select the placement policy on different hosts:
- soft — soft-anti-affinity. The system will try to place servers on different hosts. If there is no suitable host available when creating the server, it will be created on the same host;
- strict — anti-affinity. Servers in the group must be located on different hosts. If there is no suitable host available when creating the server, the server will not be created.
2.4. If the group is created, in the Placement group field, select the placement group.
-
To add additional information or filter servers in the list, add server tags. Operating system and configuration tags are added automatically. To add a new tag, enter the tag in the Tags field.
-
To add a script that will be executed using the cloud-init agent at the first operating system startup, in the Automation block in the User data field:
- open the Text tab and insert the script text;
- or open the File tab and upload the file with the script.
Script examples and supported formats can be found in the User data instruction.