Getting Started MikroTik Cloud Hosted Router (CHR) on Proxmox
Cloud Hosted Router (CHR) is a RouterOS version intended for running as a virtual machine. It supports the x86 64-bit architecture and can be used on most of the popular hypervisors such as VMWare, Hyper-V, VirtualBox, KVM and others. CHR has full RouterOS features enabled by default but has a different licensing model than other RouterOS versions.
System Minimal Requirements
- Package version: RouterOS v6.34 or newer
- Host CPU: 64-bit with virtualization support
- RAM: 128MB or more
- Disk: 128MB disk space for the CHR virtual hard drive (Max: 16GB)
NOTE: The minimum required RAM depends on interface count and CPU count. You can get an approximate number by using the following formula: RAM = 128 + [ 8 × (CPU_COUNT) × (INTERFACE_COUNT - 1) ]
The CHR has 4 license levels:
- p1 perpetual-1 ($45)
- p10 perpetual-10 ($95)
- p-unlimited perpetual-unlimited ($250)
Perpetual is a lifetime license (buy once, use forever). It is possible to transfer a perpetual license to another CHR instance. A running CHR instance will indicate the time when it has to access the account server to renew it’s license. If the CHR instance will not be able to renew the license it will behave as if the trial period has ran out and will not allow an upgrade of RouterOS to a newer version.
After licensing a running trial system, you must manually run the /system license renew function from the CHR to make it active. Otherwise the system will not know you have licensed it in your account. If you do not do this before the system deadline time, the trial will end and you will have to do a complete fresh CHR installation, request a new trial and then license it with the license you had obtained.
p1 (perpetual-1) license level allows CHR to run indefinitely. It is limited to 1Gbps upload per interface. All the rest of the features provided by CHR are available without restrictions. It is possible to upgrade p1 to p10 or p-unlimited After the upgrade is purchased the former license will become available for later use on your account.
p10 (perpetual-10) license level allows CHR to run indefinitely. It is limited to 10Gbps upload per interface. All the rest of the features provided by CHR are available without restrictions. It is possible to upgrade p10 to p-unlimited After the upgrade is purchased the former license will become available for later use on your account.
The p-unlimited (perpetual-unlimited) license level allows CHR to run indefinitely. It is the highest tier license and it has no enforced limitations.
The free license level allows CHR to run indefinitely. It is limited to 1Mbps upload per interface. All the rest of the features provided by CHR are available without restrictions. To use this, all you have to do is download disk image file from our download page and create a virtual guest.
CHR ProxMox installation
Step 1: Registration a new mikrotik account, if you have NOT it.
Step 2: Installation
I recommand using the below Bash script to install. You need to ssh into your ProxMox and run below script.
Before run this script, Please do some research, which version of ROS you want to install. Please, check this link .
What this script does:
- Stores tmp files in: /root/temp dir.
- Downloads raw image archive from MikroTik download page.
- Converts image file to qcow format.
- Creates basic VM that is attached to MGMT bridge.
- Make sure you have a MGMT bridge, which named vmbr0. If you have NOT avaiable bridge, please have a look Cluster/Getting Started Set-up OVS for Proxmox
- If your network card is Intel i211, Please install RouterOS 7, not RouterOS 6. RouterOS 6 does NOT support i211 network card.
NOTE: ERROR: storage ’local’ does not support content-type ‘images’ NOTE: Useful snippet to clean up the BASH script from Windows formatting that may interfere with script if it’s edited on a Windows workstation:
Step 3: Add WAN port to ROS
I am add a passthrough NIC as WAM, so before you read this section. Please, read Cluster/Proxmox PCI Passthrough first.
When you DONE set-up passthrough, now lets we list network interfaces name with PCI ID and add WAN.
List network interface name with PCI ID
For example, you can found interface name with bus id at below.
now lets we add WAN to ROS.
Go to Hardware Section -> Add -> PCI Device
Choose your WAN need to add in.
Step 4: Start your ROS
check interface name:
check IP address:
remove IP address
Assign IP address:
Step 5: Disable API, API-SSL, Telnet, FTP, WWW and WWW-SSL
Step 6: interface rename
Step 7: add dhcp client
Step 8: add DNS
Step 9: firwall NAT
Step 10: IP Pool
Step 11: DHCP Server