Thursday, July 8, 2010

Installing QEMU for JUNOS Integration

This post will cover the installation of JUNOS on PC. For JUNOS simulation, I am using OLIVE. Below are the steps required to get the installation done:-
1.       Download QEMU and JQEMU for Windows and add JQEMU in QEMU folder. JQEMU is required because it provides windows driver for virtual intel nic card.
2.       Download Open VPN to create TAP interface. This is required because we cannot upload the JUNOS image directly to QEMU. To achieve the task we need open vpn.
3.        Download Free BSD image.
4.       Download JUNOS operating system. I am using Jinstall-7.4r3.4-Domestic-Signed.tgz. This could be downloaded from here.
5.       Download free 3CDaemon ftp server to upload JUNOS in QEMU.

Installation Process:-
1.       Put the free BSD mini ISO image in QEMU directory.
2.       Run depicted command from command prompt to create OLIVE image.
C:\GNS-JUNOS\qemu-0.9.0-windows>qemu-img.exe create olive.img -f qcow2 4G (4G means allocating 4Gb memory)

3.       Run depicted command to start the QEMU installation process.
C:\GNS-JUNOS\qemu-0.9.0-windows>qemu.exe -L . -m 256 -hda olive.img -cdrom 4.4-mini.iso -boot d -localtime 
4.       Qemu installation window will pop up and start with the standard installation.

Figure 1

Skip kernal configuration and go with the standard one.

                               Figure 2

                                 Figure 3

In the next windows, simply select option A for all and press Q.

                           Figure 4

After pressing Q, the next window will come and select Standard (Install a standard MBR(no boot manager))

                          Figure 5

                      Figure 6

The next step is the utmost step which will define the partition type.We have to define partition like given below:-
1. 1024M for / partition and select FS(File System)
2. 1024M which is swap partition.
3. 12M for /config and select FS(File System)
4. 2035M for /var and select FS(File System)

Make sure to follow the same steps as depicted in the images. 

                       Figure 7

Now press C to create first partition which is "/"

                     Figure 8

                      Figure 9

                   Figure 10

Now create the second partition which is swap.

                 Figure 11

                 Figure 12

Create the third partition which is /config.

                  Figure 13

                     Figure 14

Now move to the last partition

                 Figure 15

                   Figure 16

After complete partition, it will like below:-

                   Figure 17

Then select no for the setting ((Ethernet/SLIP config, gateway, inetd, FTP, NFS, security, console, linux compatibility, set time, etc), only configure root password.

                    Figure 18

Select user and then press X.

Select no for user confirmation request.

                       Figure 19

Select CD/DVD and press enter

                    Figure 20

Press Yes in the next window and you will find congratulations window for the installation.

                        Figure 21

After this press ALT+Control+2 and type quit to come out. In the next post, I will use this installation to install JUNOS in PC.

People who read this post also read :


Anonymous said...

is it possible to use 9.5 version of junos?

shivlu jain said...

I did not try but seems to be worked.

Anonymous said...

Are you using the latest GNS3? With the latest GNS3 its a bit easy to install Junos.