Preparing a VM for pfSense 2.8

gusto

Well-Known Member
Feb 10, 2018
108
3
58
25
I recently installed the latest PVE 9.1 and migrated the VM and LXC to the new PVE.
I also migrated the pfSense 2.7.2 VM.
I am not a fan of upgrading, but I like to install the latest system.
Here is the recommended installation of pfSense on proxmox.
I assume this documentation is quite old.
Does anyone have a best practice on how to prepare a VM for pfsense 2.8.0?

BTW
I just recently got around to installing a debian VM using cloud init (qcow2, raw) and it is a great help.
I am looking for something similar for pfsense, but I have no problem installing manually from an ISO as well
 
I understand, but I need to prepare the VM for Proxmox VE.
The pfSense forum doesn't give me any advice on how to prepare the VM.
 
Does anyone have a best practice on how to prepare a VM for pfsense 2.8.0?

Its all documented in the article you linked. Its still just an ordenary ISO like any other OS. The VM settings are documented just fine aswell.
 
  • Like
Reactions: Johannes S and news
As I wrote at the beginning, I don't like upgrades. After all, I've been using pfSense since 2020 and I've already done one upgrade.
It seems to me that I have some ballast in psSense, so I'd rather use a clean install and restore the configuration via xml.
 
AI prepared a working script for me.
You only need to set
VM_NAME
STORAGE
ISO_PATH
VM ready in 3 seconds

Code:
#!/bin/bash

VM_ID=$(pvesh get /cluster/nextid)
VM_NAME="pfSense-2.8.0"
STORAGE="local-zfs"
ISO_PATH="local:iso/netgate-installer-v1.1.1-RELEASE-amd64.iso"

echo "Create VM $VM_ID ($VM_NAME)..."

qm create $VM_ID \
  --name "$VM_NAME" \
  --memory 2048 \
  --cores 2 \
  --sockets 1 \
  --cpu host \
  --ostype other \
  --machine q35 \
  --scsihw virtio-scsi-single \
  --net0 virtio,bridge=vmbr0 \
  --net1 virtio,bridge=vmbr1 \
  --onboot 1 \
  --tablet 1


qm set $VM_ID --virtio0 "$STORAGE:10",iothread=1
qm set $VM_ID --ide2 "$ISO_PATH",media=cdrom
qm set $VM_ID --boot order="virtio0;ide2;net1"
 
See if this post helps at all

 
AI prepared a working script for me.
You only need to set

VM ready in 3 seconds

Code:
#!/bin/bash

VM_ID=$(pvesh get /cluster/nextid)
VM_NAME="pfSense-2.8.0"
STORAGE="local-zfs"
ISO_PATH="local:iso/netgate-installer-v1.1.1-RELEASE-amd64.iso"

echo "Create VM $VM_ID ($VM_NAME)..."

qm create $VM_ID \
  --name "$VM_NAME" \
  --memory 2048 \
  --cores 2 \
  --sockets 1 \
  --cpu host \
  --ostype other \
  --machine q35 \
  --scsihw virtio-scsi-single \
  --net0 virtio,bridge=vmbr0 \
  --net1 virtio,bridge=vmbr1 \
  --onboot 1 \
  --tablet 1


qm set $VM_ID --virtio0 "$STORAGE:10",iothread=1
qm set $VM_ID --ide2 "$ISO_PATH",media=cdrom
qm set $VM_ID --boot order="virtio0;ide2;net1"
I use pfsense as the only router/firewall in the network (there is a gpon modem in bridge mode in front of it).
pfSense from ver. 2.8.0 does not use the regular ISO installation, but online installation. After booting the ISO, you need to configure the WAN (IP static/dynamic, PPPoE, VLAN ....)
My ISP uses PPPoE and even though I configured it correctly, the system could not connect to the netgate servers and the download did not take place.
I had to use the old offline ver. pfsense 2.7.2.
Only then did I update to 2.8.1