Menu Close

Running JunoS vMX 12.1 within UNetLab

The article describes how to run Junos vSRX box within UNL. 

Initial state, prerequisities and requirements

My working environment includes:


Be able to run Junos vSRX within Virtualbox (and probably then in GNS3) I had to do following steps.

1. Direct import of the ova image into VBox does not work, so we need to extract partial parts from the ova file. So go where is your ova image file and then unarchive

tax xvf NAME.ova

in my case

tar xvf media-srx-ffp-vsrx-vmdisk-15.1X49-D15.4.ide.ova

within the folder several new files appears including .pem, .cert, . vmdk, .mv, .ovf

ls -al

total 6872984
drwxr-xr-x 2 palo palo       4096 Dec 14 14:56 .
drwxr-xr-x 3 palo palo       4096 Dec 14 15:14 ..
-rw-r--r-- 1 palo palo       3684 Jul 31  2015 certchain.pem
-rw-r--r-- 1 palo palo       2474 Jul 31  2015 media-srx-ffp-vsrx-vmdisk-15.1X49-D15.4.cert
-rw-r--r-- 1 palo palo 2156756992 Jul 31  2015 media-srx-ffp-vsrx-vmdisk-15.1X49-D15.4-disk1.vmdk
-rw-r--r-- 1 palo palo        253 Jul 31  2015
-rw-r--r-- 1 palo palo      50948 Jul 31  2015 media-srx-ffp-vsrx-vmdisk-15.1X49-D15.4.ovf
-rw-r--r-- 1 palo palo 2156820480 Nov  5  2015 media-srx-ffp-vsrx-vmdisk-15.1X49-D15.4.ide.ova

2. Then we need to convert vmdk disk to qcow2 format. The name of the image have to be hda.qcow2

qemu-img convert -f vmdk -O qcow2 media-srx-ffp-vsrx-vmdisk-15.1X49-D15.4-disk1.vmdk hda.qcow2

3. Using WinSCP of FileZilla connect to your UNL server (VmWare, VBox, LXC, HW). Within UNL server go to the folder


and create there a folder which name have to start vsrx-xy, in my case I have created vsrx-15.1

Upload your hda.qcow2 file there.

4. Log in on your UNL server and run 

/opt/unetlab/wrappers/unl_wrapper -a fixpermissions

5. Create your lab and paste a Node , where you select Template Juniper vSRX. Do not forgett assign 2 CPUs and at least 3GB of RAM, ideal 4GB.



6. Run the node and start to play!

Rate this post

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.