Juniper Lab in GNS3 Video

Sunday, January 9, 2011

Juniper Lab in GNS3

Hi, All

     Juniper LAB in GNS3 Installation video with networking......
              
     Click Here To download ConfigurationVideo
Download all the required software from the Links mentioned below and
keep all in a folder.
(Thanks for all forum related to gns3 juniper discussion)
1. Junos file part1--http://www.4shared.com/file/aw3BfhNQ/jinstall-101R18-domestic-olive.html
    Junos file part2--http://www.4shared.com/file/GG0Fdbik/jinstall-101R18-domestic-olive.html
    Junos file part3--http://www.4shared.com/file/uuzrjuu7/jinstall-101R18-domestic-olive.html

2. BSD OS-- ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/ISO-IMAGES/4.11/4.11-RELEASE-i386-miniinst.iso
3. HJsplit-- http://www.4shared.com/file/W27ckARB/hjsplit.html
4. ISO creator--http://www.4shared.com/file/5sIyV3W0/freeisocreator.html
5.Installation steps--http://www.4shared.com/document/o4D2jryl/Juniper_gns3_steps.html
6. Juniper Router Installation Logs --http://www.4shared.com/document/y0p-TnAu/juniperinstallation.html
7.Qemu --http://www.4shared.com/file/N87Z9Fv4/qemu-0110patchedwin32.html
--------------------------------------------------------------------------------------------- 
Steps for installing BSD OS in qemu:
-----------------------------------------
* Extract qemu-0.11.0.patched.win32.zip and Keep as folder named Qemu.
* Place 4.11-RELEASE-i386-miniinst.iso inside qemu folder.
* To create Junos Binary image apply the below command
     qemu-img.exe create junos-binary.img -f qcow2 8G

* Now junos-binary.img is created with max space of 8Gb.
* To insert BSD OS cd use the below command
     qemu -m 256 -hda junos-binary.img -cdrom 4.11-RELEASE-i386-miniinst.iso
Press ctrl+alt to come out of qemu window.
* choose express installation
* Press A
* Press Q
* Enter Standard installation.

Now partion creation:
------------------------
* press c
Type 2048M select FS mount point /
* Again press c
Type 1024M select swap
* Again press c
Type 100M select FS mount point /config
* Again press c
Selct remaing space selct FS mount point /var

selct Q

* Selct option 8----> Users
for port collection say NO.
then select exit
* select Installation media as CD/DVD
* User confirmation requested press- yes
Installation started..........
* User confirmation requested press- yes
* set the root password
Then Exit...
Now BSD is installed in virtual machine.
---------------------------------------------------------------------------------------------
Steps to install Junos OS in BSD OS:
------------------------------------------
* Use Hjsplit.exe to join all the splitted junos os  file.
* Use freeisocreator.exe to make junos os into iso image so that we can mount like cd and install it
   ,instead of going for ftp to load that file into junos-binary.img
* Place junos.iso inside quemu folder.
* Use below command to boot junos-binary.img with junos.iso as mounted as CD.
    qemu -m 256 -hda junos-binary.img -cdrom junos.iso

Steps to untar the signed junos image in iso :
------------------------------------------------
#mount /cdrom
#cd /var/tmp
#mkdir junos
#cd junos
#tar zxvf /cdrom/jinstall-10.1R1.8-domestic-olive.tgz

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(remove that folder)

Create tar for the new jinstall package with modified checkpic
---------------------------------------------------------------------
#tar zcvf /var/tmp/juniper.tgz *
(Will take more time to zip depend on system config)
Then install the new jinstall with bsd pkg_add tool:
--------------------------------------------------------------------
#pkg_add -f /var/tmp/juniper.tgz

Will take some time to process.......
It will ask to reboot to continue the installation.
#init 6
then after it started reboot just close the qemu.
-------------------------------------------------------------------------------------------------------------
Now put the below command and see the installation of junos
------------------------------------------------------------

qemu -L . -m 512 -hda junos-binary.img -serial telnet:127.0.0.1:1001,server,nowait,nodelay –localtime

* now telnet 127.0.0.1 1001 to see the installation
One installation is finished and prompt is returned press Crtl+Alt+2 then type “q” press enter

