JunOS network operating system is a product routing, switching, and security belongs to Juniper Network. Olive is the term of the emulator JUNOS. Here are the stages of manufacture of Olive in Windows XP.
Requirements :
- FTP server for windows. e.g Quick'n Easy FTP Server
- Virtual Machine for windows. e.g VMware Workstation
- Unix FreeBSD. e.g 4.11
- Juniper M series image router (Jinstall domestic signed tgz ) => you need to have a valid contract with Juniper. Note: I'm using jinstall-10.4R4.5-domestic-signed.tgz
Installation FreeBSD on VMware Workstation
- Preparation Steps
- VMware Workstation:
- - Create a New Virtual Machine.
- - Select FreeBSD ISO image.
- - Make sure your HDD not less than 8GB
- - For the memory capasity set initially value to 1024MB.
- Installation Steps
- - Boot image FreeBSD on VMware
- - Skip Kernel
- - Choose the standart installation
- - FDISK Partition, press A "Use Entire Disk" , next press Q "Finish"
- - Install standard MBR
- - FreeBSD Disklabel Editor, press C (making the partition):
- 512 MB ---> /partition
- 1024 MB ---> swap
- 128 MB ---> /config
- All space remaining ---> /var
- - Choose Distribution Menu, select "user " --> Enter
- - Select "No" for FreeBSD Port
- - Exit or Press "X"
- - Select "No" for all confirmation questions. (Ethernet/SLIP config, gateway, inetd, FTP, NFS, security, console, linux compatibility, set time, etc)
- - Press "X" to exit menu
- - Select "No" for browse package collection and initial user user account
- - Input password root
- - Select "No" for the remaining question that appear
- - Select X exit
- - reboot
Upload / Transfer "Jinstall.tgz" from Windows (PC) to Virtual Machnine (VMware) using FTP
- Preparation on VMware
- - Configure Network Adapter
- - Select Custom
- - Select VMnet1 (Host-only)
- IP Address Settings
- On Windows
- - Control panel --> VMware Network Adapter VMnet1 (Host-only) --> 202.100.100.1
- Quick' n Easy FTP Server Settings
- - Add New User and password
- - Browse path to Jinstall.tgz file directory (Check list all permissions)
- - Select Show Configuration
- - Set "IP Address" on drop down menu ( make sure you are using the same IP address as VMnet1) --> in this case 202.100.100.1
- Checking Connectivity
- - Ping 202.100.100.2 from windows
- - Ping 202.100.100.1 from FreeBSD
- Upload / Transfer Process
- - Click "start" on Quick' n Easy FTP Server
- - Login to FreeBSD using root account and password you have created
- - # cd /var/tmp
- - # ftp 202.100.100.1
- - ftp> binary
- - ftp> get jinstall.tgz
- - ftp> exit
"Jinstall.tgz" (version 10.4R4.5) Installation Process
- Unpack installer and remove hash file
- - # cd /var/tmp
- - # mkdir jinst
- - # cd jinst
- - # tar xvzf ../jinstall-10.4R4.5-domestic-signed.tgz
- - # rm *.md5 *.sha1 *.sig
- - # vi ./+INSTALL
- Modify +INSTALL as following :
- check_arch_compatibility()
- {
- #re_name=`/sbin/sysctl -n hw.re.name 2>/dev/null`
- re_name='olive'
- if [ -z "$re_name" ]; then
- Error "hw.re.name sysctl not supported."
- fi
- Unpack Installer
- - # mkdir domestic
- - # cd domestic/
- - # tar xvzf ../jinstall-10.4R1.9-domestic.tgz
- - Open +INSTALL and +REQUIRE using vi editor
- - Modify both files as following :
- check_arch_compatibility()
- {
- #re_name=`/sbin/sysctl -n hw.re.name 2>/dev/null`
- re_name='olive'
- if [ -z "$re_name" ]; then
- Error "hw.re.name sysctl not supported."
- fi
- - # mkdir pkgtools
- - # cd pkgtools/
- - # tar xvzf ../pkgtools.tgz
- - # cp /usr/bin/true bin/checkpic
- Repackage Installer
- - # tar cvzf ../pkgtools.tgz *
- - # cd ..
- - # rm -rf pkgtools
- - # tar cvzf ../jinstall-10.4R1.9-domestic.tgz *
- - # cd ..
- - # rm -rf domestic
- - # tar cvzf ../jinstall-10.4R1.9-domestic-signed.tgz *
- - # cd ..
- - # rm -rf jinst
- Package Installation
- - # pkg_add jinstall-10.4R1.9-domestic-signed.tgz
- Adding jinstall...
- sysctl: unknown oid 'hw.product.model'
- sysctl: unknown oid 'hw.re.model'
- sysctl: unknown oid 'hw.re.model'
- sysctl: unknown oid 'hw.re.model'
- WARNING: This package will load JUNOS 10.4R4.5 software.
- WARNING: It will save JUNOS configuration files, and SSH keys
- WARNING: (if configured), but erase all other files and information
- WARNING: stored on this machine. It will attempt to preserve dumps
- WARNING: and log files, but this can not be guaranteed. This is the
- WARNING: pre-installation stage and all the software is loaded when
- WARNING: you reboot the system.
- Saving the config files ...
- Installing the bootstrap installer ...
- WARNING: A REBOOT IS REQUIRED TO LOAD THIS SOFTWARE CORRECTLY. Use the
- WARNING: 'request system reboot' command when software installation is
- WARNING: complete. To abort the installation, do not reboot your system,
- WARNING: instead use the 'request system software delete jinstall'
- WARNING: command as soon as this operation completes.
- Editing Boot loader
- - # chmod +w /boot/loader.conf
- - # vi /boot/loader.conf
- Note :
- Add script on the file as following :
- console="vidconsole".
- - Reboot system
Starting JUNOS
- % cli
- > configure













