Jump to content

How to Install FreeBSD 12 on VirtualBox?


Linux Hint

Recommended Posts

FreeBSD is one of the many open-source distributions of the Berkeley Software Distribution (BSD) Kernel. Since BSD is an iteration of Research Unix, FreeBSD is said to be a Unix-like operating system. It can be used on pretty much any processor adaptive to Intel’s x86 architecture. Other builds that can run it includes amd64, PC-98, Alpha/AXP, and IA-64. It is known for being more reliable and faster than Linux, hence used as an alternative to Linux. It is favored by manufacturing companies, and such other entities, because of its licensing system, which allows them to modify the kernel without having to make the changes open-source.

This tutorial is about installing FreeBSD 12 on VirtualBox. The instructions here are universal to almost all other hypervisors.

Pre-requisites

First, get the FreeBSD 12 image before you proceed to install; use the link below:

$ wget <a href="http://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/12.2/FreeBSD-12.2-RELEASE-amd64-memstick.img">http://ftp.freebsd.org/pub/FreeBSD/releases/ISO-IMAGES/12.2/FreeBSD-12.2-RELEASE-amd64-memstick.img</a>

Then create a bootable FreeBSD 12 USB with the command below:

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

Now, Fire-up VirtualBox and click the New button to start creating a Virtual machine.

image22-2.png

Name your Virtual Machine, then select the operating system type:

image24.jpg

Then allocate the appropriate disk space for installation:

image23.jpg

After that, proceed to select a hard disk:

image26.jpg

Select a file type for this hard disk:

image25.jpg

The next step is to choose between dynamic and fixed-sized installation. The Dynamic allocation allows the hard disk file to accumulate in size, whereas fixing the HDD file size creates the file at maximum size.

image28.jpg

Then name your virtual HDD file and select a size for it:

image27.jpg

The template for your virtual machine is up and ready to go.

image30-1.png

Click the green button labeled start and select an ISO image path:

image29-1.png

Installing FreeBSD

Create a new virtual machine, as follows:

image33-1.png
Select the operating system type:

image31-1.png

Allocate some memory to your virtual machine and configure CPU settings:

image32-1.png
Allocate a disk size for your VM:

image34-1.png

Give your VM a name:

image35-1.png

FreeBSD KVM installation guide

Once the VM creation is finished, the installer will start automatically. Press enter to continue.

image36-1.png

Click the install button to continue.

image37-1.png

Choose one of the keymaps.

Give your VM a hostname:

image38-1.png
Select the FreeBSD components you want to install:

image39-1.png
If the software packages aren’t retrievable from the disk, it’ll download it off of the web.

image40-1.png
Choose the network interface to configure:

image12-2.png
Just agree if you’re using IPv4.

image13-2.png
Choose DHCP if you’re using static IP addressing:

image14-2.png
Click on Yes if you’re using IPv6:

image15-2.png

Then for the revolver configuration:

image16-2.png

Out of the installation mirrors, select those that are nearest to you:

image17-2.png

Select one of the partitioning methods(auto/manual/shell):

image18-2.png

image19-2.png

image20-2.png

image21-2.png

image2-12.png

With the partitioning done with, it should start with the installation.

image3-11.png

image4-12.png

Select a time zone and region:

image5-10.png

image6-8.png

Select the processes you want to run at startup:

image7-6.png

Choose the system hardening options:

image8-4.png

Set the root password and create users:

image9-4.png

image10-4.png

Select Exit and click on OK.

With that, you’ve successfully installed FreeBSD on KVM. Now, you just have to reboot the system.

image11-4.png

image1-12.png

Wrapping up

This tutorial has demonstrated to users how to set up FreeBSD on VirtualBox and configure it. If the instructions here worked out for you, check out more FreeBSD tutorials on our website.

View the full article

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...