Home Juniper vSRX on Proxmox VE
Post
Cancel

Juniper vSRX on Proxmox VE


Introduction:

Juniper vSRX is a virtualized version of SRX, which is a popular choice for network security. In this short post I will explain the steps to spin up a vSRX on a Proxmox server.


0. Prerequisite

  • This guide assumes you have a working Proxmox VE
  • You will also need a vSRX image (qcow2) - it can be downloaded from Juniper Networks website. Juniper also offers evaluation programs that allows to test and assess their products, such as vSRX, vMX and vQFX with a trial period.

1. Copy vSRX image

After downloading a vSRX image in QEMU format (.qcow2), first thing we need to do is to copy vSRX image from the local PC to proxmox server

1
scp junos-vsrx3-x86-64-20.2R1.10.qcow2 [email protected]:/var/tmp

image-20230927224505798

2. Create VM

Login to Proxmox server and check the image is copied over. You can access shell from the Proxmox GUI.

image-20230927230015881

image-20230927224638709

Click “Create VM” and configure the VM

1
2
3
4
5
General->Name:    Name for the VM
OS:               "Do not use any media"
OS -> Guest OS:   Linux
СPU -> Cores:     2
Memory:           4096

image-20230927230253998

image-20230927230645700

image-20230927230747966

image-20230928000100490

image-20230928000145880

image-20230928000336466

image-20230928000821515

2. Configure VM

Next we are going to replace the harddisk with the SRX image.

Select Created VM -> Hard Disk -> Detach Hard disk

image-20230928000952940

Go back to the Proxmox Shell and import the image to the VM.
qm importdisk <vmid> <source> <storage> [OPTIONS]
VM is referred by the ID and in this case VMID is 100

1
qm importdisk 100 /var/tmp/junos-vsrx3-x86-64-20.2R1.10.qcow2 local-lvm

This will add new disk to the VM. To make it active, go back to the VM -> Select Disk 1 -> Click Edit -> Add

image-20230928002058385

Click Add -> Serial Port -> Add Serial Port 0

image-20230928002648262

Go to Options -> Boot Order -> Enable boot from Disk 1

image-20230928002402732

Start the VM and connect with xterm.js. This will provide you with connection to the serial port of the vSRX.

image-20230928003112092

And here is a result with working Juniper vSRX.

image-20230928003228599

This post is licensed under CC BY 4.0 by the author.

Deploy Servers with Terraform

-

Comments powered by Disqus.