2020.04.22 – Juniper vQFX installation into EVE-PRO

Inspiration in EVE guid: https://www.eve-ng.net/index.php/documentation/howtos/howto-add-juniper-vqfx/

Note in 2021.05.14: I used vQFX in my labs and I had many problems. PING does not work! At the version 20.2 also does not work ping. Now I install and try to use vQFX 20.3. I will come back here to say my result!!

Note in 2021.05.16: I tried all vQFX versions that I find to download from Juniper. No one work for me. Support EVE-PRO helped me with a vQFX 18.4 and was OK to ping between 2 different vQFX switches.

vQFX 18.4 contains different applications .qcow2 or .qcow or .img to download from Juniper. I used 2 Application Media 18.4R2-S2 but maybe EVE-PRO helped me with application, one or both, from Application Package.

To find a version it works, you have to try many possibility!!

Original article

Step 1

Use your Juniper access for login and download images.

  • PFE downloaded image file: 
    • For version 17.4R1: cosim_20180212.qcow2
    • For version 19.4R1: vqfx-19.4R1-2019010209-pfe-qemu.qcow
  • RE downloaded file: 
    • For version 17.4R1: jinstall-vqfx-10-f-17.4R1.16.img
    • For version 19.4R1: vqfx-19.4R1.10-re-qemu.qcow2

Step 2

SSH CLI to your EVE as root and create two new image directories in: /opt/unetlab/addos/qemu/

  • For version 17.4R1:
mkdir /opt/unetlab/addons/qemu/vqfxpfe-10K-F-17.4R1.16
mkdir /opt/unetlab/addons/qemu/vqfxre-10K-F-17.4R1.16
  • For version 19.4R1:
mkdir /opt/unetlab/addons/qemu/vqfxpfe-10K-F-19.4R1 
mkdir /opt/unetlab/addons/qemu/vqfxre-10K-F-19.4R1

Step 3

Upload the downloaded images to the EVE newly created directories using FileZilla (or WinSCP).

  • For version 17.4R1:
  1. cosim_20180212.qcow2 to /opt/unetlab/addons/qemu/vqfxpfe-10K-F-17.4R1.16/cosim_20180212.qcow2
  2. jinstall-vqfx-10-f-17.4R1.16.img  to /opt/unetlab/addons/qemu/vqfxre-10K-F-17.4R1.16/jinstall-vqfx-10-f-17.4R1.16.img
  • For version 19.4R1:
  1. vqfx-19.4R1-2019010209-pfe-qemu.qcow to /opt/unetlab/addons/qemu/vqfxpfe-10K-F-19.4R1
  2. vqfx-19.4R1.10-re-qemu.qcow2  to /opt/unetlab/addons/qemu/vqfxre-10K-F-19.4R1.1

Step 4

Rename original filenames to EVE format Use commands from EVE CLI

  • For version 17.4R1:
mv /opt/unetlab/addons/qemu/vqfxpfe-10K-F-17.4R1.16/cosim_20180212.qcow2 /opt/unetlab/addons/qemu/vqfxpfe-10K-F-17.4R1.16/hda.qcow2
mv /opt/unetlab/addons/qemu/vqfxre-10K-F-17.4R1.16/jinstall-vqfx-10-f-17.4R1.16.img /opt/unetlab/addons/qemu/vqfxre-10K-F-17.4R1.16/hda.qcow2
  • For version 19.4R1:
root@eve-ng:/opt/unetlab/addons/qemu/vqfxpfe-10K-F-19.4R1# mv vqfx-19.4R1-2019010209-pfe-qemu.qcow hda.qcow2
root@eve-ng:/opt/unetlab/addons/qemu/vqfxre-10K-F-19.4R1# mv vqfx-19.4R1.10-re-qemu.qcow2 hda.qcow2
root@eve-ng:/opt/unetlab/addons/qemu# ls 
vqfxpfe-10K-F-19.4R1     vqfxre-10K-F-19.4R1
vqfxpfe-10k-F-17.4R1.16  vqfxre-10k-F-17.4R1.16

root@eve-ng:/opt/unetlab/addons/qemu# ls vqfxpfe-10K-F-19.4R1
hda.qcow2
root@eve-ng:/opt/unetlab/addons/qemu# ls vqfxre-10K-F-19.4R1.1
hda.qcow2

Step 5

Fix permissions

/opt/unetlab/wrappers/unl_wrapper -a fixpermissions

Step 6.

Create new lab, add PFE and RE nodes on topology. Interconnect pair RE-PFE with em1 interface.

NOTES:

  • Before Power ON EVE-PRO or, if EVE-PRO is on, before Power ON vQFX, run a command in EVE-PRO:
root@eve-ng:~# echo "10000" > /sys/module/kvm/parameters/halt_poll_ns

Step 7.

Power On PFE and RE.

Login in RE, user and password:

  • On version 19.4R1.1: root/Juniper
  • On version 17.4R1,4: root/no password

Step 8. Use Terminal for configuration

