CHR: Installation
Cloud Hosted Router (CHR) is the edition of RouterOS that runs as a virtual machine or a cloud instance. It has the same routing, firewall, VPN and management features as RouterOS on MikroTik devices. A new CHR runs on the free license level, which limits the upload speed of each interface to 1 Mbit/s. See CHR licensing for the paid levels and the 60-day trial.
To install CHR, download a disk image, attach it to a new virtual machine as its system disk and start the virtual machine. There is no installer: the disk image already contains RouterOS.
Choose a platform
The following pages describe the steps for one platform:
- Virtual machines: VMware ESXi, Proxmox VE (KVM/QEMU), Hyper-V and VirtualBox.
- Cloud: Amazon Web Services (AWS), Hetzner Cloud and Vultr.
- CHR: Troubleshooting covers traffic that does not leave the virtual machine, VLANs, jumbo frames and the hypervisor tools.
CHR also runs on VMware Fusion and Xen Server, and on Google Cloud Platform, Linode and Microsoft Azure, which have no page of their own. On Hyper-V, only Generation 1 virtual machines are supported. CHR cannot run on the bhyve hypervisor. Paravirtualized virtual machines are not supported on any hypervisor. Paravirtual devices, such as the virtio-net or vmxnet3 network adapter, work.
System requirements
- CPU: a 64-bit processor with virtualization support.
- RAM: 256 MB minimum, 512 MB recommended.
- Disk: 128 MB or more. The disk image is 128 MiB. When the virtual disk is larger than the image before the first start, CHR uses the whole disk.
The RAM that a CHR in use needs grows with the number of CPUs and interfaces. Use this formula for an approximate value in MiB:
RAM = 512 + [ 8 × (CPU_COUNT) × (INTERFACE_COUNT - 1) ]
With one CPU and one interface, the formula gives the recommended 512 MiB. The largest RAM and disk sizes depend on the Linux kernel of RouterOS and on the hardware.
RouterOS v6 CHR has its own limits: the formula is
RAM = 128 + [ 8 × (CPU_COUNT) × (INTERFACE_COUNT - 1) ], and the largest virtual disk is 16 GB.
Download the disk image
Download the image from the Cloud Hosted Router section of the MikroTik download page. Choose the release channel (see Upgrade for the channels), then the format that your hypervisor uses:
| Image | File | Format for |
|---|---|---|
| RAW disk | chr-<version>.img.zip | KVM/QEMU and Proxmox VE, and for writing to the disk of a cloud server |
| VDI | chr-<version>.vdi.zip | VirtualBox |
| VMDK | chr-<version>.vmdk.zip | VMware |
| VHDX | chr-<version>.vhdx.zip | Hyper-V |
| VirtualPC | chr-<version>.vhd.zip | Virtual PC (VHD format) |
| OVA | chr-<version>.ova | Hypervisors that import OVA appliances |
The RAW, VDI, VMDK, VHDX and VHD images are ZIP archives: extract the image before you attach it.
The OVA appliance is a plain .ova file. The page also has a RAW disk and a VDI image for 64-bit
ARM hosts (chr-<version>-arm64.img.zip and chr-<version>-arm64.vdi.zip).
The images are disk images, not installers or programs. Attach the image to a virtual machine as its system disk.
Create the virtual machine
- Create a new virtual machine in your hypervisor, without an operating system.
- Give it the CPUs and the RAM from the system requirements.
- Attach the extracted CHR image as the system disk. To give CHR more disk space, enlarge the virtual disk before the first start.
- Add the network adapters.
- Start the virtual machine.
Virtual network adapters and disk controllers
The platform pages list the network adapters and disk controllers that CHR supports on each hypervisor. Avoid the emulated E1000 adapter when the hypervisor offers a paravirtual or synthetic one (virtio-net on KVM, vmxnet3 on VMware, the synthetic adapter on Hyper-V): those adapters perform better.
In RouterOS v7, Fast Path is supported with the vmxnet3 and virtio-net adapters. RouterOS v6 CHR does not support Fast Path.
First login
Connect to the console of the virtual machine, or by SSH, WinBox or WebFig to the address that
ether1 gets. On first start, CHR runs a DHCP client on ether1.
- User name:
admin - Password: none
At the first interactive login, RouterOS asks you to set a new password for admin
(Change your password (Ctrl-C to skip)). On the console, it first asks whether to show the
software license. Set a strong password, then follow Securing your router. A cloud image can differ:
on the AWS Marketplace image, for example, you log in with the instance key pair (see
CHR: AWS Installation).
Check the license level with /system/license/print. A new CHR shows level: free:
/system/license/print
system-id: BtolBavES8B
level: free
To start a 60-day trial of a paid level or to activate a purchased license, run
/system/license/renew with your MikroTik
account (see CHR licensing).