Olive Reloaded or How To Emulate Juniper Routers GNS3
Olive Reloaded or How To Emulate Juniper Routers GNS3
Olive Reloaded or How To Emulate Juniper Routers GNS3
http://blog.gns3.net/2009/10/olive-juniper/2/
Technical Blog
Leave a reply
Ads by Google
Juniper Junos
Olive Oil
Per Olive
Olive Trees
Installation
Requirements
JunOS runs on top of FreeBSD. So you need to download the mini installation ISO, version >= 4.5 because
earlier versions dont support the Intel e1000 interface (em driver). Personally, I used the FreeBSD 4.11
mini-inst ISO but you could use FreeBSD 6 or 7.
JunOS itself. If you are smart and patient you will find it. I used jinstall-8.5R1.14-domestic-signed.tgz for my
installations.
Qemu source code. Again, I used Qemu 0.11.0. You can choose to download it later with wget (Ill show you
how).
Download OpenVPN to create TAP interfaces (Windows only, optional).
More stuff whether you compile Qemu on Mac OS X, Windows or Linux.
1 of 7
10/28/2011 10:26 PM
http://blog.gns3.net/2009/10/olive-juniper/2/
2 of 7
10/28/2011 10:26 PM
http://blog.gns3.net/2009/10/olive-juniper/2/
make install
Qemu acceleration
Qemu provides some ways to speed up the emulation, Ill talk about 2 of them: Kqemu and KVM. Kqemu can be
used on both Windows and Linux. KVM is only for Linux. I do not know if something exists for Mac OS X.
For more details about Kqemu, please have a look at the documentation [http://www.qemu.org/kqemu-doc.html]
. For KVM, see the website [http://www.linux-kvm.org/] .
The installation of Kqemu on Windows is relatively easy:
1. Download Kqemu.
2. Unzip it.
3. Locate kqemu.inf and install it (right-click and select Install). In Windows Vista, install Kqemu using the CMD
prompt and this command: rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 kqemu.inf
4. Start Kqemu from the CMD prompt: net start kqemu
Kqemu on Linux (Ubuntu):
1. Install kqemu with: sudo apt-get install kqemu-source
2. If you do not want to use sudo each time you start Qemu, give the permissions to /dev/qemu with the
following command: sudo chmod o+rw /dev/kqemu
For manual installation or other Linux distributions, please see the documentation [http://www.qemu.org
/kqemu-doc.html] .
KVM on Linux:
Qemu requires your kernel version to be >= 2.6.29 to enable the KVM support. You have to ensure this is ok
before you compile Qemu.
Dont forget to add the -kernel-kqemu or -enable-kvm command line options when starting Qemu (I didnt do it
in this tutorial). I would recommend to activate Kqemu only when you have your Olive image ready and
working.
Pages:
3 of 7
10/28/2011 10:26 PM
http://blog.gns3.net/2009/10/olive-juniper/2/
Posted in Juniper
Tags: Dynamips Emulation GNS3 Juniper JunOS Olive Qemu
You can follow any responses to this entry through the RSS 2.0 Feed . You can leave a response , or trackback from your own site.
Tag Cloud
133 comments
Older Comments
HakimK
Ive followed all the instruction but after qemu -m 256 -hda olive-base.img -boot c -localtime -nographic -serial stdio, nothing
happen. No qemu window appear and I only can see stderr and stdout les in the Qemu folder.
stderr notepad shows:
qemu: could not open serial device mon:stdio
stdout notepad shows:
Unable to open driver: stdio
Im trying to install olive in WinXP SP3 with qemu-0.11.0.patched.win32.
did anyone have the same problem as me?
Philip
Hi,
I always encounter this error (ELF Binary Type 0 Not Known). Do I missed something?
Thanks
Brad
Everything went smoothly following the directions exactly a written, till I actually got to pkg_add.
The VM complained about not enough space, saying I needed to change PKG_TMPDIR to a location that had at least 905682568
bytes. I cleaned out les I dont need any more and made sure PKG_TMPDIR was pointing to /var/tmp. After clening out the les I
had 1060060 K bytes free. So that should be enough. But kept getting same error.
4 of 7
10/28/2011 10:26 PM
http://blog.gns3.net/2009/10/olive-juniper/2/
juber
O tried to run scp [email protected]:~/Desktop/jinstall-8.5R1.14-domestic-signed.tgz /var/tmp command but request gets timed out.
I put my PCs hostname instead of user, even i tried with the user i logged in with in my pc but still the request is getting timed out
ssh: connect to host 10.0.2.2 port 22: Operation time out
I wasted my 3 days to resolved this dont know y its not working.
I had put only qemu -m 256 -hda olive-base.img -boot c -localtime command when booting olive image cause when i put qemu -m
256 -hda olive-base.img -boot c -localtime \
-net nic,macaddr=00:aa:00:60:01:01,model=e1000 -net user the qemu doesn start.
Please help guys
arvind
Carlos M
Max
Does anyone running this on a MAC OS X 10.6 know the replacement option for -cdrom in the QEMU command:
qemu -m 256 -hda olive-base.img -cdrom 4.11-RELEASE-i386-miniinst.iso \ -boot d -localtime
/Volumes doesnt work. Using the mount point doesnt work. I had this working on 10.5, but remember -cdrom didnt work.
Any help is appreciated!
Thanks!
Aamir Maqbool
Hi, Ive installed the olive by following the above procedure. However Im facing currently two problems.
1. I configure the Juniper Router in GNS3 and commit changes bye using commit command. But it does not take effect. until unless I
reload all the routers.
2. Im unable to find serial interfaces, ATM interfaces & Sonet interfaces.
Can Anyone provide me the help regarding this.
Cristian Vnd
5 of 7
10/28/2011 10:26 PM
http://blog.gns3.net/2009/10/olive-juniper/2/
then
sfttp [email protected]:jinstall-8.5R1.14-domestic-signed.tgz /var/tmp
from your freebsd VM
Ryan
neor
jomih
Hi to all,
Ive tried to emulate JUNOS in GNS3 without success.
When I use the command qemu -m 256 -hda olive-base.img -boot c -localtime \ -net nic -net tap,ifname=tap0 -net
nic,macaddr=00:aa:00:60:01:01,model=e1000 -net user (in Ubuntu 10.04) and after creating the tap interface with tunctl, I get the
following message:
cant add tap0 to bridge wlan0: operation not supported
Ive tried to do it using the eth0 interface instead of wlan0, but I got the same results.
can anyone tell me whats wrong??
Thanks!!
josem
hi,
once olive is loaded, I configure an ip address for the en0 interface and do a commit but the check-out fails with this message:
vci/vpi/allow-any-vci is required
how is this possible if my interface is en0?
Older Comments
Trackbacks /
Pingbacks
6 of 7
10/28/2011 10:26 PM
http://blog.gns3.net/2009/10/olive-juniper/2/
Leave a Reply
Name (required)
Website
Submit Comment
7 of 7
Back to Top
10/28/2011 10:26 PM