VK Cloud logo
Updated at March 20, 2024   06:18 AM

Quick start

A quick start will help you get started with the service and get acquainted with its capabilities.

After completing all the quick start steps, you will:

  1. Set up Internet access.
  2. Organize the basic network connectivity of several virtual machines.
  3. Learn how to assign groups of firewall rules.

Step 1: Create a network and subnet

  1. Go to VK Cloud personal account.
  2. Select the project.
  3. Go to Virtual networksNetworks.
  4. Click the Create button.
  5. Specify a network name, for example, test-network.
  6. Internet access: included.
  7. Router: Create new.
  8. Click Add network.

Step 2: Create some virtual machines

Create a virtual machine with Internet access:

  1. Go to personal account VK Cloud.

  2. Go to Cloud ComputingVirtual Machines.

  3. Click the Add button.

  4. At the “Configuration” step:

    1. Name the virtual machine, for example test-vm1.
    2. Set other settings depending on your requirements or leave them unchanged.
  5. Press Next step.

  6. At the “Network settings” step:

    1. Networks: External network (ext-net).
    2. Leave the rest of the settings unchanged.
  7. Press Next step.

  8. At the “Backup settings” step, leave the settings unchanged.

  9. Click Create Instance.

The creation of the virtual machine may take some time, after which it will appear in the list.

Create a second virtual machine:

  1. Go to personal account VK Cloud.

  2. Go to Cloud ComputingVirtual Machines.

  3. Click the Add button.

  4. At the “Configuration” step:

    1. Give the virtual machine a name, for example test-vm2.
    2. Set other settings depending on your requirements or leave them unchanged.
  5. At the “Network settings” step:

    1. Networks: test-network.
    2. Virtual machine key: Create a new key.
    3. Firewall settings: default, ssh.
    4. Assign an external IP address: disable.
  6. Press Next step.

  7. At the “Backup settings” step, leave the settings unchanged.

  8. Click Create Instance.

A file with a virtual machine key will be downloaded to your computer.

Create a third virtual machine:

  1. Go to personal account VK Cloud.

  2. Go to Cloud ComputingVirtual Machines.

  3. Click the Add button.

  4. At the «Configuration» step:

    1. Name the virtual machine, for example test-vm3.
    2. Set other settings depending on your requirements or leave them unchanged.
  5. At the “Network settings” step:

    1. Networks: test-network.
    2. Virtual machine key: Create a new key.
    3. Firewall settings: default, ssh.
    4. Assign an external IP address: disable.
  6. Press Next step.

  7. At the “Backup settings” step, leave the settings unchanged.

  8. Click Create Instance.

Wait for the creation of the virtual machine to complete.

Step 3: Create a rule group

  1. Click Add.

  2. Specify a rule group name, for example, test-icmp.

  3. Click Create Group.

  4. In the Incoming traffic block, create rules for traffic management:

    1. Click Add Rule.
    2. Type: ICMP.
    3. Remote address: All IP addresses.
  5. Click the Save Rule button.

  6. In the Outgoing traffic block, create rules for traffic management:

    1. Click Add Rule.
    2. Type: ICMP.
    3. Remote address: All IP addresses.
  7. Click the Save Rule button.

Step 4. Assign a rule group

To send and receive traffic, assign a security group to the VM. For previously created VMs, apply the following settings:

  1. Go to personal account VK Cloud.
  2. Go to Cloud ComputingVirtual Machines.
  3. Click on the menu in the virtual machine row.
  4. Select Firewall Settings from the menu list.
  5. Find the rule group created in step 3 in the list.
  6. Click Apply in the line with the rule group.
  7. Press Confirm.

Step 4. Connect to the VM via ssh

In the last step, you created a virtual machine key that was saved to your computer. Find the file in downloads, you will need it to connect to the VM.

  1. Open a terminal.

  2. Go to downloads:

    cd ~/Downloads/
  3. Make the key available only to the current user:

    chmod 400 <path to key>
  4. Connect to the instance via SSH:

    ssh -i <path to key> centos@10.0.0.6

Step 5: Delete unused resources

If you no longer need the resources you created, delete them.