In this short article I will explain you how deploy vSRX on the Proxmox.

Prerequire

  • Configured and working Proxmox
  • Downloaded vSRX from Juniper site
  • SCP or other tool

In the sample I used:

  • Proxmox 5.2-5
  • Juniper vSRX 15.1X49-D140.2
  • Linux scp command

Step 1 Copy vSRX image to Proxmox host

After downloading image from Juniper site with vSRX and after checking checksum we can send image to our Proxmox host.

Copy vSRX to Proxmox
Copy vsrx image to Proxmox VE
$ scp media-vsrx-vmdisk-15.1X49-D140.2.qcow2 root@10.234.5.108:/var/tmp

In this example I used scp tool, of course you can use eg. WinSCP (if you are using Windows OS) or other tool.


Step 2 Create Virtual Machine from GUI

This is the time when we create VM machine in our Proxmox. To do this you must press Create VM from right-top menu.

Proxmox-1
Proxmox – VM – General tab
Proxmox-5
Proxmox – VM – Memory tab
Proxmox-2
Proxmox – VM – OS tab
Proxmox-6
Proxmox – VM – Network tab
Proxmox-4
Proxmox – VM – CPU tab
Proxmox-3
Proxmox – VM – Hard Disk tab

We have seven tabs:

  • General
    • Node: bl08
    • VM ID: 154 (automatically assigned)
    • Name: mw-vsrx-03
  • OS
    • Select: Do not use any media
  • Hard Disk: press Next
  • CPU
    • Socket: 1
    • Cores: 2
    • Type: host
  • Memory
    • Memory (MiB): 4096
  • Network
    • Bridge: vmbr0
    • VLAN Tag: 2446
    • Model: Virtl0 (paravirtualized)
  • Press Confirm

After this step on the left side we can see now our VM with its ID.


Step 3 Import disk and and serial port to the Virtual Machine

Here we must import vSRX image to our VM. The most important thing is VM ID; in our example we use VM ID 154. After proper importing qcow2 to Proxmox host we must add also serial0 to our VM.

Proxmox-9

$ qm importdisk 154 /var/tmp/media-vsrx-vmdisk-15.1X49-D140.2.qcow2 FNS

QM Importdisk syntax

$ qm importdisk    [OPTIONS]
Import an external disk image as an unused disk in a VM. The image format has to be supported by qemu-img(1).
<vmid>: <integer> (1 - N)
The (unique) ID of the VM.
<source>: <string>
Path to the disk image to import
<storage>: <string>
Target storage ID
--format <qcow2 | raw | vmdk>
Target format

Step 4  Add imported disk to VM

Now we must Deatach old disk from Proxmox GUI and Remove then. After that we can add imported disk from the step 3.

Click Hard Disk (scsi0) > Detach Proxmox deatach scsi0 disk

Disk was deached.Proxmox remove unused disk

Add imported disk in step 3 (Unused Disk 1) to our Virtual Machine. Proxmox machine parameters viewProxmox add SCSI disk


Step 5 Add Network Device

On this phase we must specify Network Card parameters. I deploy three Network Cards for my solution.

Proxmox-7

Proxmox-8

  • Bridge: vmbr0
  • VLAN Tag: 2446
  • Model: VirtiO (paravirtualization)
  • MAC address: leave blank

Step 6 Clean

Remove vSRX image from the local storage.

Proxmox-11


Step 7 Start VM

Just click play button.


Step 8 Connect to console port

We can use only xterm.js (!) plugin to connect to our vSRX console port.

Proxmox-12


Step 9 End result

Proxmox-13


Links:

2 thoughts on “Juniper vSRX on Proxmox VE (KVM)

  1. Perhaps I’m doing something wrong? When i start it up, it keeps rebooting and going in –

    net1: using virtio-net on 0000:00:13.0 (open)
    [Link:up TX:0 TXE:0 TX:0 RXE:0]
    Configurating (net1 ……….. No configuration methods succeeded (http://ipxe.org/040ee19)
    No more network devices

    When i interrupt the boot i’ve tried to do ifconfig -c dhcp net0 (and net1) both say connection timed out.

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.