🐟Provisioning pfsense on libvirtd🥫

1 min read

The example here previously worked for something like openwrt:
When provisioning pfsense the edge device is configured in the same manner as for openwrt. Here are the next steps:
wget https://atxfiles.netgate.com/mirror/downloads/pfSense-CE-2.7.2-RELEASE-amd64.iso.gz
gunzip pfSense-CE-2.7.2-RELEASE-amd64.iso.gz
sudo mv pfSense-CE-2.7.2-RELEASE-amd64.iso /var/lib/libvirt/images/pfsense.iso
sudo qemu-img create -f qcow2 /var/lib/libvirt/images/pfsense.qcow2 9G
sudo virt-install --connect qemu:///system \
--name="pfsense" \
--cdrom /var/lib/libvirt/images/pfsense.iso \
--disk path=/var/lib/libvirt/images/pfsense.qcow2,size=9,bus=virtio,format=qcow2 \
--memory=2048 \
--graphics vnc,listen=0.0.0.0 \
--os-variant "freebsd11.2" \
--vcpus 2 \
--cpu host \
--os-type linux \
--network bridge=br1,model=virtio \
--network bridge=br0,model=virtio \
--console pty,target_type=serial \
--noautoconsole \
--wait 0
Now you need to install Tiger VNC and remote attach to the VNC port on the edge. Complete the initial install and it will reboot. Now complete the final install and the NFV is up and running!
2
Subscribe to my newsletter
Read articles from Ronald Bartels directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Ronald Bartels
Ronald Bartels
Driving SD-WAN Adoption in South Africa