Olive reloaded or how to emulate Juniper routers

October 29th, 2009 by Jeremy Grossmann Leave a reply »

« »

JunOS installation

Now it’s time to install JunOS our FreeBSD image. I used JunOS 8.5R1.14 but your are free to try other versions even if it is usually recommended to have a version less than 8.5. Boot the image and attach a Intel e1000 virtual network card to Qemu:

qemu -m 256 -hda olive-base.img -boot c -localtime \
-net nic,macaddr=00:aa:00:60:01:01,model=e1000 -net user

FreeBSD should start and after login with the root password, you are ready to enter commands:

olive_install_1

Ensure you get an IP address and find out what is your default gateway IP address. Ping it just to be sure it’s working:

dhclient em0
netstat -r
ping 10.0.2.2

olive_install_2

You can use FTP or SCP (or any other way you may think about) to download JunOS in FreeBSD. Here I chose to use SCP. On Mac OS X, don’t forget to activate “Remote login” in System Preferences -> Sharing.

scp user@10.0.2.2:~/Desktop/jinstall-8.5R1.14-domestic-signed.tgz /var/tmp

MacOS_remote_login

The jinstall file after 7.4 version has a binary called checkpic. This binary will fail and the image cannot be installed. Replacing this binary with /usr/bin/true fixes the issue. Also, it is needed to recalculate MD5 and SHA1 checksums before archiving them back. Finally, you can install JunOS with pkg_add.

cd /var/tmp
mkdir jinst-signed
cd jinst-signed
tar zxvf ../jinstall-8.5R1.14-domestic-signed.tgz
 
mkdir jinst
cd jinst
tar zxvf ../jinstall-8.5R1.14-domestic.tgz
 
mkdir pkgtools
cd pkgtools
tar zxvf ../pkgtools.tgz
cd bin
cp /usr/bin/true ./checkpic
cd ..
 
tar zcvf ../pkgtools.tgz *
cd ..
rm -rf pkgtools
 
md5 -q  jinstall-8.5R1.14-domestic-signed.tgz >
jinstall-8.5R1.14-domestic-signed.tgz.md5
openssh sha1 jinstall-8.5R1.14-domestic-signed.tgz >
jinstall-8.5R1.14-domestic-signed.tgz.sha1
 
tar zcfv /var/tmp/jinstall-8.5R1.14-domestic-olive.tgz *
 
pkg_add -f /var/tmp/jinstall-8.5R1.14-domestic-olive.tgz

olive_install_3

Once the jinstall package installed, you can stop FreeBSD by using the halt command and then Qemu by pressing Ctrl-Alt-2, then type: quit. The jinstall above really just installed a bootstrap environment so you need to boot up FreeBSD one more time to finish the installation (depending on your version). If you just restarted your guest above you will notice that you will get no output on your screen. This is because a real Juniper router has no VGA out and redirects everything to the serial port. No worries for us since QEMU will redirect the serial port to either stdio or a telnet port. To do so, launch Qemu with the stdio parameter:

qemu -m 256 -hda olive-base.img -boot c -localtime -nographic -serial stdio

On Mac OS X -nographic is not understand, so just ignore the Qemu window and look at your terminal.

Wait while the bootstrap process completes. The virtual olive will reboot itself automatically and nothing is needed. At the end of this process we will be sitting at a login prompt. Login as root and issue the halt command (CTRL + L if you do not see the prompt) and kill your Qemu proccess.

olive_install_4

On Mac OS X, my terminal was kind of “broken”. To fix this, issue the reset command in your terminal.

Updating JunOS

You can update your version of JunOS from the CLI with the following command:

request system software add [jinstall_package]

