Community discussions

MikroTik App
 
lz1dsb
Member Candidate
Member Candidate
Topic Author
Posts: 226
Joined: Wed Aug 07, 2013 11:48 am

Qemu RouterOS image in GNS3

Sat Jul 05, 2014 11:19 pm

Here's the situation. i was able to create an qemu image of RouterOS and I successfully started it in GNS3. Connecting it to other routers works, and it's amazing that I can simulate different vendors on one common platform where I can interconnect the way I like.

My question is more or less about... licencing.
As you all know, there are licences. I've never used them, because the MikroTik router's I've used - they come with a preinstalled licenses.
And because the demo license is for 24 hours and I'll need a lot of simulation hours, I think it would be more practical to install a licence on my quemu image.
I realized though that I have a L4 license that I earned with my MTCNA, and I can use it. As I'm not quite experienced with quemu in GNS3 I was wondering - do I have to configure different licences on every device I use in my topology? My understanding is that I don't have to, as all of the virtual RouterOS devices in my GNS3 topology will use the same quemu image. Is that correct?
 
lz1dsb
Member Candidate
Member Candidate
Topic Author
Posts: 226
Joined: Wed Aug 07, 2013 11:48 am

Re: Qemu RouterOS image in GNS3

Wed Jul 16, 2014 6:41 pm

I just wanted to post what was my experience so far.
1. Creating a QEMU image of RouterOS turned out to be quite an easy task. I followed the description in mum.mikrotik.com/presentations/ID13/rofiq.pdf
2. Putting the RouterOS image in GNS3 is also a matter of setting a path to the QEMU image and setting some parameters. it's great that I could put as many interfaces I need.
3. Licensing of the image also works. I just tested it.

What I still haven't figured out yet is how to keep the license. Every time I create a new topology I have to enter the license...

Other than that - it all works great ;)
 
leonset
Member Candidate
Member Candidate
Posts: 256
Joined: Wed Apr 01, 2009 9:09 pm

Re: Qemu RouterOS image in GNS3

Mon Sep 22, 2014 3:10 pm

Hello!

I'm planning on using GNS3 too but I'm not sure if I understood this statement:
Every time I create a new topology I have to enter the license...
Does that means that every time you power up a qemu VM you have to put the license?
Or every time you add a qemu VM to a proyect and start it for the first time you have to put the license?

Thanks!
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: Qemu RouterOS image in GNS3

Mon Sep 22, 2014 4:22 pm

The license is attached to the HDD, so every time you create a new HDD (Qemu or not...), you'd need a different license.

AFAIK, you could copy the Qemu HDD, and thus run several routers using a single license. I haven't actually tried doing that though (as I don't have a spare license to potentially sacrifice).
 
leonset
Member Candidate
Member Candidate
Posts: 256
Joined: Wed Apr 01, 2009 9:09 pm

Re: Qemu RouterOS image in GNS3

Tue Sep 23, 2014 9:48 am

I already knew that HD/lincense relation, but thanks for the clarification regarding QEMU.
I haven't actually tried doing that though (as I don't have a spare license to potentially sacrifice).
Thats why it would be very nice if OP could update us with his experience :) The problem is that I need to test different squemes with lot's of devices and it becomes impractical to use routerboars, connect them, etc.

Thanks!
 
Zorro
Long time Member
Long time Member
Posts: 675
Joined: Wed Apr 16, 2014 2:43 pm

Re: Qemu RouterOS image in GNS3

Tue Sep 23, 2014 2:46 pm

bunch of cheap L2/L3 lincenses, bough "with discount" ? :) as solution.
QEMU was cool. just lack of management tools, imo.
hardly can say same about majority of his TiVo-ized forks, sadly.
 
lz1dsb
Member Candidate
Member Candidate
Topic Author
Posts: 226
Joined: Wed Aug 07, 2013 11:48 am

Re: Qemu RouterOS image in GNS3

Wed Jan 14, 2015 10:37 pm

Sorry guys, I've just seen that you've replied... several months later :D
Well, I'm using a single license. It's exactly like this, I have created one QUEMU HDD and I've generated a license for it. The first time I've even put the wrong system ID, so I had to generate the license once again.
Anyway - this does work, you only need one license.
 
leonset
Member Candidate
Member Candidate
Posts: 256
Joined: Wed Apr 01, 2009 9:09 pm

Re: Qemu RouterOS image in GNS3

Thu Jan 15, 2015 11:35 am

Hello!

Yes, I can use only one license too... I should have updated this thread before!

Thank you!
 
lz1dsb
Member Candidate
Member Candidate
Topic Author
Posts: 226
Joined: Wed Aug 07, 2013 11:48 am

Re: Qemu RouterOS image in GNS3

Sun Jan 18, 2015 12:06 pm

I haven't mentioned one thing though... I still haven't found a way to overcome it. Each time I start the topology - I have to manually enter the configuration, it's not saved in GNS3.
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: Qemu RouterOS image in GNS3

Sun Jan 18, 2015 2:20 pm

Have you tried gracefully shutting down the router by issuing "/system shutdown" from it, and then do "Stop" only after the shutdown has already happened?
 
lz1dsb
Member Candidate
Member Candidate
Topic Author
Posts: 226
Joined: Wed Aug 07, 2013 11:48 am

Re: Qemu RouterOS image in GNS3

Mon Jan 19, 2015 6:47 pm

I did. But I think there's probably something not entirely correct with the way I build the topology in GNS3.
I read somewhere that there's an additional option ot set, in order to have the configuration saved for the QUEMU hosts. Hopefully I'll find the time these days to play around with it. It's a big advantage to have a kind of a "test lab" where one can test some nasty configs, before executing them in a production network :)
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: Qemu RouterOS image in GNS3

Mon Jan 19, 2015 9:34 pm

The only remaining problem I can think of is if the HDD file is not writable... I've never even heard of this before (and I use VirtualBox, so I haven't experienced it either...).
 
lz1dsb
Member Candidate
Member Candidate
Topic Author
Posts: 226
Joined: Wed Aug 07, 2013 11:48 am

Re: Qemu RouterOS image in GNS3

Wed Jan 21, 2015 2:20 pm

What do you mean by "not writeable"?

Who is online

Users browsing this forum: haianh, nanobahr and 14 guests