Install FreeBSD-13.1 using bsdinstall

5. Make sure user is root

Change to root.

sudo su -

6. Optional: 🚧 wipe disks

Wipe existing disks, for example the zroot dataset and drives ada0 and ada1. This will destroy all data on the server disks!

./ zroot ada0 ada1

If prior installation exists on the disks, it must be removed, or installer will fail with error.

7. Optional: 🚧 Alter and comment out a line in /etc/fstab (for UEFI systems)

True for most very modern UEFI systems, the /boot/efi line in /etc/fstab needs to be edited to correct device, and commented out for first boot. (see issues 10 and 57)

  # Device                Mountpoint      FStype  Options         Dump    Pass#
  #/dev/nvd0p1            /boot/efi       msdosfs rw              2       2
  /dev/mirror/swap.eli            none    swap    sw              0       0

8. Configure your server settings

Copy the file to and edit for your server's details



Edit your settings by filling in the relevant values. Hetzner DNS servers are listed in this example.

conf_disks="ada0 ada1" # or ada0 | or nvme0n1 | or nvme0n1 nvme1n1
conf_disktype="mirror" # or stripe for single disk
run_installer="1" # set to 1 to enable installer

9. Run the depenguin unattended install

This script will update the INSTALLERCONFIG file used by bsdinstall with the values set above.

It will then run similar to bsdinstall script INSTALLERCONFIG for an unattended install with root-on-ZFS.


When complete mfsBSD will shutdown automatically.

10. Exit qemu and reboot

Back in the rescue console, press ctrl+c to exit qemu and then type


This will exit the rescue console and boot into FreeBSD.

11. Connect to your new server

After a few minutes to boot up, connect to your server via SSH:

ssh YOUR-USER@ip-address

Check DNS is available and then perform initial system configuration such as:

freebsd-update fetch
freebsd-update install