107 comments

  1. ustas says:

    Hi, firs of all I would like to thank you! You made the best description of the procedure how to build the olive ever existed in the internet! Regarding your procedure I would like to confirm that some additional tasks is also required:
    download the developer version of WinPCAP: http://www.winpcap.org/install/bin/WpdPack_4_1_1.zip
    opy the contents of \lib and \include folders into \lib and \include folders of your MinGW installation location:
    C:\MinGW\lib
    C:\MinGW\include

    If it is not difficult for you, could you please make a qemu 12.0-rc1 patch for olive? Or explain the procedure how to make it itself to not disturb you with this. THANK YOU once again!

  2. user says:

    Hi,
    I can login in the routers but each router only has one interface i.e. em0. How do i get more interfaces on each router e,g, i would like to get 4 em0 interface on each router….i this possible….
    Thanks

  3. Olu says:

    I got same problem as Tom above

    When i run “./configure –target-list=i386-softmmu”, i get the following errors
    “Error: zlib check failed
    Make sure to have the zlib libs and headers installed.”
    Zlib is installed.

    Please can someone help urgently ?

  4. Dan says:

    Hi all
    I manage to build the qemu image and ran the command :
    qemu -m 256 -hda olive-based.img -boot c -localtime \ -net nic,macaddr=00:aa:00:60:01:01,model=e1000 -net user”
    all look fine.
    I get IP address 10.0.2.15 and can ping to 10.0.2.2 but I cant manage to copy the junos file to qemu.
    I get :
    ssh: connect to host 10.0.2.2 port 22: Operation time out

    please help

  5. Antonio Soares says:

    I see PCAP support=no after executing the configure script:

    amsoares@WINXP ~/qemu-0.11.0
    $ patch -p1 -i qemu-0.11.0-olive.patch
    (Stripping trailing CRs from patch.)
    patching file Makefile.target
    (Stripping trailing CRs from patch.)
    patching file configure
    (Stripping trailing CRs from patch.)
    patching file hw/e1000.c
    (Stripping trailing CRs from patch.)
    patching file hw/eepro100.c
    (Stripping trailing CRs from patch.)
    patching file net.c
    (Stripping trailing CRs from patch.)
    patching file qemu-options.hx

    amsoares@WINXP ~/qemu-0.11.0
    $

    amsoares@PT-AMSOARES ~/qemu-0.11.0
    $ ./configure –target-list=i386-softmmu
    Install prefix c:/Program Files/Qemu
    BIOS directory c:/Program Files/Qemu
    binary directory c:/Program Files/Qemu
    Source path /home/amsoares/qemu-0.11.0
    C compiler gcc
    Host C compiler gcc
    ARCH_CFLAGS -m32
    make make
    install install
    host CPU i386
    host big endian no
    target list i386-softmmu
    tcg debug enabled no
    gprof enabled no
    sparse enabled no
    strip binaries yes
    profiler no
    static build no
    -Werror enabled no
    SDL support yes
    SDL static link yes
    curses support no
    curl support no
    mingw32 support yes
    Audio drivers
    Extra audio cards ac97 es1370 sb16
    Mixer emulation no
    VNC TLS support no
    VNC SASL support no
    kqemu support yes
    xen support no
    brlapi support no
    Documentation no
    NPTL support no
    vde support no
    AIO support no
    IO thread no
    Install blobs yes
    KVM support no
    fdt support no
    preadv support no
    PCAP support no

    amsoares@WINXP ~/qemu-0.11.0

    Of course, i want PCAP support. I saw this section in the patch file:

    + if test “$pcap” = “yes” ; then
    + pcap=no
    + cat > $TMPC << EOF
    + #include
    + int main(void) { return pcap_lib_version(); }
    + EOF
    + if $cc $ARCH_CFLAGS -o $TMPE $PCAPLIBS $TMPC 2> /dev/null; then
    + pcap=yes
    + fi
    + fi
    +

    I’m not a programmer but it seems pcap will always be equal to “no” and thus the output i see after executing the configure script. What is the workaround for this ? I followed the steps in this tutorial and also copied the files from WpdPack_4_1_1.zip to the minGW directories.

    There’s another section in the patch mentioning a file that does not exist:

    if test “$mingw32″ = “yes” ; then
    + PCAPLIBS=”-lwpcap”
    if test -z “$prefix” ; then
    prefix=”c:/Program Files/Qemu”
    fi

    The WpdPack_4_1_1.zip contains a file called libwpcap.a and another one called wpcap.lib. Do we need to rename some files ?

  6. Chad says:

    Having issues getting my Juniper router up and running and I keep seeing that the error:

    “could not communicate with the qemuwrapper server localhost” Below is what I believe to be the output. Any suggestions would be greatly appreciated

    Qemu Emulator Wrapper (version 0.2.5)
    Copyright (c) 2007-2009 Thomas Pani & Jeremy Grossmann

    Unpacking pemu binary.
    Qemu TCP control server started (port 10525).
    Connection from (‘127.0.0.1′, 51621)
    Connection from (‘127.0.0.1′, 51622)
    Shutdown in progress…
    Shutdown completed.
    Qemu path is now .
    !! JUNOS1.console = 3000
    !! JUNOS1.netcard = e1000
    !! JUNOS1.image = C:\Documents and Settings\All Users\Documents\Junos\jinstall-9
    .6R2.11-domestic-signed.tgz
    !! JUNOS1.ram = 96
    !! JUNOS1.kqemu = True
    —————————————-
    Exception happened during processing of request from (‘127.0.0.1′, 51622)
    Traceback (most recent call last):
    File “SocketServer.pyc”, line 558, in process_request_thread
    File “SocketServer.pyc”, line 320, in finish_request
    File “SocketServer.pyc”, line 615, in __init__
    File “qemuwrapper.py”, line 383, in handle
    File “qemuwrapper.py”, line 433, in handle_one_request
    File “qemuwrapper.py”, line 599, in do_qemu_start
    File “qemuwrapper.py”, line 105, in start
    File “qemuwrapper.py”, line 230, in _build_command
    File “qemuwrapper.py”, line 290, in _disk_options
    AttributeError: ‘module’ object has no attribute ’spawnlp’
    —————————————-

    - Chad

  7. anirban says:

    hi getting following error–>
    babai@ANIRBAN-05773C5 ~/qemu-0.11.0
    $ make
    CC net.o
    AR libqemu_common.a
    GEN i386-softmmu/qemu-options.h
    CC i386-softmmu/vl.o
    CC i386-softmmu/eepro100.o
    CC i386-softmmu/e1000.o
    LINK i386-softmmu/qemu.exe
    c:\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot fin
    d -lwpcap
    collect2: ld returned 1 exit status
    make[1]: *** [qemu.exe] Error 1
    make: *** [subdir-i386-softmmu] Error 2

  8. Antonio Soares says:

    I was able to compile with PCAP support after changing the configure script:

    if test “$pcap” = “yes” ; then
    pcap=yes
    cat > $TMPC << EOF

    Now everything seems to be working fine. I used Winpcap release 4.0.1.

  9. mantoba says:

    hi guys,

    Did any of you guys have a problem with isis protocol ?

    I unable to establish isis if protocol run on more than 3 routers.

    I have no problem to run ospf and bgp but have a problem with isis.

    Any advice?
    Thanx

  10. richard says:

    Hi,

    First of all, I am a great olive fan and working a lot for my job (I am already JNCIE for a while).

    I completed the process you described, everything went fine. However, I face stability issues (qemu crashes) with the udp network if i895522er if type is used and my em inteface is seen administratively down if e1000 interface type is used.

    so not a great reward for the hard job of compiling/patching. Note that I applied the kqemu patch to avoid crashes too :-)

  11. malon says:

    You can use this for more than one interface but you would need the physical interfaces to be present. Adjust the model name as you wish

    qemu.exe -L . -m 48 -hda Olive.img -serial telnet::1001,server -localtime
    -net nic,vlan=0,macaddr=00:aa:00:00:01:01,model=i82559er -net tap,vlan=0,ifname=tap1
    -net nic,vlan=0,macaddr=00:aa:00:00:01:02,model=i82559er -net tap,vlan=0,ifname=tap2

  12. Treq says:

    Qemu-from-source have no “make remove” target. Therefore I would suggest that it is tidier to turn it into a .deb package prior to installing it on your Ubuntu system.

    This can be done by first installing the package “checkinstall”, and then simply replacing the step “make install” with “checkinstall”. This will then generate a .deb and install it for you, making it easy to remove if you should get tired of it.

  13. zippy says:

    Hey great Balog,

    I get these errors using qemu 0.12.1 on linux. Any ideas anyone?

    Thanks.

    Hit [Enter] to boot immediately, or space bar for command prompt.
    Booting [/boot/installer]…
    ACPI autoload failed – no such file or directory
    kernel trap 12 with interrupts disabled

    Fatal trap 30: reserved (unknown) fault while in kernel mode
    instruction pointer = 0×20:0xc06b3ef4
    stack pointer = 0×28:0xc1021c98
    frame pointer = 0×28:0xc1021cb8
    code segment = base 0×0, limit 0xfffff, type 0×1b
    = DPL 0, pres 1, def32 1, gran 1
    processor eflags = interrupt enabled, IOPL = 0
    current process = 0 ()
    trap number = 30
    dog: ERROR – reset of uninitialized watchdog
    panic: reserved (unknown) fault
    (null)(c089caa0) at 0
    (null)(c0836fe5,0,fffff,8e4cc89b,c089a8c0) at 0
    (null)(c1021c58,0) at 0
    (null)(8,28,28,0,c089a8c0) at 0
    (null)(8,28,28,f0000,c08ced40) at 0
    (null)(2) at 0
    (null)(0,c1021d3c,c051e8ef,c0835147,0) at 0
    (null)(c1021d84,c06ac030,101ec00,101e000,1026000) at 0
    (null)(101ec00,101e000,1026000,0,c044df8d) at 0
    (null)(1026000) at 0
    (null)() at 0
    dog: ERROR – reset of uninitialized watchdog
    dog: ERROR – reset of uninitialized watchdog
    Uptime: 1s

  14. Sushant says:

    I was able to run Olive under qemu in windows,
    But I am facing problems with qemuwrapper.
    Editing qemuwrapper.py and recompiling will fix it,
    Anybody one good at Python?

    http://sushantwagle.wordpress.com/2010/01/11/gns3-07rc1-supports-juniper-part2/

  15. sid says:

    (correction)

    its:

    patch -p1 -i qemu-0.11.0-olive.patch

    not

    patch -pl -i qemu-0.11.0-olive.patch

  16. brezular says:

    Hi guys,
    I record video when I was configuring Juniper routers in GNS3. It is only about running and networking routers in GNS3 (not Qemu FreeBSD, JunOS installation).

    No real how to but it can help.

    http://rapidshare.com/files/347400010/configuration-part1.ogv

    http://rapidshare.com/files/347401764/configuration-part2.ogv

  17. trunksy says:

    When I do a ’sudo make install’ on Ubuntu 9.10, here’s what I get. What did I do wrong?

    user@Hostname:/opt/GNS3/qemu-0.11.0$ sudo make install
    install -d -m0755 -p “/usr/local/bin”
    install -m0755 -p -s qemu-nbd qemu-io qemu-img “/usr/local/bin”
    install -d -m0755 -p “/usr/local/share/qemu”
    set -e; for x in bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin video.x openbios-sparc32 openbios-sparc64 openbios-ppc pxe-ne2k_pci.bin pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin bamboo.dtb petalogix-s3adsp1800.dtb multiboot.bin; do \
    install -m0644 -p /opt/GNS3/qemu-0.11.0/pc-bios/$x “/usr/local/share/qemu”; \
    done
    install -d -m0755 -p “/usr/local/share/qemu/keymaps”
    set -e; for x in da en-gb et fr fr-ch is lt modifiers no pt-br sv ar de en-us fi fr-be hr it lv nl pl ru th common de-ch es fo fr-ca hu ja mk nl-be pt sl tr; do \
    install -m0644 -p /opt/GNS3/qemu-0.11.0/pc-bios/keymaps/$x “/usr/local/share/qemu/keymaps”; \
    done
    for d in x86_64-softmmu; do \
    make -C $d install || exit 1 ; \
    done
    make[1]: Entering directory `/opt/GNS3/qemu-0.11.0/x86_64-softmmu’
    install -m 755 -s qemu-system-x86_64 “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu-0.11.0/x86_64-softmmu’
    user@Hostname:/opt/GNS3/qemu-0.11.0$

  18. Linn says:

    Thanks a lot to Jeremy and GNS3 supporters and developers :) Your article helped me alot.
    After spending 1 night without any sleep, I have successfully loaded JUNOS 8.4 on FreeBSD in VMware( in the next day afternoon, LOL). Creating a virtual serial port to get access to CLI took me the whole morning :( . I know I am stupid :P

  19. Jeremy Grossmann says:

    I updated this howto concerning wpcap on Windows and I also provide a link to download a static version of Qemu, no need for you to compile on Windows now ;)

  20. keenshoes says:

    These days I worked out a olive patch for qemu 0.12+ version and found a workaround to fix the ERROR “reset of uninitialized watchdog”.

    if you like you can download the binary file (windows) directly.
    Qemu 0.12.3 for Juniper (windows version)
    http://www.netemu.cn/bbs/thread-13265-1-1.html

  21. JiuG says:

    Hi All:

    Great howto! Great software!

    I finished with all the steps of the how to and wow! it works. I was able to run JunOS along with a Cisco 3725 inside GNS3 0.7 on Windows 7 32 bits, and voila! they can see eachother.

    The only thing I am missing and I am out of ideas is that I cannot start a second instance of JunOS within GNS3 (I can manually from the command prompt).

    I suppose that I should see a second qemu process hanging from the qemuwrapper.exe process, but it is not starting.

    Note: I am using the all-in-one package.

    Any ideas?

  22. JiuG says:

    Correction: I cannot run a second instance from the command line either.

  23. Fabio says:

    Hello everyone,
    I installed Gns3 version 0.7 on a PC running Windows XP, my problem is that in gns3 only one juniper router starts.
    I have created an olive-base.img called Olive.img.
    Under the menu preferences–> qemu –> general settings i have this situation :
    qemuwrapper path : C:\programs\gns3\quemuwrapper.exe
    path to qemu : qemu
    path to quemu-img :qemu-img
    Under the menu preferences –> qemu –> Junos Ihave this situation :
    Binary image : C:\Olive.img
    Memory 96
    Nic e1000.
    When i push test , appears the message : “Failed to start qemu”.
    I did two copies of olive.img and called them olive2.img and olive3.img.
    I used three routers and configured them with olive.img in first router, olive2.img in the second and olive3.img in the third.
    I got the result that the only first two routers have worked fine (in windows task manager there are two istances of qemu).
    I would like to run more routers can someone help me solve the problem?
    Thanks Fabio

  24. MAE says:

    Hello friends! I have been able to add to routers, I turn on the first one and I can telnet into it without any problem, but when I turn on the second one I can’t telnet to the second one.. Any idea?

    Another issue is that when I turn on the routers if I point to one of them with the mouse it says that the router is stopped (just a minor bug :) ).

    Regards

  25. Jeremy Grossmann says:

    I updated the link to the Qemu patch.

  26. dave-s says:

    Jeremy or anyone else that can help…..along with Dan (unanswered query) I am not able to copy the Junos image up to BSD.
    I can ping 10.0.2.2 successfully but scp times out and if I try ftp the response I get is that it cannot connect or login to host “user@10.0.2.2″.
    Apologies for my ignorance but is this something to do with the account name user..??
    when I do a netstat -r I can see the gateway ip as 10.0.2.2, plus addresses 10.0.2.3 (em0) and 10.0.2.15 (l0).
    appreciate ANY help please.

  27. Rob says:

    Dave-S,

    You need to put your actual user name in place of user when using the scp command, like

    rob@10.0.2.2, instead of user@10.0.2.2. This hung me up for a while too till it dawned on me that “user” isn’t going to get access to my host OS.

  28. MAE says:

    Well, this is very frustrating:

    I start a Olive, then I configure a new subinterface, like this:

    show configuration interfaces lo0
    unit 0
    family inet {
    address 2.2.2.1/32;
    }
    }

    I commit the changes and everything is OK… but when I want to see my new interface with a “sh interface terse” it is not there!! It is configured, but it is not running… But if I reload the olive I can see it working.. Why??
    Help me!
    Thanks

  29. dave-s says:

    Rob, thanks for that but it does me no good…..all I get now is that the connection is refused on port 22.
    I managed to FTP the file over eventually but then all I get are errors on trying to untar the file…..something about the compression type being unsupported. I’ve spent an inordinate amount of time on this plus trying to get ASA working in GNS3 (all related) and have hit so many brick walls that it is time to admit that it is just not going to work and come back maybe in another life. Cheers.

  30. Bullet says:

    Oops worked* :D

  31. Bullet says:

    ciscoasa(config)# copy running-config disk0:/.private/startup-config

    Source filename [running-config]?

    Destination filename [/.private/startup-config]?

    %Warning:There is a file already existing with this name
    Do you want to over write? [confirm]
    Cryptochecksum: a0ce05e6 e361a34f d8bc3b81 55185b42

    1514 bytes copied in 1.330 secs (1514 bytes/sec)open(ffsdev/2/write/41) failed
    open(ffsdev/2/write/40) failed

    ciscoasa(config)#

    I don’t know why the write is failing :(

  32. kronicklez says:

    Dear all,

    I already created Olive but using VMWARE…Just one more question i try to play with MPLS but it not support. Can someone justify if using Qemu it will support MPLS? thnks..

  33. Nacho says:

    Hi!

    After a lot of attempts, I coudn’t start qemuwrapper directly in GNS3 in mac os x. (Snow Leopard)

    I’ve got this errors when i’m trying to drag the Juniper router into the scenary.
    —————————
    Connecting to Qemu on port 10525….

    Can’t connect qemu on port 10525.
    Could not connect to qemuwrapper at localhost:10525.
    —————————

    I also trying to start the olive with a tap with no success.
    I’d installed the TUN/TAP driver and executed the commands as you commented above.

    I’ve got these errors.
    —————————-
    warning: could not open /dev/tap: no virtual network emulation
    qemu: Could not initialize device ‘tap’
    ifconfig: interface tap0 does not exist
    —————————-

    Except this, everything else is working fine, even qemu just alone.

    Please, could you help with this problem??

  34. Alaerte says:

    Thanks very much for your time/hard work to make this great tutorial. It worked like a charm under Xubuntu (after too much headache under Windows7 :) )

  35. kronicklez says:

    Hi all,

    Has someone try to play with MPLS l3VPN. It is succes?

  36. Nacho says:

    Hi everyone.

    Ok, I have up and running the olive using mac os x snow leopard.. at least with tap interfaces too!.

    The problem is that IPv6 and multicast (PIM) is not supported with e1000 interfaces.

    I tried to start qemu with i82559er interfaces (fxp) and it’s working. But by some reason qemu crashed when the configuration it’s huge (EBGP case study from JNCIP cert)

    Could be anything wrong on the patch?

    Jeremy, Congratulations for your great job.
    Thanks again!

  37. xman says:

    all went well, but after finishing pkg_tool add and rebooted,

    Then used:

    C:\Qemu>qemu -m 256 -hda olive-base.img -boot c -localtime -nographic -serial stdio

    I keep getting this error: :qemu: could not open serial device ‘mon:stdio’

  38. Max says:

    I followed this procedure to the “T”. Everything was smooth until I reached the “pkg_add -f /var/tmp/jinstall-8.5R1.14-domestic-olive.tgz” command in chapter 4. Junos Installation. I receive the error “/usr/libexec/ld-elf.so.1: Shared object “libssl.so.3″ not found, required by “pkg_add”. Any ideas? I figured openssl would have been part of the 4.11 BSD installation. Again, followed the installation to the “T”. Thanks!

  39. saad says:

    Hi
    dear zlib 1.2.3 is not available please help me out

  40. Sheraz says:

    HI,
    I’m not able to install the components zlib-1.2.3.tar.gz, SDL-1.2.14.tar.gz and coreutils-5.97-MSYS-1.0.11-snapshot.tar.bz2. on windows 7

    Error is
    sheraz.latif@LHRPC-1005 /home
    $ tar -xzvf zlib-1.2.5.tar.gz
    zlib-1.2.5/
    zlib-1.2.5/adler32.c
    zlib-1.2.5/amiga/
    zlib-1.2.5/amiga/Makefile.pup
    zlib-1.2.5/amiga/Makefile.sas
    zlib-1.2.5/ChangeLog
    zlib-1.2.5/CMakeLists.txt
    zlib-1.2.5/compress.c
    zlib-1.2.5/configure
    zlib-1.2.5/contrib/
    zlib-1.2.5/contrib/ada/
    zlib-1.2.5/contrib/ada/buffer_demo.adb
    zlib-1.2.5/contrib/ada/mtest.adb
    zlib-1.2.5/contrib/ada/read.adb
    zlib-1.2.5/contrib/ada/readme.txt
    zlib-1.2.5/contrib/ada/test.adb
    zlib-1.2.5/contrib/ada/zlib-streams.adb
    zlib-1.2.5/contrib/ada/zlib-streams.ads
    zlib-1.2.5/contrib/ada/zlib-thin.adb
    zlib-1.2.5/contrib/ada/zlib-thin.ads
    zlib-1.2.5/contrib/ada/zlib.adb
    zlib-1.2.5/contrib/ada/zlib.ads
    zlib-1.2.5/contrib/ada/zlib.gpr
    zlib-1.2.5/contrib/amd64/
    zlib-1.2.5/contrib/amd64/amd64-match.S
    zlib-1.2.5/contrib/asm686/
    zlib-1.2.5/contrib/asm686/match.S
    zlib-1.2.5/contrib/asm686/README.686
    zlib-1.2.5/contrib/blast/
    zlib-1.2.5/contrib/blast/blast.c
    zlib-1.2.5/contrib/blast/blast.h
    zlib-1.2.5/contrib/blast/Makefile
    zlib-1.2.5/contrib/blast/README
    zlib-1.2.5/contrib/blast/test.pk
    zlib-1.2.5/contrib/blast/test.txt
    zlib-1.2.5/contrib/delphi/
    zlib-1.2.5/contrib/delphi/readme.txt
    zlib-1.2.5/contrib/delphi/ZLib.pas
    zlib-1.2.5/contrib/delphi/ZLibConst.pas
    zlib-1.2.5/contrib/delphi/zlibd32.mak
    zlib-1.2.5/contrib/dotzlib/
    zlib-1.2.5/contrib/dotzlib/DotZLib/
    zlib-1.2.5/contrib/dotzlib/DotZLib/AssemblyInfo.cs
    zlib-1.2.5/contrib/dotzlib/DotZLib/ChecksumImpl.cs
    zlib-1.2.5/contrib/dotzlib/DotZLib/CircularBuffer.cs
    zlib-1.2.5/contrib/dotzlib/DotZLib/CodecBase.cs
    zlib-1.2.5/contrib/dotzlib/DotZLib/Deflater.cs
    zlib-1.2.5/contrib/dotzlib/DotZLib/DotZLib.cs
    zlib-1.2.5/contrib/dotzlib/DotZLib/DotZLib.csproj
    zlib-1.2.5/contrib/dotzlib/DotZLib/GZipStream.cs
    zlib-1.2.5/contrib/dotzlib/DotZLib/Inflater.cs
    zlib-1.2.5/contrib/dotzlib/DotZLib/UnitTests.cs
    zlib-1.2.5/contrib/dotzlib/DotZLib.build
    zlib-1.2.5/contrib/dotzlib/DotZLib.chm
    zlib-1.2.5/contrib/dotzlib/DotZLib.sln
    zlib-1.2.5/contrib/dotzlib/LICENSE_1_0.txt
    zlib-1.2.5/contrib/dotzlib/readme.txt
    zlib-1.2.5/contrib/gcc_gvmat64/
    zlib-1.2.5/contrib/gcc_gvmat64/gvmat64.S
    zlib-1.2.5/contrib/infback9/
    zlib-1.2.5/contrib/infback9/infback9.c
    zlib-1.2.5/contrib/infback9/infback9.h
    zlib-1.2.5/contrib/infback9/inffix9.h
    zlib-1.2.5/contrib/infback9/inflate9.h
    zlib-1.2.5/contrib/infback9/inftree9.c
    zlib-1.2.5/contrib/infback9/inftree9.h
    zlib-1.2.5/contrib/infback9/README
    zlib-1.2.5/contrib/inflate86/
    zlib-1.2.5/contrib/inflate86/inffas86.c
    zlib-1.2.5/contrib/inflate86/inffast.S
    zlib-1.2.5/contrib/iostream/
    zlib-1.2.5/contrib/iostream/test.cpp
    zlib-1.2.5/contrib/iostream/zfstream.cpp
    zlib-1.2.5/contrib/iostream/zfstream.h
    zlib-1.2.5/contrib/iostream2/
    zlib-1.2.5/contrib/iostream2/zstream.h
    zlib-1.2.5/contrib/iostream2/zstream_test.cpp
    zlib-1.2.5/contrib/iostream3/
    zlib-1.2.5/contrib/iostream3/README
    zlib-1.2.5/contrib/iostream3/test.cc
    zlib-1.2.5/contrib/iostream3/TODO
    zlib-1.2.5/contrib/iostream3/zfstream.cc
    zlib-1.2.5/contrib/iostream3/zfstream.h
    zlib-1.2.5/contrib/masmx64/
    zlib-1.2.5/contrib/masmx64/bld_ml64.bat
    zlib-1.2.5/contrib/masmx64/gvmat64.asm
    zlib-1.2.5/contrib/masmx64/inffas8664.c
    zlib-1.2.5/contrib/masmx64/inffasx64.asm
    zlib-1.2.5/contrib/masmx64/readme.txt
    zlib-1.2.5/contrib/masmx86/
    zlib-1.2.5/contrib/masmx86/bld_ml32.bat
    zlib-1.2.5/contrib/masmx86/inffas32.asm
    zlib-1.2.5/contrib/masmx86/match686.asm
    zlib-1.2.5/contrib/masmx86/readme.txt
    zlib-1.2.5/contrib/minizip/
    zlib-1.2.5/contrib/minizip/crypt.h
    zlib-1.2.5/contrib/minizip/ioapi.c
    zlib-1.2.5/contrib/minizip/ioapi.h
    zlib-1.2.5/contrib/minizip/iowin32.c
    zlib-1.2.5/contrib/minizip/iowin32.h
    zlib-1.2.5/contrib/minizip/make_vms.com
    zlib-1.2.5/contrib/minizip/Makefile
    zlib-1.2.5/contrib/minizip/miniunz.c
    zlib-1.2.5/contrib/minizip/minizip.c
    zlib-1.2.5/contrib/minizip/MiniZip64_Changes.txt
    zlib-1.2.5/contrib/minizip/MiniZip64_info.txt
    zlib-1.2.5/contrib/minizip/mztools.c
    zlib-1.2.5/contrib/minizip/mztools.h
    zlib-1.2.5/contrib/minizip/unzip.c
    zlib-1.2.5/contrib/minizip/unzip.h
    zlib-1.2.5/contrib/minizip/zip.c
    zlib-1.2.5/contrib/minizip/zip.h
    zlib-1.2.5/contrib/pascal/
    zlib-1.2.5/contrib/pascal/example.pas
    zlib-1.2.5/contrib/pascal/readme.txt
    zlib-1.2.5/contrib/pascal/zlibd32.mak
    zlib-1.2.5/contrib/pascal/zlibpas.pas
    zlib-1.2.5/contrib/puff/
    zlib-1.2.5/contrib/puff/Makefile
    zlib-1.2.5/contrib/puff/puff.c
    zlib-1.2.5/contrib/puff/puff.h
    zlib-1.2.5/contrib/puff/README
    zlib-1.2.5/contrib/puff/zeros.raw
    zlib-1.2.5/contrib/README.contrib
    zlib-1.2.5/contrib/testzlib/
    zlib-1.2.5/contrib/testzlib/testzlib.c
    zlib-1.2.5/contrib/testzlib/testzlib.txt
    zlib-1.2.5/contrib/untgz/
    zlib-1.2.5/contrib/untgz/Makefile
    zlib-1.2.5/contrib/untgz/Makefile.msc
    zlib-1.2.5/contrib/untgz/untgz.c
    zlib-1.2.5/contrib/vstudio/
    zlib-1.2.5/contrib/vstudio/readme.txt
    zlib-1.2.5/contrib/vstudio/vc10/
    zlib-1.2.5/contrib/vstudio/vc10/miniunz.vcxproj
    zlib-1.2.5/contrib/vstudio/vc10/miniunz.vcxproj.filters
    zlib-1.2.5/contrib/vstudio/vc10/miniunz.vcxproj.user
    zlib-1.2.5/contrib/vstudio/vc10/minizip.vcxproj
    zlib-1.2.5/contrib/vstudio/vc10/minizip.vcxproj.filters
    zlib-1.2.5/contrib/vstudio/vc10/minizip.vcxproj.user
    zlib-1.2.5/contrib/vstudio/vc10/testzlib.vcxproj
    zlib-1.2.5/contrib/vstudio/vc10/testzlib.vcxproj.filters
    zlib-1.2.5/contrib/vstudio/vc10/testzlib.vcxproj.user
    zlib-1.2.5/contrib/vstudio/vc10/testzlibdll.vcxproj
    zlib-1.2.5/contrib/vstudio/vc10/testzlibdll.vcxproj.filters
    zlib-1.2.5/contrib/vstudio/vc10/testzlibdll.vcxproj.user
    zlib-1.2.5/contrib/vstudio/vc10/zlib.rc
    zlib-1.2.5/contrib/vstudio/vc10/zlibstat.vcxproj
    zlib-1.2.5/contrib/vstudio/vc10/zlibstat.vcxproj.filters
    zlib-1.2.5/contrib/vstudio/vc10/zlibstat.vcxproj.user
    zlib-1.2.5/contrib/vstudio/vc10/zlibvc.def
    zlib-1.2.5/contrib/vstudio/vc10/zlibvc.sln
    zlib-1.2.5/contrib/vstudio/vc10/zlibvc.vcxproj
    zlib-1.2.5/contrib/vstudio/vc10/zlibvc.vcxproj.filters
    zlib-1.2.5/contrib/vstudio/vc10/zlibvc.vcxproj.user
    zlib-1.2.5/contrib/vstudio/vc9/
    zlib-1.2.5/contrib/vstudio/vc9/miniunz.vcproj
    zlib-1.2.5/contrib/vstudio/vc9/minizip.vcproj
    zlib-1.2.5/contrib/vstudio/vc9/testzlib.vcproj
    zlib-1.2.5/contrib/vstudio/vc9/testzlibdll.vcproj
    zlib-1.2.5/contrib/vstudio/vc9/zlib.rc
    zlib-1.2.5/contrib/vstudio/vc9/zlibstat.vcproj
    zlib-1.2.5/contrib/vstudio/vc9/zlibvc.def
    zlib-1.2.5/contrib/vstudio/vc9/zlibvc.sln
    zlib-1.2.5/contrib/vstudio/vc9/zlibvc.vcproj
    zlib-1.2.5/crc32.c
    zlib-1.2.5/crc32.h
    zlib-1.2.5/deflate.c
    zlib-1.2.5/deflate.h
    zlib-1.2.5/doc/
    zlib-1.2.5/doc/algorithm.txt
    zlib-1.2.5/doc/rfc1950.txt
    zlib-1.2.5/doc/rfc1951.txt
    zlib-1.2.5/doc/rfc1952.txt
    zlib-1.2.5/doc/txtvsbin.txt
    zlib-1.2.5/example.c
    zlib-1.2.5/examples/
    zlib-1.2.5/examples/enough.c
    zlib-1.2.5/examples/fitblk.c
    zlib-1.2.5/examples/gun.c
    zlib-1.2.5/examples/gzappend.c
    zlib-1.2.5/examples/gzjoin.c
    zlib-1.2.5/examples/gzlog.c
    zlib-1.2.5/examples/gzlog.h
    zlib-1.2.5/examples/README.examples
    zlib-1.2.5/examples/zlib_how.html
    zlib-1.2.5/examples/zpipe.c
    zlib-1.2.5/examples/zran.c
    zlib-1.2.5/FAQ
    zlib-1.2.5/gzclose.c
    zlib-1.2.5/gzguts.h
    zlib-1.2.5/gzlib.c
    zlib-1.2.5/gzread.c
    zlib-1.2.5/gzwrite.c
    zlib-1.2.5/INDEX
    zlib-1.2.5/infback.c
    zlib-1.2.5/inffast.c
    zlib-1.2.5/inffast.h
    zlib-1.2.5/inffixed.h
    zlib-1.2.5/inflate.c
    zlib-1.2.5/inflate.h
    zlib-1.2.5/inftrees.c
    zlib-1.2.5/inftrees.h
    zlib-1.2.5/make_vms.com
    zlib-1.2.5/Makefile
    zlib-1.2.5/Makefile.in
    zlib-1.2.5/minigzip.c
    zlib-1.2.5/msdos/
    zlib-1.2.5/msdos/Makefile.bor
    zlib-1.2.5/msdos/Makefile.dj2
    zlib-1.2.5/msdos/Makefile.emx
    zlib-1.2.5/msdos/Makefile.msc
    zlib-1.2.5/msdos/Makefile.tc
    zlib-1.2.5/nintendods/
    zlib-1.2.5/nintendods/Makefile
    zlib-1.2.5/nintendods/README
    zlib-1.2.5/old/
    zlib-1.2.5/old/as400/
    zlib-1.2.5/old/as400/bndsrc
    zlib-1.2.5/old/as400/compile.clp
    zlib-1.2.5/old/as400/readme.txt
    zlib-1.2.5/old/as400/zlib.inc
    zlib-1.2.5/old/descrip.mms
    zlib-1.2.5/old/Makefile.riscos
    zlib-1.2.5/old/os2/
    zlib-1.2.5/old/os2/Makefile.os2
    zlib-1.2.5/old/os2/zlib.def
    zlib-1.2.5/old/README
    zlib-1.2.5/old/visual-basic.txt
    zlib-1.2.5/old/visualc6/
    zlib-1.2.5/old/visualc6/example.dsp
    zlib-1.2.5/old/visualc6/minigzip.dsp
    zlib-1.2.5/old/visualc6/README.txt
    zlib-1.2.5/old/visualc6/zlib.dsp
    zlib-1.2.5/old/visualc6/zlib.dsw
    zlib-1.2.5/qnx/
    zlib-1.2.5/qnx/package.qpg
    zlib-1.2.5/README
    zlib-1.2.5/treebuild.xml
    zlib-1.2.5/trees.c
    zlib-1.2.5/trees.h
    zlib-1.2.5/uncompr.c
    zlib-1.2.5/watcom/
    zlib-1.2.5/watcom/watcom_f.mak
    zlib-1.2.5/watcom/watcom_l.mak
    zlib-1.2.5/win32/
    zlib-1.2.5/win32/DLL_FAQ.txt
    zlib-1.2.5/win32/Makefile.bor
    zlib-1.2.5/win32/Makefile.emx
    zlib-1.2.5/win32/Makefile.gcc
    zlib-1.2.5/win32/Makefile.msc
    zlib-1.2.5/win32/README-WIN32.txt
    zlib-1.2.5/win32/VisualC.txt
    zlib-1.2.5/win32/zlib.def
    zlib-1.2.5/win32/zlib1.rc
    zlib-1.2.5/zconf.h
    zlib-1.2.5/zconf.h.cmakein
    zlib-1.2.5/zconf.h.in
    zlib-1.2.5/zlib.3
    zlib-1.2.5/zlib.3.pdf
    zlib-1.2.5/zlib.h
    zlib-1.2.5/zlib.map
    zlib-1.2.5/zlib.pc.in
    zlib-1.2.5/zlib2ansi
    zlib-1.2.5/zutil.c
    zlib-1.2.5/zutil.h

    sheraz.latif@LHRPC-1005 /home
    $ cd zlib-1.2.5

    sheraz.latif@LHRPC-1005 /home/zlib-1.2.5
    $ ./configure –prefix=/mingw
    Checking for gcc…
    Checking for shared library support…
    No shared library support.
    Building static library libz.a version 1.2.5 with cc.
    Checking for off64_t… No.
    Checking for fseeko… No.
    Checking for unistd.h… No.
    Checking whether to use vs[n]printf() or s[n]printf()… using s[n]printf().
    Checking for snprintf() in stdio.h… No.
    WARNING: snprintf() not found, falling back to sprintf(). zlib
    can build but will be open to possible buffer-overflow security
    vulnerabilities.
    Checking for return value of sprintf()… No.
    WARNING: apparently sprintf() does not return a value. zlib
    can build but will be open to possible string-format security
    vulnerabilities.

    sheraz.latif@LHRPC-1005 /home/zlib-1.2.5
    $ make
    cc -O -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -c -o example.o example.c
    make: cc: Command not found
    make: *** [example.o] Error 127

    I see following error as well when i install msys

    :\msys\1.0\postinstall>PATH ..\bin;C:\Windows\system32;C:\Windows;C:\Windows\Sy
    tem32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\

    :\msys\1.0\postinstall>..\bin\sh.exe pi.sh
    0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
    llocationBase 0×0, BaseAddress 0×71110000, RegionSize 0×420000, State 0×10000
    :\msys\1.0\bin\sh.exe: *** Couldn’t reserve space for cygwin’s heap, Win32 erro
    0

    :\msys\1.0\postinstall>pause
    ress any key to continue . . .

    As per GNS3 0.7rc1 supports JUNOS… Lets try it out (Part 1) there is no path in msys with the name of c:\Msys\public\username). whats going on please tell me ? what im doing wrong ?

  41. Deepak says:

    i am able to install the qemu syccessfully but when trying to load the BSD, get the following error

    deepak@ubuntu:~/qemu-0.11.0$ qemu-img create -f qcow2 olive-base.img 4G
    Formatting ‘olive-base.img’, fmt=qcow2 size=4294967296 encryption=off cluster_size=0
    deepak@ubuntu:~/qemu-0.11.0$ qemu -m 256 -hda olive-base.img -cdrom 4.11-RELEASE-i386-miniinst.iso \
    > -boot d -localtime
    qemu: could not open disk image 4.11-RELEASE-i386-miniinst.iso
    deepak@ubuntu:~/qemu-0.11.0$

  42. Kiki99 says:

    I got the same problem as xman:
    qemu: could not open serial device ‘mon:stdio’.
    I found an easy work around: just start Qemu with:
    qemu -m 768 -hda olive-base.img -boot c -localtime
    (I’m using 768 because I’m running version 9, if you wants to install a version earlier then 8.5 you will need to setup a biggest virtual drive or need to delete some file before the pkg_add) once you see the window just press “ctrl-alt-2″
    and you will see your router starting booting !

  43. Kiki99 says:

    Houps sorry it’s “ctrl-alt-3″ not “ctrl-alt-2″ :-)

  44. kronicklez says:

    Does someone success add multiple loopback IP address in only one Logical Router? thanks

  45. Rakesh says:

    I am getting following errors while installing qemu.

    rakeshku@FM763BS ~/zlib-1.2.5
    $ ./configure –prefix=/mingw
    Checking for gcc…
    Checking for shared library support…
    No shared library support.
    Building static library libz.a version 1.2.5 with cc.
    Checking for off64_t… No.
    Checking for fseeko… No.
    Checking for unistd.h… No.
    Checking whether to use vs[n]printf() or s[n]printf()… using s[n]printf().
    Checking for snprintf() in stdio.h… No.
    WARNING: snprintf() not found, falling back to sprintf(). zlib
    can build but will be open to possible buffer-overflow security
    vulnerabilities.
    Checking for return value of sprintf()… No.
    WARNING: apparently sprintf() does not return a value. zlib
    can build but will be open to possible string-format security
    vulnerabilities.

  46. thiagolopes says:

    I type the commands…
    ‘qemu -m 256 -hda olive-base.img -boot c -localtime -nographic -serial stdio’
    …but nothing happens.

    I am running Windows 7. Anyone know why does not invoke qemu?

Leave a Reply