Cloud Hosted Router (CHR) is RouterOS in a virtual machine, on your own hypervisor or at a cloud provider. The easy way to move to it from a hardware MikroTik is the text export of the settings: an .rsc file you can read, edit and apply in parts. A .backup file won’t do: it is tied to the specific device, and on other hardware it restores with errors or not at all.
Preparation
- RouterOS versions. Move between the same major versions. If the old router still runs RouterOS 6, upgrade it to 7 first and check that everything works: routing (OSPF, BGP) and wireless interfaces are built differently in version 7, and some lines of a version 6 export won’t be accepted by CHR 7.
- CHR licence. The free licence limits upload speed on each interface to 1 Mbit/s — fine for testing, not for production. The paid levels p1, p10 and p-unlimited raise the limit to 1 Gbit/s, 10 Gbit/s or remove it; any of them can be tried free for 60 days with a MikroTik account.
- Image. MikroTik’s website has images for VMware (
.vmdk,.ova), Hyper-V (.vhdx), VirtualBox (.vdi) and a raw.imgfor Proxmox, KVM and clouds. - Network adapters. Give the virtual machine as many adapters as you need ports right away: on CHR they become
ether1,ether2and so on, in the order they are attached.
Export from the old router
It helps to give the interfaces on the old router clear names (wan, lan) beforehand: then every rule in the export refers to them rather than to port numbers. Then, in the terminal:
/export terse show-sensitive file=old-router /system backup save name=before-chr
terse writes every command on one line, which makes the file easier to edit. show-sensitive is needed on RouterOS 7: without it, passwords and keys are left out of the export. The before-chr backup is only for rolling back on this same router.
Download old-router.rsc with WinBox (Files) or scp admin@192.168.88.1:old-router.rsc . and delete it from the router: /file remove old-router.rsc. A file made with show-sensitive holds passwords and keys — keep it as a secret.
What to remove and what to move separately
| Section | What to do |
|---|---|
/interface ethernet | Keep only the lines with names and MTU. Speed, SFP and PoE settings aren’t needed on CHR. |
/interface ethernet switch | Remove: CHR has no switch chip. Do VLANs on a bridge with vlan-filtering. |
/interface wireless, /interface wifi, /caps-man | Remove: there is no radio. |
/system routerboard, /system leds, /lcd, /interface lte, /port | Remove: these are hardware settings. |
/user | User passwords are never exported. Create the users again and add their SSH keys. |
/certificate | Move certificates with private keys as files: /certificate export-certificate name export-passphrase="…", then /certificate import on CHR. |
/ip cloud | The DDNS name is tied to the device — CHR gets a different one. Update the records that point to it. |
Also check everything that refers to port names: scripts, the scheduler, firewall rules with in-interface and interface lists. If the old router used the default interface names, replace them via temporary names, or the replacements will overlap: first sfp1 → tmp-wan, then tmp-wan → ether1.
Import on CHR
- Connect through the hypervisor console as
adminand set a password right away: create it with the password generator. - Rename the interfaces as on the old router:
/interface ethernet set [find default-name=ether1] name=wan. - Upload the edited file (WinBox,
scp) and apply it:/import file-name=chr.rsc verbose=yes. Withverbose=yesRouterOS shows every line, so you see at once where the import stopped. - A large file is safer applied in parts: interfaces and bridges, addresses, DHCP and DNS, then the firewall and NAT. Before the firewall part, turn on Safe Mode (
Ctrl+Xin the terminal or the button in WinBox): if the connection drops, RouterOS undoes the changes itself.
Checks after the move
- Run
/export terseon CHR and compare it with the old file on the MikroTik configuration diff page: this shows what got lost during the import. - Check the new configuration for common mistakes with the MikroTik configuration audit and, if needed, add basic protection: services closed, management only from your own networks.
- Make sure the internet, NAT, DHCP and DNS work and that
/log print where topics~"error"shows no new errors. - Set up regular backups of CHR — the MikroTik backups page gives a ready-made script. A virtual machine snapshot before every RouterOS upgrade doesn’t hurt either.