Hi everyone !
Today I will show you how to create MikroTik image file for GNS3. In this tutorial I show you only the way to create MikroTik image file. To run this image on GNS3 I will show you in the next post. I make it separate because I think it's much easy for you to understand step by step. Please notice that in this tutorial I do on GNS v1.3.0.
The first thing you should do now is to install GNS3. When install GNS3 you should tick to install other application like qemu. Hmm I assume all of you have GNS3 on you PC. So let's start practice step by step together 🙂
1. Download MikroTik x86 iso file from http://www.mikrotik.com/download
2. Go to command line and move to GNS3 folder.
C:\Users\USER>cd C:\Program Files\GNS3\qemu-2.1.0
3. Then run the command to create the image file. Now I create the image file name mikrotik.img. You can create other name as you want.
c:\Program Files\GNS3\qemu-2.1.0>qemu-img.exe create -f qcow2 D:/mikrotik.img 256M
The image file location I recommend you to save it to other drive where you OS install. In this example my OS install on drive C: so I can save my image file to drive D: or drive E:
After run the above command you should see this return message.
Formatting 'D:/mikrotik.img', fmt=qcow2 size=268435456 encryption=off cluster_size=65536 lazy_refcounts=off
4. Install ISO file to the current image, I assume that the ISO file name is “mikrotik-6.28.iso”.
c:\Program Files\GNS3\qemu-2.1.0>qemu-system-i386w.exe "D:/mikrotik.img" -boot d -cdrom "D:\MikroTik\mikrotik-6.28.iso"
When you see this window pop-up you can start install MikroTik. Select the package you want to install by press "space" botton and press "i" to start installation.
Note: if you don't see qemu pop-up, please try to write my command above on cmd your self(Don't copy it).
Ok now let's start test boot our image that we just create.
c:\Program Files\GNS3\qemu-2.1.0>qemu-system-i386w.exe "D:/mikrotik.img" -boot c
If it show like image above, mean our image file is bootable and our task is success 🙂
oOOOP Our task to day is ready and enjoy it with GNS3. Anyway if you're not success, you can post your problem on comment box below.
Sorry for wrong grammar because I'm not a native speaker and I'm not know English much 🙂