pfSense FW 2.5.2

Versions this guide is based on:

EVE Image Folder Name Downloaded Filename Version vCPUs vRAM Console
pfsense-pfs-2.5.2 pfSense-CE-2.5.2-RELEASE-amd64.iso.gz 2.5.2 1 2048 VNC
Instructions
Other versions should also be supported following bellow’s procedure.

1. Download pfSense FW image pfSense-CE-2.5.2-RELEASE-amd64.iso.gz from: https://www.pfsense.org/download/

2. SSH to your EVE and create directory for pfSense node.

mkdir /opt/unetlab/addons/qemu/pfsense-2.5.2/

3. Upload the pfSense-CE-2.5.2-RELEASE-amd64.iso.gz image to the created directory using for example FileZilla or WinSCP.

root@eve-ng:~# cd /opt/unetlab/addons/qemu/pfsense-2.5.2/
root@eve-ng:/opt/unetlab/addons/qemu/pfsense-2.5.2# ls
pfSense-CE-2.5.2-RELEASE-amd64.iso.gz
root@eve-ng:/opt/unetlab/addons/qemu/pfsense-2.5.2#

4. Go to newly created folder and unzip archived .gz file to obtain ISO

root@eve-ng:~# cd /opt/unetlab/addons/qemu/pfsense-2.5.2/
root@eve-ng:/opt/unetlab/addons/qemu/pfsense-2.5.2# gunzip pfSense-CE-2.5.2-RELEASE-amd64.iso.gz
root@eve-ng:/opt/unetlab/addons/qemu/pfsense-2.5.2# ls
pfSense-CE-2.5.2-RELEASE-amd64.iso
root@eve-ng:/opt/unetlab/addons/qemu/pfsense-2.5.2#

5. Rename original ISO filename to cdrom.iso. Case sensitive

root@eve-ng:~# cd /opt/unetlab/addons/qemu/pfsense-2.5.2/
root@eve-ng:/opt/unetlab/addons/qemu/pfsense-2.5.2# ls
pfSense-CE-2.5.2-RELEASE-amd64.iso
root@eve-ng:/opt/unetlab/addons/qemu/pfsense-2.5.2# mv pfSense-CE-2.5.2-RELEASE-amd64.iso cdrom.iso
root@eve-ng:/opt/unetlab/addons/qemu/pfsense-2.5.2# ls
cdrom.iso virtioa.qcow2
root@eve-ng:/opt/unetlab/addons/qemu/pfsense-2.5.2#
6. Create pfSense 8GB HDD disk:
root@eve-ng:/opt/unetlab/addons/qemu/pfsense-2.5.2# /opt/qemu/bin/qemu-img create -f qcow2 virtioa.qcow2 8G
Formatting 'virtioa.qcow2', fmt=qcow2 size=8589934592 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
root@eve-ng:/opt/unetlab/addons/qemu/pfsense-2.5.2#
root@eve-ng:/opt/unetlab/addons/qemu/pfsense-2.5.2# ls
cdrom.iso virtioa.qcow2
root@eve-ng:/opt/unetlab/addons/qemu/pfsense-2.5.2#

7. Create new lab and add newly created pfsense node on topology, start it. SELECT on the template VNC console! Follow installation steps on the screen to finish pfSense installation

8. Select HDD, and install pfSense

 

9. Select YES and type poweroff

 

 

10. On the left side-bar within the lab in the EVE Web-UI choose “Lab Details” to get your lab’s UUID details: In this example: UUID: 85bd7141-e2a7-43e6-8307-bfa7b301a12b

11. Find out the POD ID of your used and the Node ID of your newly installed node.

The POD number is assigned to your username, and can be found in the EVE GUI, Management/User Management. The Admin user uses POD number 0 by default. In the example below user Pod 10 is creating this node.

12. The Node ID can be obtained by right clicking the node on the topology. In this Example it is 1

 

13. From the EVE CLI, locate the installed image and commit your changes to be used as default for further use in EVE-NG:

root@eve-ng:~# cd /opt/unetlab/tmp/10/85bd7141-e2a7-43e6-8307-bfa7b301a12b/1/
root@eve-ng:/opt/unetlab/tmp/10/85bd7141-e2a7-43e6-8307-bfa7b301a12b/1# ls
cdrom.iso l1down_0 l1down_1 mon-sock mon2-sock qmp-sock virtioa.qcow2
root@eve-ng:/opt/unetlab/tmp/10/85bd7141-e2a7-43e6-8307-bfa7b301a12b/1# 
root@eve-ng:/opt/unetlab/tmp/10/85bd7141-e2a7-43e6-8307-bfa7b301a12b/1# /opt/qemu/bin/qemu-img commit virtioa.qcow2
Image committed.
root@eve-ng:/opt/unetlab/tmp/10/85bd7141-e2a7-43e6-8307-bfa7b301a12b/1# 

14. Remove cdrom.iso from /opt/unetlab/addons/qemu/win-7test/

root@eve-ng:~# cd /opt/unetlab/addons/qemu/pfsense-2.5.2/
root@eve-ng:/opt/unetlab/addons/qemu/pfsense-2.5.2# rm -f cdrom.iso
root@eve-ng:/opt/unetlab/addons/qemu/pfsense-2.5.2# ls
virtioa.qcow2
root@eve-ng:/opt/unetlab/addons/qemu/pfsense-2.5.2# 

DONE

15. Fix permissions:

/opt/unetlab/wrappers/unl_wrapper -a fixpermissions

Default username is admin password pfsense.