Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Virtual Private Cloud
  • Getting started
    • All tutorials
    • Architecture and protection of a basic internet service
    • DHCP settings for working with a corporate DNS server
    • Installing the Cisco CSR 1000v virtual router
    • Installing the Mikrotik CHR virtual router
    • Connecting to a cloud network using OpenVPN
    • Configuring Cloud DNS to access a Managed Service for ClickHouse® cluster from other cloud networks
    • Secure user access to cloud resources based on WireGuard VPN
    • Creating and configuring a UserGate gateway in proxy server mode
    • Creating and configuring a UserGate gateway in firewall mode
    • Implementing fault-tolerant use cases for network VMs
    • Creating a tunnel between two subnets using OpenVPN Access Server
    • Creating a bastion host
    • Migrating an HDFS Yandex Data Processing cluster to a different availability zone
    • Configuring a network for Yandex Data Processing
    • Network between folders
    • Implementing a secure high-availability network infrastructure with a dedicated DMZ based on the Check Point NGFW
    • Cloud infrastructure segmentation with the Check Point next-generation firewall
    • Connecting to Object Storage from Virtual Private Cloud
    • Connecting to Container Registry from Virtual Private Cloud
    • Using Yandex Cloud modules in Terraform
    • Deploying an Always On availability group with an internal network load balancer
    • Configuring Cloud Interconnect access to cloud networks behind NGFWs
    • Automating tasks using Managed Service for Apache Airflow™
    • Setting up network connectivity between BareMetal and Virtual Private Cloud subnets
  • DDoS Protection
  • Access management
  • Terraform reference
  • Audit Trails events
  • Release notes
  • FAQ

In this article:

  • Get your cloud ready
  • Required paid resources
  • Create a VM with the Mikrotik Cloud Hosted Router
  • Change the administrator password on the router
  • Create a test VM
  • Check the connection between the router and test VM
  • Delete the resources you created
  1. Tutorials
  2. Installing the Mikrotik CHR virtual router

Installing a Mikrotik CHR virtual router

Written by
Yandex Cloud
Updated at May 7, 2025
  • Get your cloud ready
    • Required paid resources
  • Create a VM with the Mikrotik Cloud Hosted Router
  • Change the administrator password on the router
  • Create a test VM
    • Check the connection between the router and test VM
  • Delete the resources you created

In Yandex Cloud, you can deploy a virtual Mikrotik Cloud Hosted Router on a ready-made VM image. To install the Mikrotik Cloud Hosted Router and check how it runs:

  1. Get your cloud ready.
  2. Create a VM with the Mikrotik Cloud Hosted Router.
  3. Log in to your VM and change your password.
  4. Create a test VM.
  5. Check the connection between the router and test VM.

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

Get your cloud readyGet your cloud ready

Sign up in Yandex Cloud and create a billing account:

  1. Navigate to the management console and log in to Yandex Cloud or register a new account.
  2. On the Yandex Cloud Billing page, make sure you have a billing account linked and it has the ACTIVE or TRIAL_ACTIVE status. If you do not have a billing account, create one and link a cloud to it.

If you have an active billing account, you can navigate to the cloud page to create or select a folder for your infrastructure to operate in.

Learn more about clouds and folders.

Required paid resourcesRequired paid resources

Alert

When using a Mikrotik Cloud Hosted Router image without a license, the router throughput is limited to 1 Mbps. To remove this limitation, install a license.

The cost of using a virtual router and a test VM includes:

  • Fee for the disks and continuously running VMs (see Yandex Compute Cloud pricing).
  • Fee for using a public IP address (see Yandex Virtual Private Cloud pricing).