To connect and configure vQFX from Terminal in MacBook Pro:

  • In EVE-NG create a new Network
    • Type : Cloud1 with name Management (Cloud1)
    • Connect vQFX-RE with Management (Cloud1) using em0/fxp0 interface

Clod1 in mine VMware Fusion means:

Lab cloud name: Cloud1EVE interface: pnet1VMware Fusion VM: Network Adapter 2Bare HW Server:
answer VNET_91_DISPLAY_NAME JunOS-fxp0
Bare HW Server:
answer VNET_91_HOSTONLY_NETMASK 255.255.255.0
Bare HW Server:
answer VNET_91_HOSTONLY_SUBNET 172.25.11.0
  • In vQFX-RE configure fxp0 interface
{master:0}[edit interfaces em0]
root@vqfx-re# show 
unit 0 {
    family inet {
        address 172.25.11.78/24;
    }
}
  • Connect to vQFX-RE from Terminal
murgescusilvia@Murgescus-MacBook-Pro ~ % ssh root@172.25.11.78
The authenticity of host '172.25.11.78 (172.25.11.78)' can't be established.
ECDSA key fingerprint is SHA256:G1rq3G2/Y6VctKs22pvApnhGsrS/xTiW3V0TyRTx70w.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '172.25.11.78' (ECDSA) to the list of known hosts.
Password:
Last login: Thu May 21 03:15:16 2020
--- JUNOS 19.4R1.10 built 2019-12-19 03:54:05 UTC


root@vqfx-re:RE:0% 

NOTE: If you can not connect it seams there are some interfaces problem!!

1. Go back in EVE-PRO, open vqfx-re then continue as shown

root@vqfx-re:RE:0% cli

{master:0}
root@vqfx-re > show interface terms 
Interface               Admin      Link    Proto    Local
 --- missing xe- interface ---
???                      down       up 

2. If you see Admin down part, no meter what interface name is, then go to next step:

{master:0}
root@vqfx-re > exit

root@vqfx-re:RE:0% reboot

To solve this problem is mandatory to reboot this way!!!

3. When reboot finished:

root@vqfx-re:RE:0% cli

{master:0}
root@vqfx-re > show interface terms 
Interface               Admin Link Proto    Local                 Remote
 gr-0/0/0                up    up
 pfe-0/0/0               up    up
 pfe-0/0/0.16383         up    up   inet    
                                    inet6   
 pfh-0/0/0               up    up
 pfh-0/0/0.16383         up    up   inet    
 pfh-0/0/0.16384         up    up   inet    
 xe-0/0/0                up    up
 xe-0/0/0.0              up    up   inet     192.168.100.119/24
 xe-0/0/1                up    up
 xe-0/0/1.0              up    up   inet    
 xe-0/0/2                up    up
 xe-0/0/2.0              up    up   inet    
 xe-0/0/3                up    up
 xe-0/0/3.0              up    up   inet    
 xe-0/0/4                up    up
 xe-0/0/4.0              up    up   inet    
 xe-0/0/5                up    up
 xe-0/0/5.0              up    up   inet    
 xe-0/0/6                up    up
 xe-0/0/6.0              up    up   inet    
 xe-0/0/7                up    up
 xe-0/0/7.0              up    up   inet    
 xe-0/0/8                up    up        
 xe-0/0/8.0              up    up   inet    
 xe-0/0/9                up    up
 xe-0/0/9.0              up    up   inet    
 xe-0/0/10               up    up
 xe-0/0/10.0             up    up   inet    
 xe-0/0/11               up    up
 xe-0/0/11.0             up    up   inet    
 bme0                    up    up
 bme0.0                  up    up   inet     128.0.0.1/2     
                                             128.0.0.4/2     
                                             128.0.0.16/2    
                                             128.0.0.63/2    
 cbp0                    up    up
 dsc                     up    up
 em0                     up    up
 em0.0                   up    up   inet     192.168.100.211/24
 em1                     up    up
 em1.0                   up    up   inet     169.254.0.2/24  
 em2                     up    up
 em2.32768               up    up   inet     192.168.1.2/24  
 em3                     up    up
 em4                     up    up
 em4.32768               up    up   inet     192.0.2.2/24    
 em5                     up    up        
 em6                     up    up
 em7                     up    up
 em8                     up    up
 em9                     up    up
 em10                    up    up
 em11                    up    up
 em12                    up    up
 em13                    up    up
 em14                    up    up
 esi                     up    up
 fti0                    up    up
 gre                     up    up
 ipip                    up    up
 irb                     up    up
 jsrv                    up    up
 jsrv.1                  up    up   inet     128.0.0.127/2   
 lo0                     up    up
 lo0.0                   up    up   inet    
                                    inet6    fe80::205:860f:fc71:200
 lo0.16385               up    up   inet    
 lsi                     up    up
 mtun                    up    up
 pimd                    up    up
 pime                    up    up        
 pip0                    up    up
 tap                     up    up
 vme                     up    down
 vtep                    up    up

4. Add your needed IP on em0 interface and open vQFX using Terminal from MacBook Pro.