Juniper vJunos EX Switch

Versions this guide is based on:

EVE Image Foldername Downloaded Filename Version vCPUs vRAM Console Qemu NIC Type Max interfaces
vjunosswitch-23.1R1.8 vjunos-switch-23.1R1.8.qcow2 23.1R1.8 4 8192 telnet 5.2.0 virtio 11
Instructions
Before you start: Make sure your EVE is upgraded to the latest version. EVE Community version 5.0.1-19 or later, and EVE Pro is 5.0.1-93 or later.

IMPORTANT: You may need to obtain the template for this image. Please follow the lint to update your EVE templates. How to update my EVE Templates

Juniper NOTE: It is strongly recommended to deploy vEX KVM image directly on the server/hypervisor. (Bare Metal EVE). Note: vJunos-switch is not supported on EVE-NG or deployments that launch vJunos from within a VM due to the constraints of deeply nested virtualization.

Juniper vEX image setup

Step 1

Use your Juniper access for login and download image from:

https://support.juniper.net/support/downloads/?p=vjunos

Downloaded image file: vjunos-switch-23.1R1.8.qcow2

Step 2

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

root@eve-ng:~# mkdir /opt/unetlab/addons/qemu/vjunosswitch-23.1R1.8

Step 3

Upload the downloaded image to the EVE newly created directoriy using FileZilla or WinSCP.

vjunos-switch-23.1R1.8.qcow2  to  /opt/unetlab/addons/qemu/vjunosswitch-23.1R1.8

Step 4

Rename original filename to EVE format, commands from EVE CLI

root@eve-ng:~# cd /opt/unetlab/addons/qemu/vjunosswitch-23.1R1.8
root@eve-ng:~# mv vjunos-switch-23.1R1.8.qcow2 virtioa.qcow2
root@eve-ng:~# cd /opt/unetlab/addons/qemu/vjunosswitch-23.1R1.8
root@eve-ng:/opt/unetlab/addons/qemu/vjunosswitch-23.1R1.8# ls
virtioa.qcow2

Step 5

Fix permissions

root@eve-ng:~# /opt/unetlab/wrappers/unl_wrapper -a fixpermissions

default login: root / no password, just enter

Note for node graceful shutdown!

If you want to keep this lab configured and work later, before stop the lab, please issue graceful power OFF command on vEX CLI

root@vEX-1> request system power-off
Power Off the system ? [yes,no] (no) yes

wait for some time when node says:

acpi0: Powering system off

Now you can safety stop the lab node.