Leasing a custom-configured server
You can configure your server yourself. Proceed as follows:
Getting started
Sign up for Yandex Cloud and create a billing account:
- Navigate to the management console
and log in to Yandex Cloud or create a new account. - On the Yandex Cloud Billing
page, make sure you have a billing account linked and it has theACTIVEorTRIAL_ACTIVEstatus. If you do not have a billing account, create one and link a cloud to it.
If you have an active billing account, you can navigate to the cloud page
Learn more about clouds and folders here.
Lease a server
-
In the management console
, select the folder where you want to lease a server. -
Go to BareMetal.
-
Click Lease server and, in the window that opens, select
Custom configuration. In the window that opens, set up the server configuration:-
Under CPU, select the CPU that suits you best.
Filter by manufacturer, number of cores, and clock frequency as needed.
-
Under RAM, specify the type and amount of RAM available on the server.
-
Under Disks, add to the server a disk group of the form factor you choose:
- In the Type field, select disk type.
- In the Size field that appears, select disk size.
- In the Number field that appears, select the number of disks in the group.
There must be at least one group consisting of at least two disks on the server.
You can add more disk groups of other form factors. Do it by clicking
Add. -
Under Network, select the server's network card connection speed for public and private networks, and whether MC-LAG aggregation groups must be provided on the server.
-
Select the server pool the server will be in under Pool.
-
Under Enable, specify whether redundant power supply is required.
-
Click Continue.
-
-
In the window that opens, set the server up as follows:
-
Under Configuration and Lease conditions, make sure the server configuration you have provided so far is adequate.
If not, click
under Configuration to return to configuration setup. -
In the Lease duration field, select the lease period:
1 dayor1 year.When this period expires, server lease will automatically be renewed for the same period. You cannot terminate the lease during the specified lease period, but you can refuse to extend the server lease further.
-
Under Image, select:
-
Marketplace: To install one of the available Yandex Cloud Marketplace public OS images on the server. -
No OS: To lease a server without an operating system.You can install the OS from a custom ISO image later.
-
-
Under Disk, configure disk partitioning:
-
Click Configure disk layout.
-
Specify partition settings. To create a new partition, click
Add partition.To configure RAID arrays and disk partitions by yourself, click
Add to RAID. -
Click Save.
-
-
Under Private network, select a private subnet in the availability zone where you are leasing the server.
If the server’s availability zone does not have a private subnet yet, or you want to create a new private subnet, click Create and, in the window that opens, specify subnet settings as described in Creating a private subnet.
-
Under Public network:
-
In the Public address field, select a public IP address assignment method:
From ephemeral subnet: Assign a random IP address. If you need to get the IP address when creating a server via a request to a DHCP server, enable Assign via DHCP.
-
From a dedicated subnet: To assign an IP address from the range of addresses of a dedicated public subnet.In the field that opens, select a public subnet or click Order to order a new one.
Warning
The dedicated public subnet does not have a DHCP server; therefore, on the network interface of the server connected to such subnet, you should manually configure a static IP address from the subnet’s range of available public IP addresses and specify the default gateway address.
No address: Do not assign a public IP address.
-
In the Bandwidth field, select a server bandwidth package. Available bandwidth packages:
10 TB per day, connection capacity, 1 Gbit/s100 TB per day, connection capacity, 10 Gbit/s
Note
You can select a bandwidth package only for configurations with a public IP address and network cards of 10 Gbps or higher.
You can reduce the connection capacity to 10 TB per day only as early as 24 hours after the server lease starts.
-
-
If you are installing an OS from a Marketplace public image, specify server access settings under Access:
-
In the Password field, select one of the following options to create a root password:
-
To generate a new root password, select
New passwordand click Generate.Warning
This option requires you to maintain password security. Save the password you generated in a secure location. Yandex Cloud does not store it, and you will not be able to retrieve it once the server is deployed.
-
To use the root password saved in a Yandex Lockbox secret, select
Lockbox secret.In the Name, Version, and Key fields, select the secret containing your password, its version, and its key, respectively.
If you do not have a Yandex Lockbox secret, click Create to create it.
Choose the
Customsecret type to specify a custom password orGeneratedto generate password automatically.
-
-
In the Public SSH key field, select the SSH key saved in your organization user profile.
If there are no SSH keys in your profile or you want to add a new key:
-
Click Add key.
-
Enter a name for the SSH key.
-
Select one of the following:
-
Enter manually: Paste the contents of the public SSH key. You need to create an SSH key pair on your own. -
Load from file: Upload the public part of the SSH key. You need to create an SSH key pair on your own. -
Generate key: Automatically create an SSH key pair.When adding a new SSH key, an archive containing the key pair will be created and downloaded. In Linux or macOS-based operating systems, unpack the archive to the
/home/<user_name>/.sshdirectory. In Windows, unpack the archive to theC:\Users\<user_name>/.sshdirectory. You do not need additionally enter the public key in the management console.
-
-
Click Add.
The system will add the SSH key to your organization user profile. If the organization has disabled the ability for users to add SSH keys to their profiles, the added public SSH key will only be saved in the user profile inside the newly created resource.
-
-
-
Optionally, enable server backup in Yandex Cloud Backup:
- Enable Backup.
- Select an existing backup policy or create a new one.
- Select a service account with the
baremetal.editorandbackup.editorroles assigned or create a new one.
For more information, see Leasing a Yandex BareMetal server connected to Cloud Backup.
-
Under Server information:
-
Specify the server name in the Name field. Follow these naming requirements:
- It must be from 2 to 63 characters long.
- It can only contain lowercase Latin letters, numbers, and hyphens.
- It must start with a letter and cannot end with a hyphen.
-
Optionally, add a server description in the Description field.
-
Optionally, set labels in the Labels field.
-
-
Click Lease server.
-
As a result, the server status will change to PROVISIONING. Yandex BareMetal will need up to five calendar days to create the configuration you requested and start the server, after which its status will change to RUNNING.