How to Install FreeBSD 12 on VirtualBox

|
Published:
|
|

Hello there, welcome to our guide on how to install FreeBSD 12 on VirtualBox. FreeBSD can run well in a VirtualBox. So if you are looking at creating virtual labs to play around with FreeBSD 12, fireup your VirtualBox and step through the following procedure to get the FreeBSD 12 up and running on VirtualBox.

Install FreeBSD 12 on VirtualBox

Download FreeBSD 12 Installer Image

Navigate to FreeBSD 12 downloads page and grab an installer image for your respective system architecture. If you are running x86_64 system, you can simply run the command below to download the ISO image;

wget https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/12.0/FreeBSD-12.0-RELEASE-amd64-dvd1.iso

Create Virtual Machine

Launch VirtualBox and create a new virtual machine. Set the name of the VM, select the type and the version of Operating System.

install FreeBSD 12 on VirtualBox

Click Next to select the amount of RAM in megabytes to be allocated to  the VM.

install FreeBSD 12 on VirtualBox

Create a virtual hard disk for the new machine.

install FreeBSD 12 on VirtualBox

Next, choose the type of the disk to create.

install FreeBSD 12 on VirtualBox

install FreeBSD 12 on VirtualBox

Define the name and the size of the disk. The default name and storage size is name of the VM and 16GB respectively

install FreeBSD 12 on VirtualBox

Click create to finish the initial setup

Next, Select the new VM and open the settings. Click on Storage settings and select the installation image.

install FreeBSD 12 on VirtualBox

You can optionally disable settings like Audio, USB. Under Network, you can attach extra interfaces. NAT is enabled by default.

install FreeBSD 12 on VirtualBox

Once done with custom configurations, click Ok and then click Start to boot the VM for installation.

The installer prompts you to do the installation or use live CD. Press Enter to install FreeBSD 12 on VirtualBox.

Under Keymap Selection, press Enter to continue with the defaults.  Set the hostname of your FreeBSD 12.  On Optional system components to install, press Enter to accept the defaults;  Partition you disk to suite your needs. In this guide, am going with the guided disk setup. Hence select Auto (UFS) and proceed to create a partition using the entire disk.  Choose you preferred partitioning scheme and press Enter to continue. In this case, we are using MBR. Preview the disk setup, click Finish and commit the changes and create the partition.  Set the root password.  Select the network interface to configure. Configure IPv4 and DHCP. You can optionally choose to configure IPv6 addresses.  Select the timezone, continent, region or country, set time and date.  After that, Select the services to be started at boot.  Choose the system hardening options. After that, choose whether to add users on the server.  On the final configuration screen, press Enter to finish the installation if there is nothing else you would like to modify.  Reboot the VM. To avoid being prompted to redo the installation, remove the installer image and reset the VM.  Once the VM runs, login as any of the users you created during the installation.

Under Keymap Selection, press Enter to continue with the defaults.

install FreeBSD 12 on VirtualBox

Set the host-name of your FreeBSD 12 server

install FreeBSD 12 on VirtualBox

On Optional system components to install, press Enter to accept the defaults.

Partition your disk appropriately. For example, to use the guided disk partitioning method, select Auto (UFS) and proceed to create a partition using the entire disk.

install FreeBSD 12 on VirtualBox

Choose you preferred partitioning scheme. In this case, we are using MBR. Preview the disk setup, click Finish and commit the changes to create the partition.

install FreeBSD 12 on VirtualBox

Set the root password.

install FreeBSD 12 on VirtualBox

Select the network interface to configure. Configure IPv4 and DHCP. You can optionally choose to configure IPv6 addresses.

install FreeBSD 12 on VirtualBox

Next, specify your timezone.

Select the services to be started at boot.

install FreeBSD 12 on VirtualBox

Choose the system hardening options.

install FreeBSD 12 on VirtualBox

You can also optionally choose to add more system users.

Press Enter to finish the installation. Remove the installer image and reboot your server. Once the VM runs, login as any of the users you created during the installation.

install FreeBSD 12 on VirtualBox

Congratulations! This is all about how to install FreeBSD 12 on VirtualBox.