VK Cloud logo

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 security group rules.

Step 1: Create networks and subnets

  1. Go to VK Cloud management console.

  2. Select the project.

  3. Go to Virtual networksNetworks.

  4. Create a network with internet access:

    1. Click the Create button.
    2. Specify a network name, for example, test-network.
    3. Select SDN: Sprut (default). The option is unavailable if your project has only one SDN.
    4. Enable the Internet access option.
    5. In the Router dropdown select Create new.
    6. Click Add network.
  5. Create a network without internet access:

    1. Click the Create button.
    2. Specify a network name, for example, test-network-2.
    3. Select SDN: Sprut (default). The option is unavailable if your project has only one SDN.
    4. Disable the Internet access option.
    5. In the Router dropdown select Create new.
    6. Click Add network.

Step 2: Create multiple virtual machines

Create a VM with internet access and 3 VMs without internet access.

  1. Go to VK Cloud management console.

  2. Go to Cloud ServersVirtual Machines.

  3. Click the Add button.

  4. In the Configuration box set VM parameters depending on your requirements.

  5. In the General information box specify:

    • Name of virtual machine: test-vm1.
    • Tags: if needed, assign a tag or create a new one.
    • Configure scripts on VM startup: enable the option to add a bash script or a cloud-config which will be executed at VM startup.
  6. In the Disk size and speed box select the appropriate disk type and specify its size.

  7. In the Network and firewall settings box specify:

    • Network: External network (internet).
    • Virtual machine key: Create a new key.
    • Firewall settings: add default and ssh security groups.
  8. In the Backup box, disable backup.

  9. Click Create.

Wait for the creation of the virtual machines to complete. Files with virtual machine keys will be downloaded to your computer.

Step 3: Create a rule group

  1. Go to VK Cloud management console.

  2. Go to Cloud NetworksFirewall Settings.

  3. Click Add.

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

  5. Select SDN: Sprut (default). The option is unavailable if your project has only one SDN.

  6. Click Create Group.

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

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

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

    1. Click Add Rule.
    2. Type: ICMP.
    3. Remote address: All IP addresses.
  10. 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 VK Cloud management console.
  2. Go to Cloud ServersVirtual Machines.
  3. Click  for the virtual machine and select Firewall Settings.
  4. Find the rule group created in step 3 in the list.
  5. Click Apply in the line with the rule group.
  6. Press Confirm.

Step 5: Check network connectivity between VMs

  1. Go to to VK Cloud management console.

  2. Go to Cloud ServersVirtual Machines.

  3. For each of the VMs in the internet and test-network networks, perform the following steps:

    1. Open the test-vm1 VM page by clicking its name in the list.
    2. Go to the Console tab.
    3. Log in to the VM.
    4. Run the ping <TEST_VM2_IP_ADDRESS> command. Verify that packets are being sent successfully.

Step 6: Check internet access

  1. Go to to VK Cloud management console.

  2. Go to Cloud ServersVirtual Machines.

  3. Open the test-vm4 VM page by clicking its name in the list.

  4. Go to the Console tab.

  5. Log in to the VM.

  6. Ping an external internet resource using the command:

    ping cloud.vk.com

    There is no internet connection, so no packet exchange occurs.

  7. Go to Cloud NetworksRouters.

  8. Find the router with the test-network-2 network and click its name.

  9. Click the Edit router button.

  10. In the window that opens, enable the External network connection option.

  11. Click the Save button.

  12. Return to the test-vm4 VM page.

  13. Go to Cloud ServersVirtual Machines.

  14. Click  for test-vm4 and select Reboot.

  15. Open the test-vm4 VM page by clicking its name in the list.

  16. Go to the Console tab.

  17. Log in to the VM.

  18. Ping an external internet resource using the command:

    ping cloud.vk.com

    The internet connection is working correctly, so packet exchange occurs.

Step 7. 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_FOR_TEST-VM-2>
  4. Connect to the instance via SSH:

    ssh -i <PATH_TO_KEY> <USERNAME>@<FLOATING_IP>

Delete unnecessary resources

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