How to get Mikrotik RouterOS on Unraid
Follow the steps from your Unraid terminal. Have the webgui handy as well.
- download the image
- convert it to qcow2 image to be stored in your domain cache:
- create the VM
Go to VMS, click Add, choose Linux
Switch to Form View if you are in XML view.
Set Name to RouterOS
Set BIOS as SeaBIOS (Very important!!!)
Set Disk to Manual with Format qcow2 and Path to the qcow2 file and bus SATA
Set Network to the Bridge you want to use and/or pass in any PCI devices
Uncheck “Start VM after creation” and click Create. If you forgot to uncheck it just Stop the VM
edit the VM (click the logo of your VM for edit dropdown button to appear)
switch to XML view and locate the network card. looks something like this:
Change the model type from virtio to vmxnet3
This is required in order for routeros to see the interface and be able to interact with it
Click Update after you’re done editing.
Start the VM and connect with the built-in VNC viewer.
Login as admin (no password) and configure your new router.
you can check what IP address it was given with the following mikrotik command:
ip address print
You can also connect using winbox available here https://mikrotik.com/download and discover it on the Neighbors tab
bonus step: add the winbox icon so you can set it in the VM manager!
curl -o /usr/local/emhttp/plugins/dynamix.vm.manager/templates/images/winbox.png dfh.name/images/winbox-mikrotik-icon.png
You may also find it’s a good time to apply some basic firewall rules… depending on what you’re planning on doing.
The example below makes sense for my purposes and may be helpful to examine:
/ip firewall filter