Create a small Generation 2 VM with two network cards, turn off Secure Boot and install pfSense.
Create the VM
Hyper-V host
$vm = "CON-FW-01" New-VM -Name $vm -Generation 2 -MemoryStartupBytes 1GB -NewVHDPath "D:\VMs\$vm\$vm.vhdx" -NewVHDSizeBytes 16GB -SwitchName "CON-WAN" Add-VMNetworkAdapter -VMName $vm -SwitchName "CON-LAN" Set-VMProcessor -VMName $vm -Count 1 Set-VMFirmware -VMName $vm -EnableSecureBoot Off Set-VM -Name $vm -CheckpointType Disabled Add-VMDvdDrive -VMName $vm -Path "D:\ISOs\pfSense-installer.iso" Set-VMFirmware -VMName $vm -FirstBootDevice (Get-VMDvdDrive -VMName $vm)
| Setting | Why |
|---|---|
| Secure Boot off | pfSense will not start with it on. |
| First card on CON-WAN | pfSense names cards in order: the first becomes hn0, the second hn1. |
| 1 processor, 1 GB | Enough for a school lab or a small site. |
Install
- Start the VM and open its console
- Accept the terms and choose Install
- Set the WAN
Pick
hn0. Use DHCP, or a static address if you used the Wi-Fi method:192.168.100.10/24, gateway192.168.100.1, DNS1.1.1.1. - Set the LAN
Pick
hn1and give it10.0.1.1/24. - Choose pfSense CE and the disk
Accept ZFS with the single disk.
- Restart when it finishes
Eject the ISO first:
Get-VMDvdDrive -VMName CON-FW-01 | Remove-VMDvdDrive.
Done when
Check
The console shows the pfSense menu with WAN and LAN addresses listed.


