VK Cloud logo

Cloud Servers: create your first virtual machine

Cloud Servers is a service that allows you to work with virtual machines. Virtual machines are used for deploying and running applications, databases, workstations, and any other services that operate continuously.

Start working with the Cloud Servers service in any convenient way:

  • Follow the instructions and create your first Linux-based virtual machine from the Ubuntu 22.04 image and connect to it.
  • Watch the video, in which a virtual machine is created, disks are selected, and backup and monitoring are configured.
  • Take the free training course. The theoretical part of the course explains what a virtual machine is and what types of VMs and disks there are. In the practical part of the course, you will create a virtual machine, reproduce a malfunction on it, and then resolve this malfunction by restoring the VM from a backup.

Create a Linux-based VM

After completing all the steps in this instruction, you will create a new virtual machine from the Ubuntu 22.04 image and connect to it via the SSH protocol.

  1. Go to your VK Cloud management console.

  2. Go to the Cloud Computing → Virtual Machines section.

  3. Click the Create instance or Add button.

  4. Expand the Configuration block and specify the VM configuration:

    1. In the Operating system field, select Ubuntu 22.04.
    2. Leave the remaining parameter values at their defaults.
  5. Expand the Network and firewall settings block and specify the network parameters:

    1. In the Network field, select External network (internet).

      In the external network, the virtual machine will automatically be assigned an external IP address.

    2. In the Virtual machine key field, select Create new key.

    3. Click the Add security group button and select the additional ssh security group.

  6. Click the Create button. The .pem key file will be automatically downloaded to your computer.

  7. Wait for the virtual machine creation process to complete. The new VM will appear in the list in the Virtual Machines section.

  8. Wait 10–15 minutes after the VM is successfully created. During this time, the already created VM is being prepared for operation: the operating system is being deployed on its disk, and system tools applying the selected settings to the VM are running.

  9. Connect to the VM via the SSH protocol:

    1. Find the downloaded .pem key file and copy the path to it.

    2. Make the key accessible only to the current user:

      chmod 400 <KEY_PATH>
    3. Run the command in the terminal:

      ssh -i <KEY_PATH> ubuntu@<IP_ADDRESS>

      Here:

      • <KEY_PATH> — path to the .pem key file.
      • <IP_ADDRESS> — the external IP address of the VM. It can be found in the management console of VK Cloud in the Cloud Computing → Virtual Machines section.

      For example:

      ssh -i ubuntu-key.pem ubuntu@213.219.212.130

      If this is the first connection, a confirmation request 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)?

      Type yes in the command prompt and press ENTER.

Video instruction

In this video, a virtual machine is created, disks are selected, and backup and monitoring are configured through the VK Cloud management console.

Training course

Take the free training course. The theoretical part of the course explains what a virtual machine is and what types of VMs and disks there are. In the practical part of the course, you will create a virtual machine, reproduce a malfunction on it, and then resolve this malfunction by restoring the VM from a backup.

FAQ

Was this article helpful?