Now junos-binary.img is ready for gns3.
-------------------------------------------------------------------------------------------------------------
Steps for adding 2 juniper router in gns3 with external world communication::(GNS3 version 0.7.2)
-------------------------------------------------------------------------------------------------------------
* copy the junos-binary.img separately and rename as juniper1.img
* Again copy junos-binary.img in same folder and rename as juniper2.img
* Open GNS3 and go to Edit-->Preference-->quemu-->junos-->add the juniper1.img then press ok.
* Now drag and drop 2 juniper router in workspace and edit 2nd router config and change binary from   juniper1.img into juniper2.img
* Also drag and drop cloud for local ethernet card integration.


Juniper1-192.168.200.2
Juniper2-192.168.200.1(192.168.1.3-which is in my host NIC card LAN)
Reachablility between all are present Now..

--------------------------------------->I made simple connectivity config and now  run as many as u can and test MPLS and BGP and enjoy.

Once again thanks to gns3 team and all forum related to gns3 juniper discussion.

All the best.

---------------------------------------------------------------------------------------------------------------

70 comments:

  1. I am having trouble with the last part of the installation process, When I add in the last statement,"

    pkg_add -f /var/tmp/juniper.tgz

    I resolve with this error message,
    "pkg_add: find_play_pen: can't find enough temporary space to extract the files, please set your PKG_TMPDIR environment variables to a location with at least 618112016 bytes free"

    How would I resolve this problem?

    ReplyDelete
  2. Looks like free space issue, check available space in your c drive and also the harddisk space of junos as atleast 8GB.Also the drive space where the junos harddisk is created ?

    ReplyDelete
  3. Hi Murali_Rajan,
    Thanks for the wonderful Presentation, Materials and Video, Thanks a lot man

    ReplyDelete
  4. hi murali

    i am having an issue at last steps after adding pkg.. error msg

    missing operating system...

    if u could help me on this

    Thanks

    San

    ReplyDelete
    Replies
    1. I'm having the same issue ... tried it twice but no luck... are you able to figure it out ?

      Delete
  5. Thanks for giving out such a nice video..Can u tell me how u compressed this video of 825MB to 12MB.

    ReplyDelete
  6. Simple 7zip will compress better than rar or zip. But the codec selection is important while recording. Not every video is able to compress as like here. Everything depends on codec selection...

    ReplyDelete
  7. Hi,

    I get as far as creating the img. When I input:
    qemu -L . -m 512 -hda Junos-10-1.img -serial telnet:127.0.0.1:1001,server,nowait,nodelay –localtime

    I get:

    qemu: could not load PC BIOS 'bios.bin'

    Any idea what the problem is?

    Cheers,
    Eamon

    ReplyDelete
  8. hello

    how to fix missing operating system

    Regards

    S.A

    ReplyDelete
  9. Hey Buddy,

    Apart from adding img files in GNS3, do we need to do any other cofig?

    I am getting some error, while connecting to cloud, even routers are not being start, some error is coming like below:

    "Error: could not communicate with qemuwrapper server localhost
    It may have crashed.Check the qemuwrapper server output.
    Exiting..."

    any suggestion in first sight, i am not trying much now, it's too late for me, will check tomoro, if you have any idea , please comment.

    thanks for all your efforts to make this possible for guy like me, who is zero for cli stuff.

    ReplyDelete
  10. me too, I got "missing operating system" after
    qemu -L . -m 512 -hda junos-binary.img -serial telnet:127.0.0.1:1001,server,nowait,nodelay –localtime

    ReplyDelete
  11. Hello,

    I have followed all steps and can telnet into junos and see it install however when I load GNS3 and point to the juniper1 file and bring a juniper router into gns3 I get an error that it couldnt open on port 10525 - I have removed and started again from step 1 and still get the same error once I try loading juniper router into GNS3 - thanks for any suggestions!

    ReplyDelete
  12. It is working fine as per the instructions you have posted. But the booting time is too long... it takes atleast 15 minutes to get booted. Is it normal ?

    ReplyDelete
  13. it is taking long time to boot minimum 15 minutes,, is this the way it works....

    ReplyDelete
  14. I am also getting the missing operating system message. I have followed every direction and I have tried twice and both times I got missing operating system. any ideas why it is doing that and how I can resolve it?

    thanks

    ReplyDelete
  15. while telnet
    error msg
    loading required module 'kernel_mac_support'

    pls advise

    ReplyDelete
  16. Hi Murali,

    Me to having same issue

    pkg_add -f /var/tmp/juniper.tgz

    error message,
    "pkg_add: find_play_pen: can't find enough temporary space to extract the files, please set your PKG_TMPDIR environment variables to a location with at least -1811201621546 bytes free"

    I have around 20 GB free in C drive and i have Qemu in my TB drive

    ReplyDelete
  17. Hi Murali,

    When I ran the boot through putty, I am getting stuck at the below error.

    Please help


    ***** FILE SYSTEM MARKED CLEAN *****
    tunefs: soft updates remains unchanged as disabled
    sed: /etc/mtree/BSD.var.dist: No such file or directory
    touch: /mfs/var/log/messages: No such file or directory
    /packages/mnt/jbase/etc/rc: cannot create /var/etc/rc.ui.defaults.list: No such file or directory
    WARNING: system watchdog timer still running,
    use '/sbin/watchdog -off' to disable
    Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh:

    ReplyDelete
  18. gns3 only let me enter in one router console....

    ReplyDelete
  19. This comment has been removed by the author.

    ReplyDelete
  20. Hello Murali,

    Great Job..

    It seens the video is not working properly.
    Could you please fix it?

    Thanks in advance.

    ReplyDelete
  21. Hi All,
    Thanks Murli for your efforts. I have gone through the steps, but I get issue in the middle, when I type the below command, then I get error message ...

    pkg_add -f /var/tmp/juniper.tgz

    gzip: stdin: invalid compressed data--format violated
    /usr/bin/tar: Unexpected EOF in archive
    /usr/bin/tar: Unexpected EOF in archive
    /usr/bin/tar: Error is not recoverable: existing now
    pkg_add: tar extractof /var/tmp/juniper.tgz failed!
    Pkg_add: unable to extract '/var/tmp/juniper.tgz'!


    Any help to resolve the above issue will be appreciated.

    Many Thanks

    ReplyDelete
  22. Hi Murali,
    Thanks for your efforts. I am following the steps shown above, but I get issue in the middle when I put the command and get error message.

    pkg_add -f /var/tmp/juniper.tgz

    gzip: stdin: invalid compressed data--format violated
    /usr/bin/tar: Unexpected EOR in archive
    /usr/bin/tar: Unexpected EOR in archive
    /usr/bin/tar: Error is not recoverable: existing now
    pkg_add: tar extract of /var/tmp/juniper.tgz failed!
    pkg_add: unable to extract ' /var/tmp/juniper.tgz'!

    Any help to resolve the above issue will be appreciated.

    Many Thanks

    ReplyDelete
  23. Hi dude,

    great post for juniper rookies. i got hooked to juniper now.

    was wonder how do i add jweb to this image please advice.

    Thanks
    Chikkis

    ReplyDelete
  24. Hi Murali,
    I have resolved the previous issue of error message, and have gone through all steps, but I get stuck when I try to drag a router into GNS3, I get an error message of 'Can't start qemu on port 10525'. Can u reply with the correct settings of Qemu in GNS3 ?

    Many Thanks

    ReplyDelete
  25. for the "missing operating system" message ,
    you shouldn't let Qemu reboot . close the Qemu when it begin start (when you see green message) in (init 6 ) step .
    it will works in this case

    ReplyDelete
  26. Hi Murali,

    I am not able to telnet 127.0.0.1 1001 to see the installation..What could be the reason.

    I am using this on windows 7 with freebsd

    ReplyDelete
  27. Hi Mr. Murali

    Thanks All, it's very good tutorial. I have successfully completed it. It's running very well on GNS3, I'am using Win Vista SP2

    Best regards

    Edidoen

    ReplyDelete
  28. Hi,

    This is the really good article that I ever read "How to install JunOS to use with GNS3" from Internet.

    Really appreciate you. Well Done..

    I'm now testing how to install Jweb. If you already know, kindly share me.

    Myo Gyi

    ReplyDelete
  29. Thanks your post!!
    I have made it in GNS3. But on Cisco~Juniper's link, routing protocol is flapping in cisco side.
    By example,
    %BGP-3-NOTIFICATION: sent to neighbor 1.1.1.1 4/0 (hold time expired) 0 bytes
    and I have a same problem by IS-IS,OSPF....
    Is there any solutions?

    ReplyDelete
  30. Hi All

    I try to save configure on juniper router after finish but the router did not work out after reload topology.

    Any advise on this case? Please

    ReplyDelete
  31. hi murali,

    excellent video , however i am stuck at teh last part where in am tryin to install the pkg-add
    it says the pkgtools.tgz 'sha1 has failed the verification and aborts..can you help...i tried removing the junos image and installed it once again , same error , pls help

    ReplyDelete
  32. Well, someone can tell me the user name and password junos initial domestic.
    Thank you!!!

    ReplyDelete
  33. Well, someone can tell me the user name and password junos initial domestic.
    Thank you!!!

    ReplyDelete
  34. hi , my post has not been yet published , can u publish it and answer me pls

    ReplyDelete
  35. any plans on publishing my question and answering it ?

    ReplyDelete
  36. Thanks Man!!1 This works great. Though still slow.

    ReplyDelete
  37. I am actually stuck on the last part before using GNS. This is where we add:

    qemu -L . -m 512 -hda junos-binary.img -serial telnet:127.0.0.1:1001,server,nowait,nodelay –localtime

    I am keep getting Missing Operating System....man can someone help me please I am almost there.

    ReplyDelete
  38. hi murali,
    can u plz explain how to compress this video to less in size, plz teach me the steps

    ReplyDelete
  39. please teach me how to compree that video,
    abov 800mb->12 mb, marvls, plz teach me tooo..

    ReplyDelete
  40. jjj,

    i got the same error too:

    gzip: stdin: invalid compressed data--format violated
    /usr/bin/tar: Unexpected EOF in archive
    /usr/bin/tar: Unexpected EOF in archive
    /usr/bin/tar: Error is not recoverable: existing now
    pkg_add: tar extractof /var/tmp/juniper.tgz failed!
    Pkg_add: unable to extract '/var/tmp/juniper.tgz'!

    can you help me with this?

    thanks

    ReplyDelete
  41. HI MURALLI

    Thankyou for such a nice video. That will really helps to understand Junos.

    I am stuck on the following error
    pkg_add: find_play_pen: can't find enough temporary space to extract the
    files, please set your PKG_TMPDIR environment variable to a location with .....

    Can you tel me how to resolve this

    ReplyDelete
  42. Hi muralli

    I am stuck in the following error whein issuing #pkg_add -f /var/tmp/juniper.tgz

    pkg_add: find_play_pen: can't find enough temporary space to extract the
    files, please set your PKG_TMPDIR environment variable to a location with

    how to resolve this issue

    ReplyDelete
  43. Hi Muralli
    thanks for the gr8 post.
    I am stucked in the last part of the config
    #pkg_add -f /var/tmp/juniper.tgz
    having error
    pkg_add jinstall-5.5R1.2-export-signed.tgz
    pkg_add: find_play_pen: can't find enough temporary space to extract the
    files, please set your PKG_TMPDIR environment variable to a location with

    ReplyDelete
  44. Hi Muralli
    thanks for the gr8 post.
    I am stucked in the last part of the config
    #pkg_add -f /var/tmp/juniper.tgz
    having error
    pkg_add jinstall-5.5R1.2-export-signed.tgz
    pkg_add: find_play_pen: can't find enough temporary space to extract the
    files, please set your PKG_TMPDIR environment variable to a location with

    ReplyDelete
  45. hi murali,

    after I telnet I am getting error.


    Unable to load a kernel!
    |
    can't load '/kernel'
    can't load '/kernel.old'

    Type '?' for a list of commands, 'help' for more detailed help.
    OK

    What is the problem with this?

    Many thanks in advance.

    ReplyDelete
  46. Can you help troubleshoot this? when I telnet to it i got the following errors

    Consoles: serial port
    BIOS drive C: is disk0
    BIOS 636kB/523200kB available memory

    FreeBSD/i386 bootstrap loader, Revision 1.1
    (builder@queth.juniper.net, Fri Feb 12 16:15:47 UTC 2010)
    Loading /boot/defaults/loader.conf
    Unable to load a kernel!
    |
    can't load '/kernel'
    can't load '/kernel.old'

    Type '?' for a list of commands, 'help' for more detailed help.
    OK

    ReplyDelete
  47. Hi Murli,

    i need your help,

    up pkg_add it work fine
    but after adding pkg you next step was to reboot with command "init 6"

    and i rebooted it but after reboot it stuck at booting point saying .....

    loding BTX

    as u suggest to telnet on 127.0.0.1 on port 1001

    after telnet it doesn't show any output installation and again when i reboot at telnet prompt with reboot command it says

    no kernal found., please help also

    does i need to select start kernel mode option at free BSD installation step if yes then how.

    thanks
    santy

    ReplyDelete
  48. hi murli,

    please help after finishing every step, and junos install process i got missing kernel error.
    please help me to come out of this.

    thanks
    santy

    ReplyDelete
  49. Thanks a lot....... You saved my entire day.... Works perfectly.

    ReplyDelete
  50. Installation won't finish, stuck at db>

    Will buy you beer if you can help :-)

    Please advise

    Verified manifest signed by PackageProduction_10_1_0
    Verified jcrypto-10.1R1.8 signed by PackageProduction_10_1_0
    panic: Loss of soft watchdog
    db_log_stack_trace_cmd(c0bce740,c0bce740,c0b4f29c,d3b1fa9c,d3b1fa9c) at db_log_s
    tack_trace_cmd+0x36
    panic(c0b4f29c,c2699680,c0c3e320,d3b1facc,0) at panic+0x143
    statclock(d3b1facc,ccabb150,ccabb1b0,d3b1fb28,c09c103f) at statclock+0x15d
    lapic_handle_timer(d3b1facc) at lapic_handle_timer+0x7e
    Xtimerint() at Xtimerint+0x2f
    --- interrupt, eip = 0xc05f3ace, esp = 0xd3b1fb0c, ebp = 0xd3b1fb28 ---
    bqrelse(ccabb150,200,d3b1fca0,663,0) at bqrelse+0x1f
    ffs_read(d3b1fc08,d3b1fc28,c0615247,c0b9df40,d3b1fc08) at ffs_read+0x453
    VOP_READ_APV(c0b9df40,d3b1fc08,c2a16124,d3b1fc5c,c09c103f) at VOP_READ_APV+0x44
    vn_read(c27ff8b8,d3b1fca0,c2691ee0,0,c27c0340) at vn_read+0x1fd
    dofileread(d3b1fca0,ffffffff,ffffffff,0,c27ff8b8) at dofileread+0x95
    kern_readv(c27c0340,4,d3b1fca0,bfbedd2c,0) at kern_readv+0x58
    read(c27c0340,d3b1fcfc,c,5038,4f208496) at read+0x4f
    syscall(d3b1fd38) at syscall+0x3ab
    Xint0x80_syscall() at Xint0x80_syscall+0x20
    --- syscall (3, FreeBSD ELF32, read), eip = 0x88159e03, esp = 0xbfbedafc, ebp =
    0xbfbedd38 ---
    ###Entering boot mastership relinquish phase
    KDB: enter: panic
    [thread pid 181 tid 100058 ]
    Stopped at kdb_enter+0x15f: movl $0xc0b51748,0(%esp)
    db>

    ReplyDelete
  51. Ran the setup twice but getting the the following error

    missing operating system

    after running the following command


    qemu -L . -m 512 -hda junos-binary.img -serial telnet:127.0.0.1:1001,server,nowait,nodelay –localtime

    any help will be greatly appreciated.

    thanks

    ReplyDelete
  52. I doubt there will be some small mistakes in the previous steps that you have done... You may cross check the steps...

    Steps for installing BSD OS in qemu:
    -------------------------------------

    * Extract qemu-0.11.0.patched.win32.zip and Keep as folder named Qemu.
    * Place 4.11-RELEASE-i386-miniinst.iso inside qemu folder.
    * To create Junos Binary image apply the below command
    qemu-img.exe create junos-binary.img -f qcow2 8G

    * Now junos-binary.img is created with max space of 8Gb.
    * To insert BSD OS cd use the below command
    qemu -m 256 -hda junos-binary.img -cdrom 4.11-RELEASE-i386-miniinst.iso
    Press ctrl+alt to come out of qemu window.

    * choose express installation
    * Press A
    * Press Q

    * Enter Standard installation.

    Now partion creation,
    ----------------------
    * press c
    Type 2048M select FS mount point /
    * Again press c
    Type 1024M select swap
    * Again press c
    Type 100M select FS mount point /config
    * Again press c
    Selct remaing space selct FS mount point /var

    selct Q

    * Selct option 8----> Users
    for port collection say NO.
    then select exit

    * select Installation media as CD/DVD

    * User confirmation requested press- yes
    Installation started..........
    * User confirmation requested press- yes
    * set the root password
    Then Exit...

    Now BSD is installed in virtual machine.

    -----------------------------------------------------------------------------------------------------

    Steps to install Junos OS in BSD OS.
    -----------------------------------

    * Use Hjsplit.exe to join all the splitted junos os file.
    * Use freeisocreator.exe to make junos os into iso image so that we can mount like cd and install it
    ,instead of going for ftp to load that file into junos-binary.img
    * Place junos.iso inside quemu folder.
    * Use below command to boot junos-binary.img with junos.iso as mounted as CD.
    qemu -m 256 -hda junos-binary.img -cdrom junos.iso


    Steps to untar the signed junos image in iso :
    ------------------------------------------------
    #mount /cdrom
    #cd /var/tmp
    #mkdir junos
    #cd junos
    #tar zxvf /cdrom/jinstall-10.1R1.8-domestic-olive.tgz

    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(remove that folder)

    Create tar for the new jinstall package with modified checkpic
    --------------------------------------------------------------
    #tar zcvf /var/tmp/juniper.tgz *
    (Will take more time to zip depend on system config)
    Then install the new jinstall with bsd pkg_add tool:
    -------------------------------------------------------
    #pkg_add -f /var/tmp/juniper.tgz

    Will take some time to process.......


    It will ask to reboot to continue the installation.
    #init 6
    then after it started reboot just close the qemu.
    Now put the below command and see the installation of junos
    ------------------------------------------------------------

    qemu -L . -m 512 -hda junos-binary.img -serial telnet:127.0.0.1:1001,server,nowait,nodelay –localtime

    * now telnet 127.0.0.1 1001 to see the installation


    One installation is finished and prompt is returned press Crtl+Alt+2 then type “q” press enter

    Now junos-binary.img is ready for gns3.

    ReplyDelete
  53. Solid...

    Took me four or five times to get this to work...always my own stupid mistakes or not waiting for process to finish. This works. For the first time I am looking at a juniper cli (two years studying c*s*o). Friggin outstanding. Thank you. You rock dude.
    MPH

    ReplyDelete
  54. Hi,

    Let me thank you for the help. Could you please help me I am getting the following output from juniper router. I am not getting login prompt.

    ar 18 17:08:31 sm-mta[86]: NOQUEUE: SYSERR(root): host "localhost" unknown: Connection refused
    sendmail-clientmqueue.
    Initial rc.i386 initialization:.
    Configuring syscons:.
    Additional ABI support:.
    Starting local daemons:/etc/rc.local: /usr/sbin/check-support: not found
    starting local daemons:.
    .
    Local package initialization:.
    Additional TCP options:.

    Sun Mar 18 17:08:31 GMT 2012
    Mar 18 17:08:31 init: _secure_path: /etc/login.conf is not a regular file
    Mar 18 17:08:31 last message repeated 15 times

    ReplyDelete
  55. ocal package initialization:.
    Additional TCP options:.

    Sun Mar 18 17:13:40 GMT 2012
    Mar 18 17:13:41 init: _secure_path: /etc/login.conf is not a regular file
    Mar 18 17:13:41 last message repeated 15 times
    Mar 18 17:15:00 cron[125]: _secure_path: /etc/login.conf is not a regular file
    Mar 18 17:15:00 cron[125]: login_getclass: unknown class 'daemon'
    Mar 18 17:15:00 cron[125]: _secure_path: /etc/login.conf is not a regular file
    Mar 18 17:15:00 cron[127]: _secure_path: /etc/login.conf is not a regular file
    Mar 18 17:15:00 cron[127]: login_getclass: unknown class 'daemon'
    Mar 18 17:15:00 cron[127]: _secure_path: /etc/login.conf is not a regular file

    can you help me, I cant login in to juniper router

    ReplyDelete
  56. Hi Team,

    I tried re installing the free bsd and junos image. I followed the above steps. The problem is after doing this, my os is not booting. it is showing as qemu is showing operating system not gfound. When I do ctr+alt+3 i see message space not found 3g required for /var/tmp and avilable is 2G. I had given 7 gig for /var. But i dont know why qemu is booting. I tried more than 10 times same issue. Kindly help me. I spend lot of time on this

    ReplyDelete
  57. olive links not working!!!!!!!!!!!

    can you please update.

    ReplyDelete
  58. Hi,
    First of all thanks a lot for your lab.
    Is it necessary to copy on disk a new juniper.img each time we need to instantiate a new router on gns3 ? Is there a way around ?
    Dimitri

    ReplyDelete
  59. Also
    Everything works fine but I can't get any capture with wireshark on a Juniper interface.

    ReplyDelete
  60. Thanks a lot buddy..Finally i got my juniper working in GNS..long awaited thing!! Now i can go ahead and test other thing on juniper as well.

    Thanks again for everything.. :)

    Nandlal

    ReplyDelete
  61. Can any one share "juniper1.img" after completed all Steps.

    ReplyDelete
  62. here are links for Junos binary image


    https://rapidshare.com/files/2111989812/junos-binary2.part1.rar
    https://rapidshare.com/files/3727709131/junos-binary2.part2.rar

    enjoy

    ReplyDelete
  63. thanks a lot, this blog totally sorted me out!

    ReplyDelete
  64. Only one of Junos file link is working; the 3rd one.....and also hjsplit is not working.

    ReplyDelete
  65. Hi Murli, I have gone through the steps in order, when I type the below command, then I get error message ...

    pkg_add -f /var/tmp/juniper.tgz

    gzip: stdin: invalid compressed data--format violated
    /usr/bin/tar: Unexpected EOF in archive
    /usr/bin/tar: Unexpected EOF in archive
    /usr/bin/tar: Error is not recoverable: existing now
    pkg_add: tar extractof /var/tmp/juniper.tgz failed!
    Pkg_add: unable to extract '/var/tmp/juniper.tgz'!


    Any help to resolve the above issue will be appreciated.

    Many Thanks

    ReplyDelete
  66. Missing Operating System FIX


    since this is just 'emulating' boot the FreeBSD again, I used QEMU Manager 7.0 to boot it, I placed the .img file(junos or j.img) as the Primary HD, then I used a virtual DVD/CD program to mount/load the FreeBSD ISO. use the same steps as installing, chose to skip the kernel config as it was stated in the video. then.... choose 'CONFIGURE'>FDISK> then use the down arrow to select the 'freebsd' drive you created then press 'S' to set as bootable it should change from 'A=' to 'A' if it has been set. Then press Q to exit.. (by now you should have known how exit in this program) just exit exit. then the key is to shut the VM (your Junos image) and Start it up IF you see this 'BTX Loader 1.00 BTX Version is 1.02' then you are successful. If not try, the steps again, but this time load the Standard MBR (dont worry its just the masterboot record' email me for concerns. thanks.

    ReplyDelete
  67. So to fix Missing operating system problem just do some tweaks after Jinstall package installation has completed as below

    # chmod +w /boot/loader.conf
    # vi /boot/loader.conf

    than add this line to the file

    console="vidconsole"

    than just finally reboot the router using reboot command.That's it.Without the configuration on loader.conf after rebooting we get till 'BTX Loader 1.00 BTX Version is 1.02' as Junos sends default output to Serial Console/Telnet session only.if anyone closes the qemu session after waiting a while because of no output in the screen and re initiates another qemu session he gets Missing Operating System error.Hope this helps.

    ReplyDelete