Follow these instructions to install FreeBSD using the unattended bsdinstall process

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!

./mfsbsd_clean.sh zroot ada0 ada1

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

7. Configure your server settings

Copy the file depenguin_settings.sh.sample to depenguin_settings.sh and edit for your server's details

cp depenguin_settings.sh.sample depenguin_settings.sh

nano depenguin_settings.sh

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

conf_hostname="depenguintest"
conf_interface="igb0"
conf_ipv4="1.2.3.4"
conf_ipv6="abcd:xxxx:yyyy:zzzz::p"
conf_gateway="6.7.8.9"
conf_nameserveripv4one="185.12.64.1"
conf_nameserveripv4two="185.12.64.2"
conf_nameserveripv6one="2a01:4ff:ff00::add:1"
conf_nameserveripv6two="2a01:4ff:ff00::add:2"
conf_username="myusername"
conf_pubkeyurl="http://url.host/keys.txt"
conf_disks="ada0 ada1" # or ada0 | or ada0 ada1 ada2 ada3 | or nvme0n1 | or nvme0n1 nvme1n1
conf_disktype="mirror" # or stripe for single disk, or raid10 for 4 disks
run_installer="1" # set to 1 to enable installer

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

./depenguin_bsdinstall.sh

When complete mfsBSD will shutdown automatically.

9. Exit qemu and reboot

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

reboot

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