Change to root.
sudo su -
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.
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
conf_disktype="mirror" # or stripe for single disk, or raid10 for 4 disks
run_installer="1" # set to 1 to enable installer
tweak_ax102="0" # only enable for Hetzner AX102 servers
./depenguin_bsdinstall.sh
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.
Back in the rescue console, qemu should exit automatically, else press ctrl+c to exit qemu, then type
reboot
This will exit the rescue console and boot into FreeBSD.
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
| home | bsdinstall | zfsinstall | rescuetools | ansible | eli5 | about | news | support | github |