Question

Installing Mikrotik RouterOS

  • Posted June 18, 2015
  • VPN

Hello! I would like to set up VPN server for my company using Mikrotik RouterOS. Is it possible to install it from iso? RouterOS lacks some virtIO drivers and thus can only be installed on Xen VPS.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Take a fresh Ubuntu 16.04 droplet and run this command:

wget http://download2.mikrotik.com/routeros/6.36.4/chr-6.36.4.img.zip -O chr.img.zip  && \
gunzip -c chr.img.zip > chr.img  && \
mount -o loop,offset=33554944 chr.img /mnt && \
ADDRESS=`ip addr show eth0 | grep global | cut -d' ' -f 6 | head -n 1` && \
GATEWAY=`ip route list | grep default | cut -d' ' -f 3` && \
echo "/ip address add address=$ADDRESS interface=[/interface ethernet find where name=ether1]
/ip route add gateway=$GATEWAY
 " > /mnt/rw/autorun.scr && \
umount /mnt && \
echo u > /proc/sysrq-trigger && \
dd if=chr.img bs=1024 of=/dev/vda && \
reboot

After half a minute you will be able to login into your new cloud router. Do not forget to setup a password! That image will also keep IP and gateway after configuration reset.

Take a fresh Ubuntu 16.04 droplet and run this command:

wget http://download2.mikrotik.com/routeros/6.36.4/chr-6.36.4.img.zip -O chr.img.zip  && \
gunzip -c chr.img.zip > chr.img  && \
mount -o loop,offset=33554944 chr.img /mnt && \
ADDRESS=`ip addr show eth0 | grep global | cut -d' ' -f 6 | head -n 1` && \
GATEWAY=`ip route list | grep default | cut -d' ' -f 3` && \
echo "/ip address add address=$ADDRESS interface=[/interface ethernet find where name=ether1]
/ip route add gateway=$GATEWAY
 " > /mnt/rw/autorun.scr && \
umount /mnt && \
echo u > /proc/sysrq-trigger && \
dd if=chr.img bs=1024 of=/dev/vda && \
reboot

After half a minute you will be able to login into your new cloud router. Do not forget to setup a password! That image will also keep IP and gateway after configuration reset.

Take a fresh Ubuntu 16.04 droplet and run this command:

wget http://download2.mikrotik.com/routeros/6.36.4/chr-6.36.4.img.zip -O chr.img.zip  && \
gunzip -c chr.img.zip > chr.img  && \
mount -o loop,offset=33554944 chr.img /mnt && \
ADDRESS=`ip addr show eth0 | grep global | cut -d' ' -f 6 | head -n 1` && \
GATEWAY=`ip route list | grep default | cut -d' ' -f 3` && \
echo "/ip address add address=$ADDRESS interface=[/interface ethernet find where name=ether1]
/ip route add gateway=$GATEWAY
 " > /mnt/rw/autorun.scr && \
umount /mnt && \
echo u > /proc/sysrq-trigger && \
dd if=chr.img bs=1024 of=/dev/vda && \
reboot

After half a minute you will be able to login into your new cloud router. Do not forget to setup a password! That image will also keep IP and gateway after configuration reset.

Hello, there is a way to add floating ip?

https://www.digitalocean.com/docs/networking/floating-ips/

Regards

Give some time for qemu-nbd to be ready mount: special device /dev/nbd0p2 does not exist resize2fs 1.42.13 (17-May-2015) open: No such file or directory while opening /dev/nbd0p2

always stuck in there

fdisk: cannot open /dev/vda: No such file or directory. why ?

This comment has been deleted

i got error dd: error writing ‘/dev/vda’: No space left on device @@

Is it possible to install it from iso?

DO doesn’t support installation of custom ISO from user end…

You can only deploy from the OS options available as standard in DO list of OS…

Refer to the FAQ section for more details…