Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Set Up the JET VM

Overview

JET provides a development environment that you can download from the Juniper Networks download site. The JET bundle includes a virtual machine (VM) packaged as a vagrant file, the JET toolchain, plug-ins, and other tools and libraries that are required for developing on-device or off-device applications. The JET VM is based on 64-bit Ubuntu 12.04 long-term support release.

If you are developing an application with a dependency on C or C++ modules or developing a signed application, you must use the JET VM for JET application development.

Download the Packages You Need

To use the JET VM, download and install the following packages:

  • Vagrant

    Vagrant (https://www.vagrantup.com/) is a software that creates and configures virtual development environments. You can think of it as a higher-level wrapper around virtualization software such as VirtualBox (https://www.virtualbox.org/wiki/Downloads). You can use Vagrant to manage the JET development VM.

    To download Vagrant, go to https://www.vagrantup.com/ and download Vagrant for your system’s platform (Windows, Mac, or Linux).

  • VirtualBox

    For the JET VM, Juniper Networks supports only the VirtualBox hypervisor. To download and install VirtualBox:

    1. Go to https://www.virtualbox.org/wiki/Downloads.

    2. Download and install the VirtualBox package for your platform and the VirtualBox extension package.

    3. Enable hardware virtualization support on your machine BIOS if it is not already enabled.

  • JET Files

    Download the JET VM from the Juniper Networks downloads website in the form of the following packages:

    • JET client IDL library

    • JET sandbox and toolchain file

    • JET-vagrant.zip file

Initialize Your Virtual Machine

To start the JET VM:

  1. Create a jet-vagrant directory.
  2. Extract the JET-vagrant.zip file you downloaded from the Juniper Networks download site to the jet-vagrant directory.
  3. Change to the jet-vagrant directory where you have extracted the JET-vagrant.zip file.
  4. Run the vagrant up command in the jet-vagrant directory.
    Note:

    Before using the JET VM, wait for the installation of all the packages after running the vagrant up command.

    If needed, use the following default login credentials:

Set Up Your Virtual Machine Environment

To set the PATH variable and prepare the JET VM:

  1. Extract and install the junos-jet-XX.YRZ.S.tar.gz package using the ./install command.
    Note:

    Run the sudo ./install command if you are not logged in as root user.

    In the junos-jet-XX.YRZ.S.tar.gz package name:

    • XX is the main release number of the product, for example, 18.

    • Y is the minor release number of the product, for example, 3.

    • R is the type of software release, for example, R for FRS or maintenance release.

    • Z is the build number of the product, for example, 1, indicating the FRS rather than a maintenance release.

    • S is the spin number of the product, for example, 13.

  2. Open a terminal in the VM.
  3. Add the absolute path to the /junos-jet-XX.YRZ.S.tar.gz/bin directory to the PATH variable in .bashrc.
  4. Run the following command to display the JET XX.YRZ.S.tar.gz path in the output:
  5. Run the env command to ensure the PATH variable contains the directory path you just added.

You are ready to develop applications in the JET VM.