Zedmos

2. Installation

This chapter installs the appliance from the installer media. If you wrote the ready-made image (zedmos.img) straight onto the target disk, there is nothing to install — skip to First boot.

2.1 Boot the installer

Put the stick or disc in the machine and boot from it. On most hardware that means pressing F12, F11, F8 or Esc during power-on and picking the removable device; on some, the boot order has to be changed in the firmware setup.

The boot loader appears first, with the product's name and a countdown. Let it run, or press Enter to boot immediately. Single-user mode and the other loader options are there for recovery and are not needed for an installation.

The boot loader
The boot loader

"Already installed on ada0"? If Zedmos is already on one of the machine's disks, the installer says so before anything else and offers to power off. It means the machine started from the stick instead of from its disk: power off, remove the stick, power on. Choose Installer only if you want to install again, which erases that disk.

Nothing on screen? If the machine has no video output, you booted a VGA medium on a headless appliance. Write the serial medium instead and connect at 115200 8N1.

2.2 Keyboard layout

The first screen is Keymap Selection.

Keymap Selection
Keymap Selection

Pick the layout of the keyboard attached to this appliance — the list includes tr (Turkish-Q) and tr.f (Turkish-F) — or choose Skip to keep the US layout.

This choice matters more than it looks: the next thing you type is a password, and a mistyped password on an unfamiliar layout is a support call.

On a few machines the installer also offers a Firmware Workaround at this point — it recognises models with known BIOS quirks around booting from GPT partitions. If you are asked, accept it; the workaround is harmless on hardware that does not need it and is the difference between booting and not on hardware that does.

2.3 Choose how to install

The main menu offers eight tasks:

The installer's main menu
The installer's main menu

EntryDoes
Install (UFS)A single disk with a UFS root. Simple, modest memory requirements. Recommended unless you want what ZFS offers.
Install (ZFS)A single disk with a ZFS root: snapshots, checksums and boot environments — which is what makes System → Snapshots able to roll the whole operating system back. Wants more RAM.
Other Modes >>Mirrors, RAID-Z, disk encryption and manual partitioning. See 2.5.
Import ConfigInstalls and then loads a configuration you bring with you. The path to replacing hardware: install, import, done.
Password ResetNot an installation. Boots the medium, mounts an existing installation and resets its root password.
ShellA command line, to look at the disks or read the install log (/tmp/zedmos-install.log). exit comes back to this menu. The button at the bottom of the menu opens the same shell.
Force Reboot / Force HaltLeave without installing.

For most appliances: Install (UFS) on a small disk, Install (ZFS) on a machine with 8 GB of RAM or more where you want boot environments.

2.4 Install to a disk

Pick the disk. The installer lists the disks it can see, with their size and model.

Choosing the disk
Choosing the disk

Read the model, not just the size — an appliance often has an internal disk and the USB stick you booted from, and they are both in this list.

Last Chance! The confirmation names the disk again and states what is about to happen: the disk is erased, and the system is installed with the root filesystem you chose, with 8 GB of swap on disks of 30 GB and up, 2 GB otherwise. The default answer is No; you have to choose Yes deliberately.

The last confirmation before the disk is erased
The last confirmation before the disk is erased

This is the last point at which nothing has been destroyed. Everything on the named disk is gone from here on.

Erasing means more than writing a new partition table. The installer also clears what the previous system left inside its partitions, such as the labels of an old ZFS pool or the metadata of a mirror or RAID array. Before it copies anything, it checks that nothing of the kind is left. This is what makes it safe to install over a machine that ran another FreeBSD-based firewall (OPNsense, pfSense, or a product built on them) or an earlier ZFS installation: an old ZFS pool left on the disk is what the boot loader would start instead of the new system. If the check finds one, the installation stops and names the partition that carries it.

Installation Progress copies the system and takes a few minutes; the disk and the machine decide how many.

Installation Progress
Installation Progress

Final Configuration then offers two entries:

Final Configuration
Final Configuration

  • Root Password — set it now. The password you type here becomes the console and SSH password and the web panel's password, so the appliance does not come up with the factory default. Type it twice; the installer refuses a mismatch.

Setting the root password
Setting the root password

  • Complete Install — confirms and moves on.

Installation Complete names the disk and the order of what comes next:

