Easy way for install Mikrotik’s Cloud Hosted Router on any Cloud VM

Feb 6, 2018 · 1 min read

Many cloud providers not allows uploading ISOs and not provides any option for install custom OS. This is not a problem, because I’ll show you how you can prepare Mikrotik VM on any cloud in easy 5 steps.

  1. Create new cloud VM (Ubuntu or Debian it does not matter…)
  2. Boot, then mount tempfs to /tmp
mount -t tmpfs tmpfs /tmp/

3. Now we need to go https://www.mikrotik.com/download and download “Cloud Hosted Router” raw-image

cd /tmp
wget https://download2.mikrotik.com/routeros/6.39.3/chr-6.39.3.img.zip

4. Next step, extract our image and flash it to HDD

unzip chr-6.39.3.img.zip
dd if=chr-6.39.3.img of=/dev/vda bs=4M oflag=sync

5. Now force reboot

echo 1 > /proc/sys/kernel/sysrq 
echo b > /proc/sysrq-trigger

After reboot Mikrotik RouterOS will expand filesystem automatically.
You will see login prompt after that.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade