Create Your Own Unetlab Juniper vMX Image

According to Unetlab, Unetlab support the following version vMX:

14.1R1.10-domestic and 14.1R4.8-domestic

I can get the 14.1R1.10 easily from Internet. However, I can’t find a packaged 14.1R4.8 image for Unetlab. I went to Unetlab and ask for help. Unfortunately, nobody responded me. As I need to use the newer version for my eVPN lab (eVPN HA), I had to try my own best to get one.

I downloaded the 14.1R4.8 doemestic img file from Internet: jinstall-vmx-14.1R4.8-domestic.img

Interestingly, I used CLI qemu-img and found that the Juniper image file is qcow2 format! cheeky

[root@localhost tmp]# qemu-img info jinstall-vmx-14.1R4.8-domestic.img | grep file.format
file format: qcow2

Like adding a normal image, I created a new folder /opt/unetlab/addons/qemu/vmx-14.1R4.8. Then uploaded the file “jinstall-vmx-14.1R4.8-domestic.img” to this newly created folder and renamed the files as “hda.qcow2”.

Till now, in the Unetlabe GUI, I am able to select this new Junos version for my vMX. Although I can power on this new version vMX, I still can’t really use it for my eVPN lab. The reason is:

Since 14.1R4, Juniper vMX will try to connect to a remote PFE, which means a different virtual machine as PFE. To change this default behaviour and use local PFE, I need to add a new line

vm_local_rpio=”1″  to /boot/loader.conf and save the file. The change need reboot to take effect. After reboot, I am able to use this new Juniper vMX in my eVPN lab.

root@vMX> show version
Hostname: vMX
Model: vmx
Junos: 14.1R4.8
JUNOS Base OS Software Suite [14.1R4.8]
JUNOS Base OS boot [14.1R4.8]
JUNOS Crypto Software Suite [14.1R4.8]
JUNOS Online Documentation [14.1R4.8]
JUNOS Kernel Software Suite [14.1R4.8]
JUNOS Routing Software Suite [14.1R4.8]
JUNOS Runtime Software Suite [14.1R4.8]
JUNOS Services AACL PIC package [14.1R4.8]
JUNOS Services Application Level Gateway [14.1R4.8]
JUNOS Services Application Level Gateway (xlp64) [14.1R4.8]
JUNOS Services Application Level Gateway (xlr64) [14.1R4.8]
JUNOS AppId Services PIC Package [14.1R4.8]
JUNOS Services AppId PIC package (xlr64) [14.1R4.8]
JUNOS Border Gateway Function PIC package [14.1R4.8]
JUNOS Services Captive Portal and Content Delivery PIC package [14.1R4.8]
JUNOS Services HTTP Content Management PIC package [14.1R4.8]
JUNOS Services HTTP Content Management PIC package (xlr64) [14.1R4.8]
JUNOS IDP Services PIC Package [14.1R4.8]
JUNOS Services JFLOW PIC package [14.1R4.8]
JUNOS Services JFLOW PIC package (xlp64) [14.1R4.8]
JUNOS Services LL-PDF PIC package [14.1R4.8]
JUNOS MobileNext PIC package [14.1R4.8]
JUNOS MobileNext PIC package (xlr64) [14.1R4.8]
JUNOS Services Mobile Subscriber Service Container package [14.1R4.8]
JUNOS Services Mobile Subscriber Service PIC package (xlr64) [14.1R4.8]
JUNOS Services NAT PIC package [14.1R4.8]
JUNOS Services NAT PIC package (xlp64) [14.1R4.8]
JUNOS Services NAT PIC package (xlr64) [14.1R4.8]
JUNOS Services PTSP PIC package [14.1R4.8]
JUNOS Services RPM PIC package [14.1R4.8]
JUNOS Services RPM PIC package (xlp64) [14.1R4.8]
JUNOS Services Stateful Firewall PIC package [14.1R4.8]
JUNOS Services Stateful Firewall PIC package (xlp64) [14.1R4.8]
JUNOS Services Stateful Firewall PIC package (xlr64) [14.1R4.8]
JUNOS BSG PIC package [14.1R4.8]
JUNOS Services Crypto Base PIC package [14.1R4.8]
JUNOS Services Crypto Base PIC package [14.1R4.8]
JUNOS Services Crypto Base PIC package(xlr64) [14.1R4.8]
JUNOS Services IPSec PIC package [14.1R4.8]
JUNOS Services IPSec PIC package [14.1R4.8]
JUNOS Services IPSec PIC(xlr64) package [14.1R4.8]
JUNOS Services SSL PIC package [14.1R4.8]
JUNOS Packet Forwarding Engine Trio Simulation Package [14.1R4.8]

One thought on “Create Your Own Unetlab Juniper vMX Image

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s