Installation Complete
Installation Complete

  1. Power off. This is the default.
  2. Remove the USB stick (or the DVD).
  3. Power on. The appliance starts from its disk.

Restart now is for a machine whose stick you have already removed. Shell opens a command line and returns to this screen.

If the installer appears again after that, the machine started from the stick, not from the disk, and the installer tells you so (Already installed on ada0). Remove the stick, or choose the disk in the firmware's boot menu. On a UEFI machine the installer also asks the firmware to start the new disk at the next boot. That helps on boards that would otherwise prefer the stick, but removing the stick is the reliable way.

2.5 Other Modes

Other Modes hands the disk layout to FreeBSD's own installer and then installs the appliance onto whatever that produced. Four choices:

Other Modes
Other Modes

EntryFor
Auto (ZFS)Several disks as a mirror or RAID-Z, optional GELI encryption of the pool, and swap sizing. The choice for an appliance that must survive a disk failure.
Auto (UFS)Guided single-disk UFS, the same result as the main menu's UFS entry with more control.
ManualThe partition editor. For a layout you have decided on yourself.
ShellA shell to partition by hand, then return.

Whatever the layout, the appliance itself is installed the same way afterwards, and the final password and completion screens are the ones described above.

Auto (UFS) and Manual use FreeBSD's partition editor, which does not clear an old system's ZFS labels. The installer checks the finished layout before it copies anything. If it finds an old pool's labels, it offers to erase the disk, and you lay it out again on a clean disk. Auto (ZFS) clears old labels itself.

Encryption has a cost you must plan for. A GELI-encrypted pool needs its passphrase at every boot, typed on the console. An appliance in a locked rack in another city cannot be rebooted remotely once you enable it.

2.6 First boot

The first boot does more than later ones, and it does it without asking:

The first boot
The first boot

  1. Generates the appliance's SSH host keys and its own TLS certificate.
  2. Brings up the interfaces: the uplink asks for an address by DHCP; the internal interface comes up on 192.168.1.1/24.
  3. Starts the DHCP server on the internal interface, handing out 192.168.1.100–192.168.1.199.
  4. Builds and loads the firewall ruleset: the internal network may reach the internet, unsolicited traffic from the uplink is blocked.
  5. Starts the resolver, the time service and the management daemon.

It ends at a login prompt on the console.

What the first boot reports when it is finished
What the first boot reports when it is finished

The Network line of that summary is about the way out. If the uplink got no address from DHCP, it says no internet route — igc0 got no DHCP lease: check the uplink cable and the DHCP server upstream. The panel is still reachable on the internal interface, at the address the Web UI line shows.

Give it a minute after that before judging anything: the last services start a little after the first ping answers.

Sign in on the console as root. On an appliance installed from the installer, the password is the one you set during installation; on one written from the ready-made image, it is zedmos. The console menu appears immediately — that is the subject of the next chapter.

Reach the panel from a machine on the internal network: https://192.168.1.1/. Your browser will warn about the certificate, because the appliance issued it to itself. Accept it for now and replace the certificate later (System → Trust).

2.7 If the installed system does not start

What you seeWhat it meansWhat to do
The installer again, or Already installed on ada0The machine started from the stick, not from its disk.Power off, remove the stick, power on. Or choose the disk in the firmware's boot menu (F11, F12 or Esc during power-on; on UEFI machines the entry is called Zedmos).
zio_read error: 5, ZFS: i/o error - all block copies unavailable, then an OK promptThe disk held a ZFS system before, and that pool's labels are still on it. The boot loader tries the old pool instead of the new installation. Installers before 26.10.110 did not clear them.Install again with 26.10.110 or later, which erases them. See below for an older stick.
The previous system starts (another firewall, often with Bus error or pager read error messages)The same cause, where the old pool was still readable. While it runs, the old system and the new one write over each other.Install again with 26.10.110 or later. Do not keep using the old system.

With an installer older than 26.10.110: boot the stick, open a command line (choose Single user in the boot menu, and answer /bin/csh when it asks for a shell), then clear the old labels from the partition the new system goes on. On a single-disk installation that is the disk's fourth partition. gpart show ada0 lists them.

# zpool labelclear -f /dev/ada0p4

Then install again.