Step 2

Create the VM and install

Create a small Generation 2 VM with two network cards, turn off Secure Boot and install pfSense.

20 minutesRun on the Hyper-V host

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)
SettingWhy
Secure Boot offpfSense will not start with it on.
First card on CON-WANpfSense names cards in order: the first becomes hn0, the second hn1.
1 processor, 1 GBEnough for a school lab or a small site.

Install

  1. Start the VM and open its console
  2. Accept the terms and choose Install
  3. Set the WAN

    Pick hn0. Use DHCP, or a static address if you used the Wi-Fi method: 192.168.100.10/24, gateway 192.168.100.1, DNS 1.1.1.1.

  4. Set the LAN

    Pick hn1 and give it 10.0.1.1/24.

  5. Choose pfSense CE and the disk

    Accept ZFS with the single disk.

  6. 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.

Your progress is kept in this browser only.