It is currently Fri Jul 20, 2018 1:58 pm


All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: How to run Junos on GNS3 0.7.2?
PostPosted: Sat Sep 11, 2010 8:21 am 
Hi...
I have installed GNS3 0.7.2. Now i want to load Junos IOS in it to practice MPLS. I have downloaded a file "jinstall-9.3R1.7-export-signed.tgz" and unzipped it. There are many folder and files in it. I dont know which file to load in Qemu/Junos. Can anyone guide me please how to run Junos on Gns3 0.7.2 and which file to load in Qemu? I am using Windows Vista x64. Thanks




Top
  
 
 Post subject: Re: How to run Junos on GNS3 0.7.2?
PostPosted: Sat Sep 11, 2010 11:21 am 
Offline

Joined: Mon Nov 10, 2008 10:31 am
Posts: 555
Location: Slovakia
Hi,
you need to create FreeBSD Qemu image with JunOS installed on top of that. This can be tricky specially when have you never done it before.
For more instructions read Juniper How to on GNS3 blog, please:

Quote:
http://blog.gns3.net/2009/10/olive-juniper/


I also created videos during creation my own image. It is for Fedora Linux but idea is same.

Quote:
http://www.gns3.net/phpBB/topic1616.html


Videos are also available for Download here:
Quote:
http://gns3.net/documentation


Good luck,

_________________
Brezular

All my tutorials can be found here:
http://brezular.com


Top
 Profile  
 
 Post subject: Re: How to run Junos on GNS3 0.7.2?
PostPosted: Fri Oct 08, 2010 7:12 am 
Hi brezular,
I have downloaded olive-base.img from other forum which I'm able to run using qemu directly (not using GNS3):

Code:
jqemu.exe -L . -m 256 -hda Olive-base.img -serial telnet::1001,server -localtime -net nic,vlan=1,macaddr=00:aa:00:00:01:01,model=i82559er -net tap,vlan=1,ifname=Tap1

I've viewed your video on how to test connection from Junos1 to Junos2 but currently i'm not able to run 2 routers at the same time in GNS3. I only could run 1 router (Junos1) and when I tried to run the other router (Junos2), qemu window doesn't came up and putty popup for 2-3 seconds and disappear.

Would really appreciate if you could help.


Top
  
 
 Post subject: Re: How to run Junos on GNS3 0.7.2?
PostPosted: Fri Oct 08, 2010 11:28 am 
Offline

Joined: Mon Nov 10, 2008 10:31 am
Posts: 555
Location: Slovakia
Hi,
this is bug that appears in Win OS only (and isn't solved yet):

Quote:
One temporary way to fix the problem is to manually copy the base image in each device directory and rename it FLASH.

Cheers,

_________________
Brezular

All my tutorials can be found here:
http://brezular.com


Top
 Profile  
 
 Post subject: Re: How to run Junos on GNS3 0.7.2?
PostPosted: Sat Oct 09, 2010 3:36 pm 
I've tried to rename the olive-base.img to FLASH.img and load it in GNS3 but it still loading my old img..
btw, thanks for the advise.


Top
  
 
 Post subject: Re: How to run Junos on GNS3 0.7.2?
PostPosted: Sun Oct 10, 2010 6:09 am 
Offline

Joined: Mon Nov 10, 2008 10:31 am
Posts: 555
Location: Slovakia
Hi,
i am not sure if I understand you correctly. Can you run multiple JUNOS instances now?

- When you first start your JUNOS router there is directory created for each router. Each directory contains two files - FLASH and SWAP. They are automatically created with qemu-img utility that is controlled by qemuwrapper script.

router JUNOS1 - direcory JUNOS1 (FLASH, SWAP)
router JUNOS2 - direcory JUNOS2 (FLASH, SWAP)

- FLASH is clone of your olive-base.img. All the configuration changes you make for your particular router are written to FLASH of this router.

Apparently qemu-img utility is source of problem (in Windows OS only) so you need to get out of game (qemu-img not Windows) ;-)
There are two solutions how to do it:

Solutions 1 Start routers and let's qemu-img to create directories with FLASH file. Stop routers and close GNS3. DELETE FLASH from each directory and manually copy olive-base.img to directories. RENAME olive-base.img to FLASH.

Solutions 2 Edit-> Preferences-> Qemu-> JunOS. Create the numbers of junos entries according to number of JUNOS router you plan to use for your topology See the attachment , please.
Uuups, I forget, this option is available only in dev version of GNS3 (not in 0.7.2). You can download devel version from here:

http://www2.gns3.net/

Cheers,


Attachments:
junos-setting.jpeg
junos-setting.jpeg [ 212.84 KiB | Viewed 4707 times ]

_________________
Brezular

All my tutorials can be found here:
http://brezular.com
Top
 Profile  
 
 Post subject: Re: How to run Junos on GNS3 0.7.2?
PostPosted: Mon Nov 22, 2010 9:58 am 
Hi Brezular,


Which file i need to download referring to link that u give. Thanks


Top
  
 
 Post subject: Re: How to run Junos on GNS3 0.7.2?
PostPosted: Fri Nov 26, 2010 3:59 pm 
I'm also running into this issue of being unable to run multiple JunOS images. I've read several posts about some workarounds, but there's a caveat: this works exactly how I would expect it to on my Windows 7 (enterprise) OS. That is, I have an image stored in some directory, and the FLASH & SWAP files are correctly created for each JUNOS instance I add to the scene.

I just ran 6 copies of the JunOS image by only adding Juniper devices to the scene, and I did not have to copy the image to the JUNOS# temp dir and rename it FLASH.

So on my windows Vista OS, this doesn't work correctly. I have the same version of qemu on the Vista box. The only difference might be that I compiled qemu on the Windows 7 machine and then just copied the binary files over to the Vista machine. Qemu apppears to be working correctly, because I can start a JunOS box and kqemu doesn't cause it to blow up.

I'm thoroughly perplexed about what might be different that it works on Windows 7 and not on Vista (yes, I realize that there are significant differences in the OS, but is that the root cause?)


Top
  
 
 Post subject: Re: How to run Junos on GNS3 0.7.2?
PostPosted: Sun Nov 28, 2010 6:31 am 
I found the answer, or at least AN answer, to the problem of being unable to load muliple juniper images. If you make the base image read-only in windows, qemu is apparently smart enough to know that it doesn't have to lock up the file for other programs, which includes other qemu instances.

So, after I made my olive-base.img file read only, my GNS3 universe was harmonious again.

By the way, this also works for the qemu-host images (linux-micorcore/tinycore), so that's cool.
Thanks!




Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO