Home FreeBSD Install FreeBSD 13.2

Install FreeBSD 13.2

FreeBSD Installation Guide For Beginners

By sk
15.1K views

FreeBSD 13.2 has been released a few days. FreeBSD 13.2 edition is shipped with so many updates and features. This step by step guide explains how to download the latest FreeBSD version, how to create a FreeBSD Bootable USB and how to install FreeBSD 13.2 latest edition with screenshots.

What is FreeBSD?

FreeBSD is an Unix-like, advanced operating system that can be installed in modern Servers, Desktops, Laptops and embedded platforms.

The first version of FreeBSD was released in 1993, and today it is the most widely used open source BSD operating system.

FreeBSD is the direct descendant of BSD Unix and of course it is free. It is licensed under permissive BSD license.

Download FreeBSD 13.2

Go to the FreeBSD official download page and download the suitable version for your system's architecture.

FreeBSD 13.2-RELEASE is available for the amd64, i386, powerpc, powerpc64, powerpc64le, powerpcspe, armv6, armv7, aarch64, and riscv64 architectures.

The FreeBSD installation requires at least 2-4 GB RAM and 8 GB hard drive space. However, you may need more Memory and disk space to run graphical desktop environments.

Create FreeBSD Bootable USB Medium

FreeBSD DVD ISO size is around 4.3 GB. So you may require 6 GB USB drive or more.

First, you need to create a bootable USB medium with the FreeBSD ISO file. There are many bootable USB creation tools available to create a bootable USB medium.

We have listed some of the tools to create bootable USB drive in Linux.

Command line bootable USB creation tools:

Graphical bootable USB creation tools:

If you wish to install and test FreeBSD on any hypervisor (Virtualbox, KVM, Vmware), just skip the media creation step and boot up the ISO image.

For demonstration purpose, I will be installing FreeBSD on Proxmox VE.

Install FreeBSD 13.2 Step By Step

Boot your system with FreeBSD bootable USB. You will be greeted with the FreeBSD Boot Loader menu.

Press 1 (number one) or press ENTER key to start the FreeBSD installation.

FreeBSD Boot Loader Menu
FreeBSD Boot Loader Menu

A few seconds, you will be prompted to choose one of the three options.

  1. Press ENTER to install FreeBSD on your hard drive.
  2. Select Shell and press to enter into command line mode. In commend line mode, you can partition the hard drives as per your choice before installing FreeBSD on it.
  3. The third option, Live CD will let you to try the live FreeBSD system without installing it.

Choose the "Install" option and hit ENTER to start FreeBSD installation.

Start FreeBSD Installation
Start FreeBSD Installation

Select your preferred keymap . I will go with the default keymap.

Select Keymap
Select Keymap

Enter a hostname for your FreeBSD system.

Set Hostname
Set Hostname

Choose the optional system components that you want to install on your FreeBSD system.

Select the System Components to Install
Select the System Components to Install

This is an important step. In this step, you need to choose how would you like to partition the drive. You will be prompted to choose one of the four partitioning methods as listed below.

  • Auto (ZFS) - This is the default selection. If you choose this option, the drive will be automatically partitioned with ZFS filesystem.
  • Auto (UFS) - This will automatically partition the disk with UFS filesystem.
  • Manual - It is meant for advanced users. When you selected this method, you can create customized partitions from enu options as you wish.
  • Shell - It allows the users to create customized partitions of their choice using commandline tools like fdisk, gpart etc.

Choose the partitioning method that suits you and follow the on-screen instructions to complete partitioning the drive. I will go with the default selection i.e. Auto (ZFS).

Partition Disk
Partition Disk

When Auto (ZFS) method is selected, you will see the main ZFS configuration menu that provides a number of options to control the creation of the pool. Configure the options according to your requirements.

Finally choose ">>> Install Proceed with Installation" option and hit ENTER to continue.

ZFS Configuration Menu
ZFS Configuration Menu

Next, we need to partition the disk drive and allocate space for each partition. FreeBSD installer provides six different partitioning methods to choose from.

Select Partitioning Method
Select Partitioning Method

Depending upon the use case, you can choose any one of the following partitioning method.

  • stripe - It provides maximum storage of all connected disks, but no redundancy. If just one disk fails, the data on the pool is completely lost.
  • mirror - Mirroring stores a complete copy of all data on every disk. It provides a good read performance because the data is read from all disks in parallel. On the contrary, the Write performance is slower because the data is written to all disks in the pool. Allows all but one disk to fail. To use this option, you must have at least two disks.
  • raid10 - Striped mirrors. Provides the best performance, but the least storage. This option needs at least an even number of disks and a minimum of four disks.
  • raidz1 - Single Redundant RAID. It requires at least three disks and allows one disk to fail concurrently.
  • raidz2 - Double Redundant RAID. It requires at least four disks and allows two disks to fail concurrently.
  • raidz3 - Triple Redundant RAID. It requires at least five disks and allows three disks to fail concurrently.

I have only one disk and I go with the "stripe" option.

For other partitioning methods, please head over to the Allocating Disk Space section in FreeBSD handbook.

Once the partitioning method is selected, a list of available disk drives will be listed in the next menu. You need to select the one or more devices to make up the ZFS pool.

Disk Selection
Disk Selection

You will now see a warning message that says the contents of the selected disk(s) will be deleted. make sure you don't have anything important in the disk. Choose "Yes" and and hit ENTER key to continue.

Delete Contents Of Selected Disks
Delete Contents Of Selected Disks

FreeBSD installation will begin now. It will take a few minutes to complete.

Installing FreeBSD
Installing FreeBSD

After FreeBSD installation is completed, you will prompted to set a password to the root user.

Set Root User Password
Set Root User Password

Choose a network interface to configure.

Select Network Interface
Select Network Interface

Choose "Yes" to configure IPv4.

Configure IPv4
Configure IPv4

If you have a DHCP server in your network and want to assign IP address automatically from the DHCP to the FreeBSD system, choose Yes and hit ENTER. If you don't have a DHCP server, simply choose "No".

I don't have a DHCP server in my network, so I chose "No".

Configure DHCP
Configure DHCP

Enter the IP address, subnet mask, and gateway.

Network Configuration
Network Configuration

Next, you will asked if you want to configure IPv6 for the network interface. I don't want to configure IPv6 at the moment, so I chose "No".

Configure IPv6
Configure IPv6

If you choose "yes" to configure IPv6, you need to provide the IP address, subnet and gateway as shown above.

Enter the DNS server details. Here, I've used the Google public DNS servers.

Enter DNS Server Details
Enter DNS Server Details

Select your geographical region and press ENTER.

Select Region
Select Region

Select your Country.

Select Country
Select Country

A pop up message will ask you to confirm the time zone.

Confirm Time Zone
Confirm Time Zone

Set your current date.

Set Date
Set Date

Set the time.

Set Time
Set Time

Choose the services that you'd like to be started at system reboot.

Choose Startup Services
Choose Startup Services

Choose the system hardening options that you'd like to apply on your FreeBSD systems.

Select System Hardening Options
Select System Hardening Options

Select "Yes" if you wish to add a new user to your system.

Add User Accounts
Add User Accounts

Enter the user details such as username, full name, password etc. Review the user details and type "yes" and press ENTER to create the user.

Enter User Details
Enter User Details

If you want to create more users, type "yes" and enter the details of the new user. If you don't want to add more users, simply type "no" and press ENTER.

We reached the final stage of FreeBSD installation. You can now modify the configuration choices that you made throughout the installation process. If you don't want make any changes, simply choose "Exit" and hit ENTER.

Final Configuration
Final Configuration

FreeBSD installation is finished! If you want to make any manual changes before completing the installation, choose "yes". If you don't want to make any modifications, choose "no" and press ENTER.

Manual Configuration
Manual Configuration

Reboot into the newly installed FreeBSD system.

Reboot FreeBSD
Reboot FreeBSD

Login to the FreeBSD system as root user.

Login to FreeBSD as root
Login to FreeBSD as root

Check the install FreeBSD version using any one of the following commands:

# freebsd-version -k
# uname -mrs
# cat /etc/os-release
Check FreeBSD Version
Check FreeBSD Version

Update FreeBSD System

The first thing to do after installing any operating system is to apply the latest available updates.

To update FreeBSD OS, run the following command as root user:

# freebsd-update fetch install
Update FreeBSD
Update FreeBSD

Congratulations! We have successfully installed and updated FreeBSD 13.2 edition. In our upcoming articles, we will see how to,

You May Also Like

4 comments

woo May 30, 2022 - 1:27 am

Did you copy and paste?
The article is mentioning:

If you wish to install and test Ubuntu Linux on any hypervisor (Virtualbox, KVM, Vmware), just skip the media creation step and boot up the iso image.

But, this article is about FreeBSD… 🙂

Reply
sk May 30, 2022 - 1:14 pm

Yes. The bootable creation instructions are same for all OSes. It is copied from our Ubuntu installation article. I fixed it now. Thanks for pointing it out.

Reply
Ady June 11, 2023 - 9:06 pm

How to triple boot windows 10, linux and freebsd?

Reply
sk June 12, 2023 - 10:16 am

We don’t have a guide for triple boot setup yet. We will try to write one when we can.

Reply

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. By using this site, we will assume that you're OK with it. Accept Read More