Since 2016 · 50,000+ customers · ★ 5.0 on Google Live chatWhatsAppTelegramOpen a ticket
Get started
VPS and Hosting

How to Install MikroTik CHR on a VPS (Step by Step)

How to install MikroTik CHR on a VPS guide by 99RDP

MikroTik's Cloud Hosted Router (CHR) is RouterOS built to run as a virtual machine. On a VPS it gives you a full MikroTik router in the cloud: a VPN concentrator (WireGuard, IPsec, L2TP, SSTP, OpenVPN), a BGP or OSPF lab, a hotspot or RADIUS back end, or a firewall in front of other servers, all managed with WinBox or SSH like any MikroTik device. This guide shows how to choose a suitable VPS, write the CHR image to it over SSH with PuTTY, do the first configuration safely, and pick the right licence.

Quick answerOn a KVM VPS booted into Linux, download the CHR raw image from mikrotik.com, write it over the system disk with dd, force a reboot, then log in with WinBox or SSH as admin, set a password, and secure the services. Or order a MikroTik VPS with CHR pre-installed and skip the imaging step.

What you need

  • A KVM-based VPS (not OpenVZ/LXC) with at least 1 vCPU, 256 MB–1 GB RAM and a 1 GB+ disk. Note the disk name (/dev/vda or /dev/sda), IP address, netmask and gateway.
  • VNC or web console access from your provider, in case the network doesn't come up after the reboot.
  • PuTTY (or the built-in ssh on Windows 10/11) to connect, and WinBox to manage RouterOS afterwards.

Writing CHR erases the VPS's current operating system completely.

Overview of installing MikroTik CHR on a VPS: SSH in, download the image, write it to the disk, reboot into RouterOS
How the install works

Step 1: Connect to the VPS with PuTTY

  1. Open PuTTY, enter the VPS IP, port 22, connection type SSH, and click Open.
  2. Log in as root with the password from your provider.
  3. Note the network details before they're gone:
    ip a          # IP address and prefix
    ip r          # default gateway
    lsblk         # disk name, e.g. vda

Step 2: Download the CHR image

Get the current stable version number from mikrotik.com/download (RouterOS 7.x; the stable channel was on 7.25 in late 2026), then download the Raw disk image into RAM so it survives overwriting the disk:

cd /dev/shm
VER=7.25
wget https://download.mikrotik.com/routeros/$VER/chr-$VER.img.zip
unzip chr-$VER.img.zip

If unzip is missing, install it first (apt install unzip or dnf install unzip).

Steps to put MikroTik CHR on a VPS: boot rescue, download the CHR image, write it with dd, reboot, log in with WinBox
Installing CHR

Step 3: Write the image to the disk

sync
dd if=chr-$VER.img of=/dev/vda bs=4M oflag=sync
echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger

Replace /dev/vda with your disk name. The last command reboots immediately, because the old OS is no longer on the disk. The VPS now boots into RouterOS.

Checklist after the first MikroTik CHR login
After first login

Step 4: First login and network check

  1. Most VPS networks hand out the IP by DHCP, and CHR runs a DHCP client on ether1 by default, so after a minute you can connect with WinBox to the same public IP, user admin, empty password. RouterOS 7 asks you to set a new password immediately.
  2. If you can't connect, open your provider's VNC console, log in as admin and add the address and route by hand:
    /ip address add address=203.0.113.10/24 interface=ether1
    /ip route add gateway=203.0.113.1
    /ip dns set servers=1.1.1.1,8.8.8.8
  3. Check connectivity with /ping 1.1.1.1.

Step 5: Secure the router

A fresh CHR on a public IP has no firewall rules. Do these first:

/user add name=myadmin group=full password="Long-Unique-Password"
/user disable admin
/ip service disable telnet,ftp,www,api,api-ssl
/ip service set winbox address=198.51.100.25/32
/ip service set ssh address=198.51.100.25/32
/ip firewall filter
add chain=input connection-state=established,related action=accept
add chain=input protocol=icmp action=accept
add chain=input src-address=198.51.100.25 action=accept comment="admin IP"
add chain=input in-interface=ether1 action=drop comment="drop rest from WAN"

Replace 198.51.100.25 with your own IP, and add accept rules for any VPN ports you'll use (for example UDP 13231 for WireGuard) above the final drop rule. Also disable the MAC server and neighbour discovery on the WAN interface (/tool mac-server set allowed-interface-list=none, /ip neighbor discovery-settings set discover-interface-list=none).

Step 6: Choose a licence

LicenceUpload speed per interfacePrice
Free1 MbpsFree, no time limit
P11 Gbps$45 (one-time)
P1010 Gbps$95
P-UnlimitedUnlimited$250

All features work on every level; only speed differs. A 60-day trial of any paid level is available: run /system license renew on the CHR and log in with your mikrotik.com account. Buy or apply the licence before the trial ends, or the CHR can't be upgraded and may need reinstalling.

Step 7: Keep it updated

/system package update check-for-updates
/system package update install

Export your configuration first with /export file=backup and download it with WinBox (Files).

Frequently asked questions

What is a MikroTik VPS?

A virtual server running MikroTik Cloud Hosted Router (CHR), the virtual-machine edition of RouterOS, so you have a MikroTik router in a data centre.

Is there a free MikroTik CHR?

Yes. The free licence has every feature but is limited to 1 Mbps upload per interface. A 60-day trial removes the limit.

Can I install CHR on any VPS?

It needs full virtualization such as KVM, Hyper-V or VMware. Container-based VPS (OpenVZ, LXC) can't run CHR.

What is the default CHR login?

User admin with an empty password; RouterOS 7 forces you to set a new password at first login.

Nishant Kumar, Sr. Server Engineer at 99RDP
Written byNishant KumarSr. Server Engineer, 99RDP. Part of the team that runs our servers and answers support.
Keep reading

More VPS and Hosting guides

All VPS and Hosting guides

Need a server for this?

✓ Setup in minutes✓ Full admin access✓ 7-day refund on new services