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:
- Set up Internet access.
- Organize the basic network connectivity of several virtual machines.
- Learn how to assign security group rules.
-
Go to VK Cloud management console.
-
Select the project.
-
Go to Virtual networks → Networks.
-
Create a network with internet access:
- Click the Create button.
- Specify a network name, for example,
test-network. - Select SDN:
Sprut(default). The option is unavailable if your project has only one SDN. - Enable the Internet access option.
- In the Router dropdown select
Create new. - Click Add network.
-
Create a network without internet access:
- Click the Create button.
- Specify a network name, for example,
test-network-2. - Select SDN:
Sprut(default). The option is unavailable if your project has only one SDN. - Disable the Internet access option.
- In the Router dropdown select
Create new. - Click Add network.
Create a VM with internet access and 3 VMs without internet access.
-
Go to VK Cloud management console.
-
Go to Cloud Servers → Virtual Machines.
-
Click the Add button.
-
In the Configuration box set VM parameters depending on your requirements.
-
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.
- Name of virtual machine:
-
In the Disk size and speed box select the appropriate disk type and specify its size.
-
In the Network and firewall settings box specify:
- Network:
External network (internet). - Virtual machine key:
Create a new key. - Firewall settings: add
defaultandsshsecurity groups.
- Network:
-
In the Backup box, disable backup.
-
Click Create.
Wait for the creation of the virtual machines to complete. Files with virtual machine keys will be downloaded to your computer.
-
Go to VK Cloud management console.
-
Go to Cloud Networks → Firewall Settings.
-
Click Add.
-
Specify a rule group name, for example,
test-icmp. -
Select SDN:
Sprut(default). The option is unavailable if your project has only one SDN. -
Click Create Group.
-
In the Incoming traffic block, create rules for traffic management:
- Click Add Rule.
- Type:
ICMP. - Remote address:
All IP addresses.
-
Click the Save Rule button.
-
In the Outgoing traffic block, create rules for traffic management:
- Click Add Rule.
- Type:
ICMP. - Remote address:
All IP addresses.
-
Click the Save Rule button.
To send and receive traffic, assign a security group to the VM. For previously created VMs, apply the following settings:
- Go to VK Cloud management console.
- Go to Cloud Servers → Virtual Machines.
- Click
for the virtual machine and select Firewall Settings.
- Find the rule group created in step 3 in the list.
- Click Apply in the line with the rule group.
- Press Confirm.
-
Go to to VK Cloud management console.
-
Go to Cloud Servers → Virtual Machines.
-
For each of the VMs in the
internetandtest-networknetworks, perform the following steps:test-vm1test-vm2test-vm3- Open the
test-vm1VM page by clicking its name in the list. - Go to the Console tab.
- Log in to the VM.
- Run the
ping <TEST_VM2_IP_ADDRESS>command. Verify that packets are being sent successfully.
- Open the
-
Go to to VK Cloud management console.
-
Go to Cloud Servers → Virtual Machines.
-
Open the
test-vm4VM page by clicking its name in the list. -
Go to the Console tab.
-
Log in to the VM.
-
Ping an external internet resource using the command:
ping cloud.vk.comThere is no internet connection, so no packet exchange occurs.
-
Go to Cloud Networks → Routers.
-
Find the router with the
test-network-2network and click its name. -
Click the Edit router button.
-
In the window that opens, enable the External network connection option.
-
Click the Save button.
-
Return to the
test-vm4VM page. -
Go to Cloud Servers → Virtual Machines.
-
Click
for
test-vm4and select Reboot. -
Open the
test-vm4VM page by clicking its name in the list. -
Go to the Console tab.
-
Log in to the VM.
-
Ping an external internet resource using the command:
ping cloud.vk.comThe internet connection is working correctly, so packet exchange occurs.
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.
-
Open a terminal.
-
Go to downloads:
cd ~/Downloads/ -
Make the key available only to the current user:
chmod 400 <PATH_TO_KEY_FOR_TEST-VM-2> -
Connect to the instance via SSH:
ssh -i <PATH_TO_KEY> <USERNAME>@<FLOATING_IP>
If you no longer need the resources you created, delete them.