An easy way to install Mikrotik RouterOS in any cloud
- Tutorial
Many cloud providers do not allow you to download ISO-files and do not provide any opportunity to install OS other than those provided by the cloud itself.
In this article I will tell you how to avoid this restriction and how easy it is to install Mikrotik Cloud Hosted Router on any cloud virtual machine in 5 steps.
- Create a new virtual machine (Ubuntu or Debian doesn't really matter)
Boot up and mount tmpfs in
/tmp
mount -t tmpfs tmpfs /tmp/
Now follow the link and download the "Cloud Hosted Router" raw image.
cd /tmp wget https://download2.mikrotik.com/routeros/6.39.3/chr-6.39.3.img.zip
The next step is to extract the image and write it to the virtual machine disk:
unzip chr-6.39.3.img.zip dd if=chr-6.39.3.img of=/dev/vda bs=4M oflag=sync
Now we need to initialize a hard reboot:
echo 1 > /proc/sys/kernel/sysrq echo b > /proc/sysrq-trigger
After rebooting, Mikrotik RouterOS will prepare the hard drive automatically and you will see a login prompt.
English version of the article