Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

EVE-NG BMS Environment

If you have not installed EVE-NG 5.x or later on a BMS, check the download link to get to the Professional or Community ISOs.

Note:

Use only the ISO files and install on a BMS. Avoid using the OVA VM images as they would cause the unsupported double-nesting issue.

Copy the VM Image to Your EVE-NG Environment

  1. Go to the vJunos-switch download link https://support.juniper.net/support/downloads/?p=vjunos and select the latest image as shown below.
  2. Click copy to copy the temporary URL, which is valid for 10 minutes.
  3. Access SSH to connect to your EVE-NG BMS as root to install the image. Embed the copied URL to wget "<download-url>" as shown below.

Use hda.qcow2 as VM image name, which causes integrated development environment (IDE) instead of virtio drivers environment. Else, a custom Junos OS will not work as described in chapter Default Junos OS Configuration for vJunos-switch.

Create Template Files for the VM

Continue your SSH access to your EVE-NG BMS as root. Create two template files for the supported Intel and the unsupported AMD version as shown below. The unique Qemu parameters that are required to start the image are shown in bold below. A Stop-Command in the UI is added shutdown: 0 for the community version that enables a graceful shutdown. Else, you might run into issues as described in chapter Deployment and Feature Restrictions of vJunos-switch VM.

Run the following command for the system (and the UI) to know your template changes:

Optional: Attach Customized Junos OS Configuration

vJunos-switch similar to Juniper MX Series router, comes with almost no default Junos OS configuration. Hence, to start a new VM easily, use at least the minimal Junos OS configuration as shown below.

The following example creates a virtual configuration image with a predefined Junos OS configuration:

  • Enables SSH access for the root account using the password “ABC123”.
  • Enables fxp0 to get a DHCP lease for allowing SSH access to the image.
  • Sets an external global name-server.
  • Enables LLDP to view each link on other nodes in your network.

The default vJunos-switch image activates only the first 10 ge-0/0/x interfaces, which is enough. But with Junos OS Release 23.2 or later, you can activate maximum of 96 interfaces. So, you can add commands as shown below to have that higher range and to edit the EVE-NG templates.

In the next step, you can use the original bash script make-config.sh from the vJunos-switch support site. The script creates an IDE-HD image to load your custom configuration.

A screenshot of a computer Description automatically generated

You can download the image through a link. For example: https://webdownload.juniper.net/swdl/dl/anon/site/1/record/168885.html

As the script does not change with every vJunos-switch release, you can create the script using the below steps using a base64 encoded gzip file.

Note:

If you plan to onboard vJunos-switch to a Mist Cloud: You can directly connect VM to the Mist Cloud. Then, use the embedded device adoption commands to add the VM to the inventory. Review chapter Default Junos OS Configuration for vJunos-switch and then run the following example there before you create the final configuration disk.

Use the following two CLI commands to create an image called hdb.qcow2 in your custom configuration.