FreeBSD is a free and open-source Unix-like operating system based on Berkeley Software Distribution (BSD) Unix. It the most popular BSD-based operating system designed for stability and performance. FreeBSD comes as a complete operating system with its kernel, device drivers, shell tools and many system tools ready for use.

FreeBSD has seen a wide adoption by Internet Service Providers, students, researchers, computer professionals, and home users all over the world. There are over 20,000 packages ranging from databases, web servers, Developer tools, Desktop Applications , gaming, and business software available for easy installation.

In this guide, we’ll discuss how you can install FreeBSD 12 on VirtualBox and KVM virtualization platforms. The installation steps are not strict to the aforementioned platforms, they can be applied to different hypervisor or physical server environments.

Physical Server/Desktop Installation

Step 1: Download FreeBSD 12 Image

Download a copy of FreeBSD 12 image from FreeBSD releases page.

wget http://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/12.0/FreeBSD-12.0-RELEASE-amd64-memstick.img

Step 2: Create FreeBSD 12 bootable USB (Only for Desktop/Physical servers)

After the FreeBSD 12 image file is downloaded, create a bootable USB drive using dd command if you’re running Linux on your local machine.

Example to create a FreeBSD bootable USB by running the command:

sudo dd if=FreeBSD-12.0-RELEASE-amd64-memstick.img of=/dev/sdb bs=1M conv=sync

Where:

  • FreeBSD-12.0-RELEASE-amd64-memstick.img is the path to the image file.
  • /dev/sdb is your USB device location.

Alternative tools for creating bootable device are Etcher, PowerISO, WoeUSB, and Win32DiskImager.

Install FreeBSD 12 on VirtualBox – Preparation

For guys on VirtualBox, select creation of new VM. Click “New

Install FreeBSD VirtualBox 00

Give VM a name and choose OS type and version:

Install FreeBSD VirtualBox 01

Provide VM resources – Memory

Install FreeBSD VirtualBox 02

Choose hard disk creation in the next window.

Install FreeBSD VirtualBox 03

Choose hard disk file type.

Install FreeBSD VirtualBox 04

Select Dynamic or fixed size storage type.

Install FreeBSD VirtualBox 05

Type desired disk size – default is in GB

Install FreeBSD VirtualBox 06

VM template is created and ready for start.

Install FreeBSD VirtualBox 07

Click the “Start” button and choose ISO image path in the next window shown.

Install FreeBSD VirtualBox 08

Install FreeBSD 12 on KVM – Preparation

Create New VM

how to install freebsd kvm 01 1

Choose ISO image to use and OS type.

how to install freebsd kvm 02 1

Input Memory and CPU settings for the VM.

how to install freebsd kvm 03 1

Specify disk size for the VM.

how to install freebsd kvm 04 1

Provide a name of the VM to be created.

how to install freebsd kvm 05 1

Installation of FreeBSD 12 on KVM/VirtualBox – Steps

The installer will start once the VM creation is done. Hit enter key to proceed.

how to install freebsd kvm 06 1

Begin installation of FreeBSD 12 by clicking on “install”.

how to install freebsd kvm 07 1

Select keymap.

how to install freebsd kvm 08 1

Provide a hostname for the VM

how to install freebsd kvm 09 1

On the next screen, choose the components to install in the system.

how to install freebsd kvm 10 1

If the software packages are not available on the local disk, they’ll be downloaded – internet connection required if this is true.

how to install freebsd kvm 11 1

Select your network interface to configure.

how to install freebsd kvm 12 1

If you’re using IPv4, agree to configure.

how to install freebsd kvm 13 1

Choose DHCP or No if static IP addressing is in use in your network.

how to install freebsd kvm 14 1

If using IPv6, select “Yes” to configure.

how to install freebsd kvm 15 1

Configure DNS.

how to install freebsd kvm 16 1

Select installation mirrors closest to you.

how to install freebsd kvm 17 1

Pick a method used to partition hard disk.

how to install freebsd kvm 18 1
how to install freebsd kvm 19 1
how to install freebsd kvm 20 1
how to install freebsd kvm 21 1
how to install freebsd kvm 22 1

Installation to the disk should begin.

how to install freebsd kvm 23 1
how to install freebsd kvm 24 1

Configure Timezone

how to install freebsd kvm 26
how to install freebsd kvm 27

Choose services to be started at boot.

how to install freebsd kvm 28

Optionally choose hardening options.

how to install freebsd kvm 29

Set root password and add other users to the system.

how to install freebsd kvm 30
how to install freebsd kvm 31

Exit installer to apply configurations.

how to install freebsd kvm 32

You have completed installation of FreeBSD 12 on VirtualBox and KVM. Reboot the system to start system configurations.

how to install freebsd kvm 33
how to install freebsd kvm 34

Some FreeBSD 12 guides:

How to install Webmin on FreeBSD 12

How to Install PostgreSQL 11 on FreeBSD 12

How to Install Netdata on FreeBSD 12

How to Install pgAdmin4 on FreeBSD 12

How To Install pip Python package manager on FreeBSD 12

Your support is our everlasting motivation,
that cup of coffee is what keeps us going!


As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.

LEAVE A REPLY

Please enter your comment!
Please enter your name here