Quick start
Quick start will help you get started with the Bare Metal service and explore its capabilities. Service setup will be demonstrated using a Bare Metal server with Linux OS installation and SSH connection as an example.
After completing all the quick start steps, you will:
- Create a network.
- Rent a Bare Metal server.
- Create a separate intermediate host in the form of a Linux virtual machine with an external IP address.
- Install the Linux OS on the Bare Metal server.
- Connect to the Bare Metal server via SSH through the previously created intermediate host.
-
Register on the VK Cloud platform.
-
Make sure your account balance is sufficient for:
-
Renting the desired Bare Metal server configuration.
-
Paying for a virtual machine with Linux in a configuration with 1 vCPU, 1 GB RAM, 1 HDD disk of 10 GB, and a public Sprut IP address.
Prices for the specified resources are available in the price list.
-
-
Check whether there are enough quotas for:
- renting one Bare Metal server;
- creating a virtual machine with the minimum configuration: 1 vCPU, 1 GB RAM, 1 disk;
- adding one Sprut Floating IP address.
-
Go to the VK Cloud management console.
-
Go to the Virtual networks → Networks section.
-
Click the Create button.
-
Set the network parameters:
- Network name: enter the value
my-net. - Internet access: enable the option.
- Router: select the
Create newoption.
Leave the remaining parameters at their default values.
- Network name: enter the value
-
Click the Add network button.
-
Go to the VK Cloud management console.
-
Go to the Cloud computing → Bare Metal section.
-
Click the Rent button.
-
Set the order parameters:
- Configuration: select the desired server configuration.
- Number of servers: specify the value
1. - Operating system: select
No OS. - Private subnet: select the
my-netnetwork and the subnet created by default.
-
Click the Rent button.
After the order is completed, a server with the
Pendingstatus will appear in the list. -
Wait until the server status in the list changes to
Active.
-
Generate an SSH key for the intermediate host:
Linux/macOSWindows 10/11Run the command in the terminal:
ssh-keygen -t rsa -b 2048 -f ~/.ssh/my_key -N ""Two files,
my_keyandmy_key.pub, will be created in the~/.ssh/directory. -
Go to the VK Cloud management console.
-
Go to the Cloud computing → Virtual machines section.
-
Click the Create instance or Add button.
-
Set the VM parameters:
- Virtual machine name: enter
my-jump-host. - Virtual machine type: select
STD2-1-1, the minimum configuration. - Disk type: select
HDD. High storage performance is not required for the intermediate host. - Operating system: select
Ubuntu 24.04.
Leave the remaining parameters at their default values.
- Virtual machine name: enter
-
Click the Next step button.
-
Configure the VM connection to the network:
-
Network: select the
my-netnetwork and the subnet created by default. -
Virtual machine key: select
Upload public SSH key.A key import form will open. Fill in the Key name field and copy your public key into the Public key field. You can obtain it by reading the
my_key.pubfile:Linux/macOSWindows 10/11Run the command in the terminal:
cat ~/.ssh/my_key.pub -
Firewall settings: add the
sshsecurity group. -
Assign external IP: enable the option.
-
External IP: select
Allocate new.
Leave the remaining parameters at their default values.
-
-
Click the Next step button.
-
Disable the backup setting; it is not needed for the intermediate host.
-
Click the Create instance button.
-
Wait for the VM creation to finish and verify that an SSH connection is possible. To do this, enter the command:
ssh <USERNAME>@<INTERMEDIATE_HOST_IP_ADDRESS>Here:
<USERNAME>— the default account name that is used in VK Cloud images.<INTERMEDIATE_HOST_IP_ADDRESS>— the external IP address of the intermediate host.
When connecting via SSH for the first time, a confirmation prompt will appear:
The authenticity of host 'XXX.XXX.XXX.XXX (XXX.XXX.XXX.XXX)' can't be established.ECDSA key fingerprint is SHA256:aYZIWs9N6KRtfFOuic6eoWcluhSp6+j************Are you sure you want to continue connecting (yes/no)?Enter
yesin the terminal and press ENTER. -
End the SSH session with the command:
quit
-
Go to the VK Cloud management console.
-
Go to the Cloud computing → Bare Metal section.
-
In the list of Bare Metal servers, click the name of the desired server.
-
On the server page, click
and select the Install operating system option.
-
Set the server parameters:
- Name: enter
my-bare-metal. - Operating system: select
Select OSand theUbuntu 24.04image.
- Name: enter
-
Click the Next step button.
-
For the Network parameter, select the
my-netnetwork and the subnet created by default. -
Click the Install button and confirm the action.
The OS installation will start, and the private key file
*.pemof your key pair will be downloaded automatically. Save it, as you will need it later to connect to the server via SSH.The public part of the key will be automatically added to the server.
-
Open a terminal and set the access permissions for the key file:
chmod 400 <KEY_FILE>Here
<KEY_FILE>is the path to the*.pemfile with the private key.Example for the key file
MyPrivateKey.pemlocated in the/path/to/file/directory:chmod 400 /path/to/file/MyPrivateKey.pem -
Connect to the Bare Metal server.
First, you need to connect to the intermediate host via its external IP address, and then to the Bare Metal server via its internal IP address. This can be done with a single command:
ssh -i <KEY_FILE> \-J <USERNAME>@<INTERMEDIATE_HOST_IP_ADDRESS> \<USERNAME>@<SERVER_INTERNAL_IP_ADDRESS>Here:
<KEY_FILE>— the path to the*.pemfile with the private key.<USERNAME>— the default account name that is used in VK Cloud images. For both the intermediate host and the Bare Metal server, you need to enter the username corresponding to the OS image used on them.<INTERMEDIATE_HOST_IP_ADDRESS>— the external IP address of the intermediate host.<SERVER_INTERNAL_IP_ADDRESS>— the internal IP address of your Bare Metal server.
When connecting via SSH for the first time, a confirmation prompt will appear:
The authenticity of host 'XXX.XXX.XXX.XXX (XXX.XXX.XXX.XXX)' can't be established.ECDSA key fingerprint is SHA256:aYZIWs9N6KRtfFOuic6eoWcluhSp6+j************Are you sure you want to continue connecting (yes/no)?Enter
yesin the terminal and press ENTER.
The created resources are billed and consume computing resources. If you no longer need them:
- Stop the intermediate host to use it later, or delete it permanently.
- Cancel the Bare Metal server rental.
- Delete the Floating IP address assigned to the intermediate host. Floating IP addresses present in the project are billed even if they are not bound to any service.