Juniper Olive Gns3
Olive reloaded or how to emulate Juniper routers - is about installing Junos using Qemu. Please read carefully as it contains important information. Preparing VirtualBox and FreeBSD for Juniper Olive - this is excellent tutorial about installing Junos on VirtualBox Junos Install in QEMU for GNS3 - Check this great video tutorial. In the GNS3 console, drag JunOS Olive router in the work view area. Right-click JunOS Olive and select Configure to configure it. On the Node Properties dialog box, select the Network tab, and set the number of adapters as per your requirement. Select the Allow GNS3 to use any configured VirtualBox adapter check box and click OK.
- Olive reloaded or how to emulate Juniper routers - is about installing Junos using Qemu. Please read carefully as it contains important information.
- Preparing VirtualBox and FreeBSD for Juniper Olive - this is excellent tutorial about installing Junos on VirtualBox
- Junos Install in QEMU for GNS3 - Check this greatvideo tutorial
What is necessary to have before actual installation of Junos begins:
- GNS3 v0.8.3.1 all in one download here
- VirtualBox 4.2.8 for Windows hosts x86/amd64
- FreeBSD 6.4 6.4-RELEASE-i386-disc1.iso
- Junos-Olive 10.1 - find it yourself, don't ask for it
Answer is simple - In few words - Junos OS is based on FreeBSD kernel.
OK, Hope you've got everything.
It is better to have 'GNS3 all in one' package installed as it provides you with all necessary software components. VirtualBox 4.2.8 is the latest version available and is proven to work with all other software including my Widows 7.
FreeBSD 6.4 - try using this one. you'll need disc1 only. I spent lots of time trying to install Junos on top of FreeBSD mini install 4.1 used for Qemu installation. It doesn't work, do not repeat my mistake! Any Junos ver 10 and over should be OK for studies. I didn't find information about any problems with installation of more recent releases.
1. Install GNS3 all in one package. It is straight forward process described in many tutorials and videos available on internet.
2. Install Oracle VM VirtualBox. If you have any questions watch this video:
3. Prepare Junos CD ISO image.
Use any CD/DVD burning software and make IS0 CD image containing Junos OS package.
4. Run VitualBox application and create NEW VM instance.
Name - FreeBSD - for example; Type - BSD, Version -FreeBSD
NEXT --> Memory Size 512MB; NEXT --> Create a Virtual Hard Drive now;
Create --> VDI; NEXT --> Dynamically Allocated; NEXT --> File Location - better to change to
some easily accessible folder - C:VMFreeBSD for example; Size - 6GB; CREATE.
5. Modify settings for FreeBSD Instance.
SETTINGS -- System -- Motherboard; Modify Boot Order settings: by disabling Floppy and
moving CD/DVD-ROM down.
System -- Processor Tab --> Check Enable PAE/NX box. Leave default values for other options for now.
Note that you can limit CPU resources dedicated to single instance here.
Storage -- Choose CD/DVD in Storage Tree -- Click on CD Icon in Attributes Area and select FreeBSD ISO Image.
Serial Ports -- Port 1 -- Check Enable Serial Port, Port Number - Com1, Port Mode - Disconnected.
Close VirtualBox Application.
6. Configure GNS3 for VirtualBox
I hope you have already played a bit with GNS3 and checked that Dynamips is running.
So now cancel all dialogs appearing after GNS3 start up and go Edit - Preferences -VirtualBox and
press Test Settings button. result has look like one on picture:
Click VirtualBox Guest Tab
Set Identifier Name; Select FreeBSD Instance from drop down list.
Set Number of NICs to 6
and check Console Support Check box.
Click OK Button.
Drag VirtualBox Guest Icon from Node Types Window to the Topology Design area
and select FreeBSD Instance for guest.
Right click on created Virtualbox FreeBSD Guest and select Start.
Virtualbox window should pop up where you can see FreeBSD boot process.
I'm way too laze to rewrite excellent tutorial which is already posted.
Juniper Olive RouterPlease simply follow FreeBSD InstallSection there.
The only difference - please use Standard Installation type - no Boot Manager.
Pay special attention to slices creation process.
I was using following sizes for file systems:
ad0s1a 1024M /
ad0s1b 1024M swap
ad0s1d 10M /spacer
ad0s1e 128M /config
ad0a1f (All space remaining) /var
Don't miss Spacer slice as it is important.
Answer all questions NO at the end of FreeBSD installation process.
7. Junos Olive Installation.
When FreeBSD reboots to root prompt go to menu on top of VM window
Click Devices --> CD/DVD Devices --> Choose a virtual CD/DVD disk file -->
'jinstall10.1' in my case.
# mount /cdrom
# mount -- gives you a table of mounted filesystems. Check if /cdrom is mounted.
/dev/acd0 on /cdrom
# cd /var/tmp
# mkdir jinstall
# cd jinstall
Juniper Olive Vmware Image
# tar zxvf /cdrom/jinstall101.tgz <- your file name would be different.
# mkdir pkgtools
# cd pkgtools
# tar zxvf ../pkgtools.tgz
# cd bin
# cp /usr/bin/true checkpic
# cd ..
# tar zcvf ../pkgtools.tgz *
# cd ..
# rm -rf pkgtools
# tar zcvf ../jinstall101.tgz *
# cd ..
# rm -rf jinstall
# pkg_add -f jinstall101.tgz
You can use unix commands like ll, pwd, df -h during the installation.
Reboot FreeBSD when installation is complete with 'reboot' command.
Right after Virtualbox instance starts to reboot - right click on FreeBSD icon in GNS3 and open console.
Using console you can follow all the boot process. All boot information is redirected now to console device.
Here what we have at the end:
8. Some more tweaking
Log into Junos with root and issue 'cli' command, then shut system down with 'request system halt'.
Wait until it stops and then stop instance in GNS3.
Open Virtualbox Guest configuration and make changes as it shown on picture below:
We are done!
Now you can clone this Junos Virtual Machine in VirtualBox application and create as many instances as you want (or your PC can handle) but first click Settings Button in Virtualbox click Storage --> CD Room icon in Storage Tree Area --> CD Icon in Attributes and Remove Disk from Virtual Drive. When cloning rename Instance and check Reinitialize The MAC Address of all network cards check box. Choose Full Clone. For cloned Image you can set 256MB Base Memory. Do not forget to configure newly created instances in GNS3 so they will be ready for placement into GNS3 topology.
Good Luck with studies!