You are on page 1of 7

1/12/2015 My Home Lab: Installing Mikrotik RouterOS under VirtualBox

4 Plus Blog suivant Crer un blog Connexio

My Home Lab

Home About

W ednesday, May 1, 2013 Total Pageviews

Installing Mikrotik RouterOS under VirtualBox


MikroTik RouterOS is a Linux based operating system that runs on proprietary hardware (RouterBOARD), or on standard x86-
173,583
based computers. Some training videos here.
Search This Blog
You can install it in VirtualBox and play around with this virtual device.
For real hands on experience with Mikrotiks , better buy the actual equipment since they are cheap. Search

Go to their website and download the latest Router OS for PC/86


At this time v5.18 is latest stable available version. Also available in torrent. Popular Posts

Installing Mikrotik RouterOS


Create a new Virtual Machine in VirtualBox as per example below. under VirtualBox

Installing GNS3 v0.8.2 on


Ubuntu 12.04

802.1Q VLAN trunk in Linux


Ce site utilise des cookies provenant de Google afin de
fournir ses services, personnaliser les annonces et analyser
Add Loopbacks in Ubuntu
le trafic. Les informations relatives votre utilisation du site for GNS3
sont partages avec Google. En acceptant ce site, vous
acceptez l'utilisation des cookies. Add hosts in GNS3 using
VPCS on Ubuntu
EN SAVOIR PLUS OK !

Installing TFTP server in


Linux

Installing GNS3 0.8.3 on


Linux Mint 13 Maya

SSH Tunneling
Use recommended memory size of 256 MB
Measure network
performance with Iperf/JPerf

Blog Archive

2011 (12)
2012 (9)
2013 (6)
April 2013 (1)
May 2013 (1)
Installing Mikrotik
RouterOS under
VirtualBox

September 2013 (2)


November 2013 (1)
December 2013 (1)

2014 (8)
2015 (2)

Labels

3G (1)
802.1q (2)
ascii signature (1)
atftpd (1)
bandwidth performance (1)
bc (1)
Bit Allocation (2)
br0 (1)
bridge-utils (1)
cisco 3550 (2)
cisco systems (4)
class-map (1)
command alias (1)
conky (1)
Copper Loop Qualification
(2)
crosstalk interference (2)
DELT (2)

http://myhomelab.blogspot.fr/2013/05/installing-mikrotik-routeros-under-VirtualBox.html 1/7
1/12/2015 My Home Lab: Installing Mikrotik RouterOS under VirtualBox
DHCP client (1)
DHCP Relay Agent. (1)
DHCP server (1)
dmidecode (1)
DMT tool (1)
DSL (2)
Dynamic Port Forwarding
(1)
Dynamips (3)
error 206-unable to create
(3)
ethtool (1)
GNS3 (9)
HLIN (1)
HLOG (1)
HUAWEI E220 (1)
Size of Virtual drive can be 512 MB
IEEE 802.1ad (1)
ipcalc (1)
iperf (3)
Jperf (1)
Juniper (1)
JUNOS (1)
line calculator (1)
Linux (3)
Linux commands (1)
Linux Ethernet NIO (1)
Linux Mint (7)
linux secrets (1)
Local Port Forward (1)
lshw (1)
Mikrotik (4)
netstat (1)
network performance (1)
network simulation (4)
noise (1)
open source (2)
policy-map (1)
qemu (1)
QinQ (1)
QLN (1)
QoS Policing (1)
Remote Access (1)
Remote Console (1)
Remote Port Forward (1)
RouterOS (4)
scp (1)
SELT (2)
service-map (1)
sipcalc (1)
The trick here is to move the existing just created VDI image (under SATA) to IDE and load the ISO file as well. See below the SMS (1)
steps and screenshots in detail. SNR (1)
Sony Ericsson XPERIA X8 (1)
1. Go to the VM just created and Storage -> Controllers: SATA
source code (1)
2. Click on the *.vdi file and on your right and under Information note the Location of the file.
space invader (1)
3. Remove the *.vdi attached under SATA. SPAN (1)
4. Then go to Storage -> Controllers: IDE and add a new Hard Disk ( right icon) and choose existing Disk. Spectral Analysis (2)
5. Go to the Location you noted above and load the VDI image. ssh (2)
6. Go to Storage -> Controllers: IDE -> Empty and from the Attributes on the right load the RouterOS ISO . sshfs (1)
ssh tuneling (1)
system monitoring (1)
The screenshots below can assist you to follow the steps above.
tap0 (1)
TFTP (2)
tftpboot (2)
tftpd (1)
throughput (1)
tunctl (1)
Ubuntu (3)
Ubuntu loopbacks (1)
Ubuntu release (1)
Ubuntu version (1)
uml-utilities (1)
vboxnet (1)
vconfig (1)
VirtualBox (5)
Virtualbox host-only
adapters (1)
Virtual PC Simulator (1)
VLAN (1)
Goto Storage Tree, SATA controller VPCS (1)

http://myhomelab.blogspot.fr/2013/05/installing-mikrotik-routeros-under-VirtualBox.html 2/7
1/12/2015 My Home Lab: Installing Mikrotik RouterOS under VirtualBox
vsFTPd (1)
Wireless throughput (2)
xDSL Qualification (1)
X Forwarding (1)
xinetd (1)

