Tuesday, 29 March 2011

Junos on GNS3 (Part3-Put it on GNS3)

FINAL IMPORTANT SETP
Junos Installation ကိုျမင္ရရန္ Putty ကိုအဆင္သင့္ျပင္ရမည္…
Browse > juniperinstallation.txt (save)

Get Ready Session (Note***: ေအာက္ပါ command ကို run ၿပီးမွ Open လုပ္ပါ။)
C:\juniper\Qemu> qemu -L . -m 512 -hda junos-binary.img -serial telnet:127.0.0.1:1001,server,nowait,nodelay –localtime


Installation ၿပီးလ်ွင္(ကလိၾကည့္ပါ) putty ကိုပိတ္ပါ။ Prompt တြင္ Ctrl+Alt+2 ကိုနွိပ္ပါ… ၿပီးလ်ွင္ q နွိပ္ၿပီးထြက္ေလာ့။ GNS3 အတြက္ JUNOS ready ျဖစ္လတံ့။

Steps to Adding Juniper Routers in GNS3
1. QEMU Folder ထဲတြင္ရွိေသာ junos-binary.img ကို Folder အျပင္သို႔ copy လုပ္ပါ။
2. junos1.img ပာု ျပင္ပါ… (juniper router 2 လံုးသံုးလိုက junos2.img ကိုထပ္လုပ္ရမည္။)
3. GNS3 ကိုဖြင့္ပါ… Juniper router ကိုယူၿပီး right-click > configuration ကိုနွိပ္ပါ။
4. JunOs image တြင္ junos1.img ရွိရာလမ္းကိုထည့္ေပးပါ။ (eg: C:\juniper\juniper1.img)
5. OK!!! Run ၿပီး right-click > console (putty) နွင့္စတင္ ကလိနုိင္ၿပီျဖစ္သည္။
-THE END-
29/3/2011 

Junos on GNS3 (Part2- JunOs in Womb)

Steps to Install Junos on BSD OS
1. Download လုပ္ထားေသာ Junos part သံုးခုကို အရင္ Join ရပါမည္။ Hjsplit.exe ကို run ပါ။ Join ကို ေရႊးၿပီး input file အတြက္ part1 (xxx.001) ကိုေရႊးၿပီးေနာက္ Start လုပ္ပါ။ part2, part3 တို႕နွင့္ Auto Join သြားမည္။ jinstall-10.1R1.8-domestic-olive.tgz အမည္နွင့္ file ၁ခု ေပၚလာမည္။
Note***: Join မည့္ file အားလံုး directory ၁ခုတည္းတြင္ရွိရန္ လိုသည္။
2. Free ISO Creator ျဖင့္ junos.iso ထုပ္ရပါမည္။ Creator ကို install လုပ္ၿပီး run ပါ။ Add file ျဖင့္ Join ၿပီးသား file ကို junos.iso အမည္နွင့္ convert လုပ္ပါ။
3. ရရွိလာေသာ junos.iso ကို Qemu folder ထဲသို႔ထည့္ပါ။
4. junos-binary.img နွင့္ junos.iso ကို CD ကဲ့သို႔ boot လုပ္ရန္ ေအာက္ပါ command ကို run ပါ။ C:\juniper\Qemu> qemu -m 256 -hda junos-binary.img -cdrom junos.iso
5. Login: root & Password: <????>

Steps to Untar Signed Junos Image in Iso
#mount /cdrom
#cd /var/tmp
#mkdir junos
#cd junos
#tar zxvf /cdrom/jinstall-10.1R1.8-domestic-olive.tgz (စိတ္ရွည္ပါ ၾကာတတ္သည္။ Depend on Sys Conf:)

Then Untar the Unsigned Image
#mkdir jinst
#cd jinst
#tar zxvf ../jbundle-10.1R1.8-domestic.tgz (စိတ္ရွည္ပါ။)
#cd..

Extract the pkgtools.tgz File and Replace the Checkpic Binary Inside With /usr/bin/true
#mkdir pkgtools
#cd pkgtools
#tar zxvf ../pkgtools.tgz
#cd bin
#cp /usr/bin/true ./checkpic
#cd ..

Create Tar for pkgtools then remove the directory
#tar zcvf ../pkgtools.tgz *
#cd ..
#rm -rf pkgtools

