Building a Juniper vPTX (vJunos EVO) Libvirt Box¶
Juniper vPTX (known as vJunos EVO
or vJunos Evolved
) is supported by the netlab libvirt package command. To build it:
Create an empty directory on a Ubuntu machine with libvirt and Vagrant.
Download the
Juniper vPTX
QCOW image from here, and place into that directoryExecute netlab libvirt package vptx virtual-disk-file-name and follow the instructions
Warning
Use netlab release 1.7.0 or higher with Juniper vPTX devices.
Juniper vJunos EVO uses Linux instead of BSD as the underlying OS. The management interface name became
re0:mgmt-0
.If you’re using a netlab release older than 1.8.2, or if you’re using a Linux distribution other than Ubuntu, please read the box-building caveats first.
Initial Device Configuration¶
Initial device configuration is copied from a disk image created by the installation process. You’ll have to save it and shut down the VM. netlab libvirt config vptx command displays the build recipe:
Creating initial configuration for Juniper vPTX (vJunos EVO)
===============================================
Initial configuration for the vPTX device is prepared in a bootstrap disk image (pre-install hook).
After the system boots and displays the 'login' prompt:
* Login with username 'vagrant' and password 'Vagrant'
(it might take a while for the username to be recognized)
* Verify that the VM got a management IP address with
'show interfaces terse | match re0'
* Verify that the FPC 0 is online with
'show chassis fpc'
* Shut down the VM with 'request system power-off', confirm with 'yes'.
It might take a while for the VM to power off.
* If the device starts rebooting instead of shutting down, disconnect
from the console (ctrl-] usually works).
NOTES:
* The management traffic is isolated in a dedicated management VRF (mgmt_junos).