VK Cloud logo

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:

  1. Create a network.
  2. Rent a Bare Metal server.
  3. Create a separate intermediate host in the form of a Linux virtual machine with an external IP address.
  4. Install the Linux OS on the Bare Metal server.
  5. Connect to the Bare Metal server via SSH through the previously created intermediate host.

Preparatory steps

  1. Register on the VK Cloud platform.

  2. 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.

  3. 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.

1. Create a network

  1. Go to the VK Cloud management console.

  2. Go to the Virtual networks → Networks section.

  3. Click the Create button.

  4. Set the network parameters:

    • Network name: enter the value my-net.
    • Internet access: enable the option.
    • Router: select the Create new option.

    Leave the remaining parameters at their default values.

  5. Click the Add network button.

2. Order a server

  1. Go to the VK Cloud management console.

  2. Go to the Cloud computing → Bare Metal section.

  3. Click the Rent button.

  4. 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-net network and the subnet created by default.
  5. Click the Rent button.

    After the order is completed, a server with the Pending status will appear in the list.

  6. Wait until the server status in the list changes to Active.

3. Create an intermediate host

  1. Generate an SSH key for the intermediate host:

    Run the command in the terminal:

    ssh-keygen -t rsa -b 2048 -f ~/.ssh/my_key -N ""

    Two files, my_key and my_key.pub, will be created in the ~/.ssh/ directory.

  2. Go to the VK Cloud management console.

  3. Go to the Cloud computing → Virtual machines section.

  4. Click the Create instance or Add button.

  5. 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.

  6. Click the Next step button.

  7. Configure the VM connection to the network:

    • Network: select the my-net network 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.pub file:

      Run the command in the terminal:

      cat ~/.ssh/my_key.pub
    • Firewall settings: add the ssh security group.

    • Assign external IP: enable the option.

    • External IP: select Allocate new.

    Leave the remaining parameters at their default values.

  8. Click the Next step button.

  9. Disable the backup setting; it is not needed for the intermediate host.

  10. Click the Create instance button.

  11. 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 yes in the terminal and press ENTER.

  12. End the SSH session with the command:

    quit

4. Install the OS

  1. Go to the VK Cloud management console.

  2. Go to the Cloud computing → Bare Metal section.

  3. In the list of Bare Metal servers, click the name of the desired server.

  4. On the server page, click  and select the Install operating system option.

  5. Set the server parameters:

    • Name: enter my-bare-metal.
    • Operating system: select Select OS and the Ubuntu 24.04 image.
  6. Click the Next step button.

  7. For the Network parameter, select the my-net network and the subnet created by default.

  8. Click the Install button and confirm the action.

    The OS installation will start, and the private key file *.pem of 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.

5. Connect to the server

  1. Open a terminal and set the access permissions for the key file:

    chmod 400 <KEY_FILE>

    Here <KEY_FILE> is the path to the *.pem file with the private key.

    Example for the key file MyPrivateKey.pem located in the /path/to/file/ directory:

    chmod 400 /path/to/file/MyPrivateKey.pem
  2. 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 *.pem file 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 yes in the terminal and press ENTER.

Delete unused resources

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.
Was this article helpful?