Create Tar for the New jinstall Package With Modified checkpic
#tar zcvf /var/tmp/juniper.tgz * (ၾကာသည္။)

Then Install the New jinstall with BSD pkg_add Tool
#pkg_add -f /var/tmp/juniper.tgz (အလြန္ၾကာသည္။)
……….  ……….  ……….
Reboot လုပ္ၿပီး Installation ဆက္လုပ္ရန္ေမးလ်ွင္ #init 6 ပာုရိုက္ပါ။
Reboot ၿပီးလ်ွင္ Qemu ကိုပိတ္ပါ။

--------------------------------------
29/3/2011

Junos on GNS3 (Part1-BSD Installation)

လိုအပ္ေသာ File မ်ား (File အားလံုးကို C:\Juniper folder create လုပ္ၿပီး သိမ္းပါ)
1. Junos part1, part2, part3
2. BSD OS part1, part2, part3
3. HJsplit
4. ISO Creator
5. QEMU
6. Putty

Initial Configuration Steps to Install BSD as Virtual Machine
1. qemu-0.11.0.patched.win32.zip ကို Extract လုပ္ေပးရပါမယ္ (Qemu အမည္နွင္ၤ့ Folder တစ္ခု ေပၚလာပါမည္။
2. ရရွိလာေသာ Qemu Folder ထဲသို႕ 4.11-RELEASE-i386-miniinst.iso ကိုထည့္ပါ။
3. Junos Binary Image ျပဳလုပ္ရန္ ေအာက္ပါ Command ကို Command Line မွ Run ပါ။ C:\juniper\Qemu> qemu-img.exe create junos-binary.img -f qcow2 8G

4. ထို႔ေနာက္ junos-binary အမည္နွင္ၤ့ Image File (Max space of 8GB) တစ္ခု Qemu ထဲတြင္ရရွိလာမည္။
5. BSD OS ကို CD ကဲ့သို႔ Insert လုပ္ရန္ ေဖာ္ျပထားေသာ Command ကို Run ရပါမည္။ C:\juniper\Qemu> qemu -m 256 -hda junos-binary.img -cdrom 4.11-RELEASE-i386-miniinst.iso
6. Skip Kernal configuration and continue with installation ကိုေရြးပါ။
7. Installation စရန္ EXPRESS Installation ကိုေရြးပါ။ ထို႔ေနာက္ A နွင့္ Q ကို နိွပ္ပါ။ ၿပီးေနာက္ STANDARD Installation ကိုေရြးပါ။

Partition ခြဲျခင္း
1. C ကိုနိွပ္ပါ size ကို 2048M ထားၿပီး OK နွိပ္ပါ။ ထို႔ေနာက္ FS ကိုေရႊးၿပီး mount point အတြက္ / ကိုထားပါ။
 2. C ကိုနိွပ္ပါ size ကို 1024M ထားၿပီး OK နွိပ္ပါ။ ထို႔ေနာက္ Swap ကိုေရႊးပါ။
3. C ကိုနိွပ္ပါ size ကို 100M ထားၿပီး OK နွိပ္ပါ။ ထို႔ေနာက္ FS ကိုေရႊးၿပီး mount point တြင္္ /config ကိုထားပါ။
4. C ကိုနိွပ္ပါ က်န္ရွိေသာ Space ကို FS mount point /var အတြက္ ထားပါ။
5. Q ကိုိုနိွပ္ၿပီး ထြက္ပါ။

Starting BSD Installation
1. Option 8 [User] ကို Select လုပ္ပါ။ Port collection အတြက္ NO ကိုေရႊးပါ။  -EXIT-
2. Installation Media အတြက္ 1. CD/DVD ကိုေရႊးပါ။
3. User Confirmation Request တြင္ YES ကိုေရႊးၿပီးေနာက္ Installation စပါမည္။
4. Installation အၿပီးတြင္ ေနာက ္ ၁ႀကိမ္ User Confirmation Request အတြက္ YES ကိုထပ္ေရႊးပါ။
5. Root Password ေပးပါ။ ~~EXIT~~CLOSE~~
--- BSD Installation ၿပီးေလသတည္း။---
29/3/2011