Other Links

ccie4u
Ubuntu Linux Help
Linuxconfig.org
Linux Screw
Linux Home Networking
nixCraft
Techsource
Linuxtopia
Linux Networking
UbuntuCy
Franks corner
CyStreets

Follow by Email

Email address... Submit

Followers

Join this site


with Google Friend Connect

Members (5)

Already a member? Sign in

Move the vdi image from S ATA to IDE

Load the RouterOS IS O on the CD

Start the virtual machine just created and Install the basic modules.

http://myhomelab.blogspot.fr/2013/05/installing-mikrotik-routeros-under-VirtualBox.html 3/7
1/12/2015 My Home Lab: Installing Mikrotik RouterOS under VirtualBox

Remove the ISO image and start RouterOS virtual machine

Another trick you can do , if you need more devices for temporary testing, is to create a master virtual machine. Then create
full clones of that machine. Never start the master machine so that remaining time does not change.

Few more tips:


Use VBoxHeadless and Remote Desktop
First you make sure that you have enabled the server on Remote Display. Default port is 3389.

Close VirtualBox and start the RouterOS VM needed from CLI, then access it using Remote desktop. Example :

$ VBoxManage startvm "Mikrotik-RouterOS-1" --type headless

http://myhomelab.blogspot.fr/2013/05/installing-mikrotik-routeros-under-VirtualBox.html 4/7
1/12/2015 My Home Lab: Installing Mikrotik RouterOS under VirtualBox

$ rdesktop 127.0.0.1

Or start the VM from VirtualBox

Use the fully cloned VM and start the machine .


Now you can use CLI to enter any commands .

Try the following commands to see the MAC and enable dhcp client on ether1 port.

interface ethernet print


ip dhcp-client add interface=ether1 disabled=no

Or you can install winbox under Linux using WINE. Make sure you have correct permissions (see below)

$ ls -al winbox.exe
-rwxr-xr-x 1 stelios stelios 114176 Jun 11 2013 winbox.exe

$ wine winbox.exe

And search for the RouterOS (under VirtualBox) MAC address (shown above)

http://myhomelab.blogspot.fr/2013/05/installing-mikrotik-routeros-under-VirtualBox.html 5/7
1/12/2015 My Home Lab: Installing Mikrotik RouterOS under VirtualBox

Also, once you have an IP address on the mikrotik you can use a browser too.

Check also my next post Basic RouterOS under VirtualBox .


More posts will follow with Advance setup of RouterOS

Pos ted by S telios Agapiou at 9:37 AM +4 Recommend this on Google

Labels : Mikrotik, RouterOS , VirtualBox

12 comments:
Nash M S said...
Hi.. how to use winbox with this virtualbox?
September 19, 2013 at 3:27 AM

Nash M S said...
and .. how to access using browser?
September 19, 2013 at 4:14 AM

Stelios Agapiou said...


Hi Nash,
I updated this post with steps on how to access with winbox as well as using a browser.
September 23, 2013 at 11:32 PM

Parbat Devakota said...


plz can u post video this configuration?
January 8, 2014 at 1:18 PM

Stelios Agapiou said...


Hi Parbat,
sorry I don't have a video.
January 12, 2014 at 10:33 AM

Rmd said...
Hi Nash,
Complete noob here. How do I get winbox to work in the virtual machine?
February 24, 2014 at 6:32 PM

Stelios Agapiou said...

http://myhomelab.blogspot.fr/2013/05/installing-mikrotik-routeros-under-VirtualBox.html 6/7
1/12/2015 My Home Lab: Installing Mikrotik RouterOS under VirtualBox
Hi Rmd,

Why would you need to install winbox in the Virtual Machine(VM)?

If you mean the same VM that you have RouterOS then there is no reason.
If you mean another VM instance and I suppose you would have Windows, then it is easy. Create another Virtual
Machine and install Windows. While you are in windows install winbox.
Then while you have both VMs (RouterOS, windows) running, start Winbox. Have not tried it my self but it should
work.

BTW I updated my post and I clarify that you can install winbox in the host machine ( Linux). Just download
winbox.exe (from Mikrotik side http://download2.mikrotik.com/winbox.exe) and run it using WINE , see below the
command (make sure you have correct permissions)
$ wine winbox.exe
February 24, 2014 at 9:54 PM

Nash M S said...
Try execute "ipconfig /all"

The virtualbox will give you this ip 192.168.56.1 to access.


February 25, 2014 at 4:07 AM

gio chumbo said...


pass and login
write please
February 9, 2015 at 7:51 PM

Stelios Agapiou said...


Hi Gio,
If you are asking about the username and password for the Mikrotik then you can use what ever you want.
See their website for default credentials - http://wiki.mikrotik.com/wiki/Manual:First_time_startup
February 9, 2015 at 8:06 PM

gio chumbo said...


thanks
February 9, 2015 at 9:39 PM

Oghenetega Osalor said...


nice work! its been very helpful.
July 20, 2015 at 12:40 AM

Post a Comment

Newer Post Home Older Post

Subscribe to: Post Comments (Atom)

Simple template. Template images by enot-poloskun. Powered by Blogger.

http://myhomelab.blogspot.fr/2013/05/installing-mikrotik-routeros-under-VirtualBox.html 7/7

You might also like