Create a VM with the Mikrotik Cloud Hosted RouterCreate a VM with the Mikrotik Cloud Hosted Router

  1. On the folder page in the management console, click Create resource and select Virtual machine instance.

  2. Under Boot disk image, in the Product search field, enter Cloud Hosted Router and select a public Cloud Hosted Router image.

  3. Under Location, select an availability zone to create your VM in. If you do not know which availability zone you need, leave the default one.

  4. Under Computing resources, navigate to the Custom tab and specify the required platform, number of vCPUs, and the amount of RAM:

    • Platform: Intel Ice Lake
    • vCPU: 2
    • Guaranteed vCPU performance: 100%
    • RAM: 2 GB
  5. Under Network settings:

    • In the Subnet field, select the network and subnet to connect your VM to. If the required network or subnet is not there, create it.
    • Under Public IP address, leave Auto to assign a random external IP address to your VM from the Yandex Cloud pool. Alternatively, select a static address from the list if you reserved one.
  6. Under Access, select SSH key and specify the VM access credentials:

    • Under Login, enter a username. Do not use root or other reserved usernames.
    • In the SSH key field, select the SSH key saved in your organization user profile.

      If there are no saved SSH keys in your profile, or you want to add a new key:

      • Click Add key.
      • Enter a name for the SSH key.
      • Upload or paste the contents of the public key file. You need to create a key pair for the SSH connection to a VM yourself.
      • Click Add.

      The SSH key will be added to your organization user profile.

      If users cannot add SSH keys to their profiles in the organization, the added public SSH key will only be saved to the user profile of the VM being created.

    Note that you only need this data for VM creation. You cannot use the data for router access.

  7. Under General information, specify the VM name: mikrotik-router.

  8. Click Create VM.

It may take a few minutes to create a VM. When the VM status changes to RUNNING, you can log in.

Alert

Set a complex administrator password immediately after VM creation. To keep access to the router, you need to change the admin password within 5 minutes after the start.

Change the administrator password on the routerChange the administrator password on the router

The router is created with a public IP address, so you need to change the default administrator password for security reasons.

  1. In the management console, select the folder.
  2. In the list of services, select Compute Cloud.
  3. Copy the mikrotik-router VM public IP address and open it in your browser.
  4. On the page that opens, enter the VM’s internal IP address in the IP Address field.
  5. In the Password field, enter the new administrator password, confirm it in the Confirm Password field, and click Apply Configuration. You can apply other settings later.

Create a test VMCreate a test VM

Create a test VM in the subnet that hosts the router, to test connectivity between the router and VM.

  1. On the folder page in the management console, click Create resource and select Virtual machine instance.

  2. Under Boot disk image, in the Product search field, enter Ubuntu and select a public Ubuntu image.

  3. Under Location, select the availability zone where the mikrotik-router VM resides.

  4. Under Computing resources, navigate to the Custom tab and specify the required platform, number of vCPUs, and the amount of RAM:

    • Platform: Intel Ice Lake
    • vCPU: 2
    • Guaranteed vCPU performance: 20%
    • RAM: 1 GB
  5. Under Network settings:

    • In the Subnet field, select the network and subnet hosting the mikrotik-router VM.
    • In the Public IP address field, select No address.
  6. Under Access, select SSH key and specify the VM access credentials:

    • Under Login, enter a username. Do not use root or other reserved usernames. To perform operations requiring superuser privileges, use the sudo command.
    • In the SSH key field, select the SSH key saved in your organization user profile.

      If there are no saved SSH keys in your profile, or you want to add a new key:

      • Click Add key.
      • Enter a name for the SSH key.
      • Upload or paste the contents of the public key file. You need to create a key pair for the SSH connection to a VM yourself.
      • Click Add.

      The SSH key will be added to your organization user profile.

      If users cannot add SSH keys to their profiles in the organization, the added public SSH key will only be saved to the user profile of the VM being created.

  7. Under General information, specify the VM name: test-vm.

  8. Click Create VM.

Check the connection between the router and test VMCheck the connection between the router and test VM

Alert

If you use WinBox to access the router, connect to the router using the VM IP address. MAC access is not supported in Yandex Cloud.

Make sure that a network connection is established between the router and test VM:

  1. Open the router's administrator interface in the browser.
  2. Click Terminal.
  3. In the terminal that opens, run the ping <test_VM_internal_IP_address> command.

If the packets reach the test VM, you can start configuring the router. You can find the router manual in the Mikrotik documentation.

Delete the resources you createdDelete the resources you created

To stop paying for the deployed resources, delete the mikrotik-router and test-vm VMs.

If you reserved a public static IP address, delete it.

Was the article helpful?

Previous
Installing the Cisco CSR 1000v virtual router
Next
Connecting to a cloud network using OpenVPN
Yandex project
© 2025 Yandex.Cloud LLC