FreeBSD

How To Install FreeBSD 14 on KVM or Proxmox VE

Install FreeBSD 14 on KVM and Proxmox VE

In the next steps we perform the installation of FreeBSD 14 on KVM and also Proxmox VE.

Original content from computingforgeeks.com - post 161445

Download FreeBSD 14 Image

You can download a copy of FreeBSD 14 image from FreeBSD releases page or get it right from your terminal by running one of the following commands.

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

# Bootonly iso -- Recommended for server editions
wget https://download.freebsd.org/releases/amd64/amd64/ISO-IMAGES/14.3/FreeBSD-14.3-RELEASE-amd64-bootonly.iso

KVM VM Set Up

Log in to your KVM and navigate to the Virtual Machines tab and click on ‘Create VM’, then fill in the following details:

  • Name: The name of your new VM
  • Installation Type: Choose Local installation media since you are installing from a locally available ISO image
  • Installation Source: The absolute path to your FreeBSD 14 ISO
  • Operating System: From the available list, pick the closest (FreeBSD 14.2) if FreeBSD 14.3 is not available
  • Storage: Select ‘Create new qcow2 volume
  • Storage Limit: Allocate space to the new qcow2 volume that will be created
  • Memory: Allocate sufficient RAM to your VM
How To Install FreeBSD 14 on KVM Proxmox VE 09 1024x603 1

Click ‘Create and Edit’ and proceed to edit the specs further, such as the number of allocated vCPUs. You can edit any of the resources such as RAM by clicking the edit button next to it:

How To Install FreeBSD 14 on KVM Proxmox VE 10 1024x603 1

Click Apply to apply any new changes that you make to the VM configurations.

How To Install FreeBSD 14 on KVM Proxmox VE 11 1024x603 1

Proxmox VE VM Set Up

Log in to your Proxmox VE console and click ‘Create VM‘, and provide a name for your VM:

How To Install FreeBSD 14 on KVM Proxmox VE 01 1024x584 1

In the ‘Next‘ step, select the storage pool that contains the FreeBSD ISO downloaded earlier. Then select the ISO image as it will be listed among available ISO images in the selected storage pool:

How To Install FreeBSD 14 on KVM Proxmox VE 02 1024x584 1

Next, configure the system settings. You can leave everything as default, but check the QEMU Agent box. Installing the QEMU Guest Agent allows for more efficient and reliable operations like graceful shutdowns, consistent snapshots, and accurate resource reporting by enabling communication between the host and guest operating systems.

How To Install FreeBSD 14 on KVM Proxmox VE 03 1024x584 1

In the ‘Next‘ step, configure the VM’s storage settings. Choose the disk storage pool, and the disk size, then proceed:

How To Install FreeBSD 14 on KVM Proxmox VE 04 1024x584 1

Now, configure the number of CPU Cores, sockets and CPU type for your FreeBSD VM. The default CPU type in Proxmox VE 8.x is x86-64-v2-AES, but you can pick between x86-64-v2, x86-64-v3, and x86-64-v4 CPU models as they offer better performance and compatibility for modern operating systems.

How To Install FreeBSD 14 on KVM Proxmox VE 05 1024x584 1

For memory allocation, do so according to the hosts resource availability and the purpose of the VM, 4096MiB is a sufficient amount for my demo VM:

Install AlmaLinux OS 8 VirtualBox VMware Xen XCP ng 01

Then configure the VM’s network. Select the interface attached to your Proxmox VE host:

How To Install FreeBSD 14 on KVM Proxmox VE 07 1024x584 1

Finally, check out the summary of every setting you choose. If you are satisfied with every configuration, check the box that says ‘Start after created‘:

How To Install FreeBSD 14 on KVM Proxmox VE 08 1024x584 1

When you click Finish, your VM should start if you had check the ‘Start After Created‘ checkbox.

Start the Installation Process

When everything is all set, click the ‘Install‘(KVM) or “Start“(Promox VE) button, to initiate the boot up of the image.

How To Install FreeBSD 14 on KVM Proxmox VE 12 1024x570 1

The image will automatically boot into the installer so that you can begin the installation process. Start the installation by pressing Enter after selecting the Install option.

How To Install FreeBSD 14 on KVM Proxmox VE 13 1024x570 1

Choose your preferred keyboard map. The system console driver for FreeeBSD defaults to the standard ‘US’ keyboard map, but you can choose other maps from the provided list.

How To Install FreeBSD 14 on KVM Proxmox VE 14 1024x570 1

Choose a hostname for your virtual machine.

How To Install FreeBSD 14 on KVM Proxmox VE 15 1024x570 1

Next, choose the optional components you’d like to install during the installation process. Press the SPACEBAR to select, then press ENTER to continue.

How To Install FreeBSD 14 on KVM Proxmox VE 16 1024x570 1

Choose the method you’d like to use in partitioning your disk.

How To Install FreeBSD 14 on KVM Proxmox VE 17 1024x570 1

Confirm this choice in the next window and proceed.

How To Install FreeBSD 14 on KVM Proxmox VE 18 1024x570 1

Select a partition scheme for the selected volume.

How To Install FreeBSD 14 on KVM Proxmox VE 19 1024x570 1

Review the disk set up and when done, press the Finish button.

How To Install FreeBSD 14 on KVM Proxmox VE 20 1024x570 1

Then confirm the changes to be written to the disk. If you’d like to make some more changes, you can go back using the Back button.

How To Install FreeBSD 14 on KVM Proxmox VE 21 1024x570 1

Wait for the system to finish installing the base system and selected packages.

How To Install FreeBSD 14 on KVM Proxmox VE 23 1024x570 1

Then set a password for the system management account (root).

How To Install FreeBSD 14 on KVM Proxmox VE 24 1024x570 1

Select a network interface to configure.

How To Install FreeBSD 14 on KVM Proxmox VE 25 1024x570 1

Agree to configure if you are using IPv4.

How To Install FreeBSD 14 on KVM Proxmox VE 26 1024x570 1

Choose to use DHCP to configure IPv4 but if you are using Static IP on your network, choose otherwise.

How To Install FreeBSD 14 on KVM Proxmox VE 27 1024x570 1

If you are using IPv6, configure it, otherwise select ‘NO’.

How To Install FreeBSD 14 on KVM Proxmox VE 28 1024x570 1

Configure the DNS. The system will automatically detect the DNS in your network but you can specify otherwise.

How To Install FreeBSD 14 on KVM Proxmox VE 29 1024x570 1

Choose a region for your time zone. Select your Continent, then your Country an you’ll be prompted with the most likely Time Zone depending on the continent and country you chose.

How To Install FreeBSD 14 on KVM Proxmox VE 30 1024x570 1

Set the date and time.

How To Install FreeBSD 14 on KVM Proxmox VE 31 1024x570 1

Select the system services you’d like to be started at boot up. Use the SPACEBAR to select them, then press enter to proceed.

How To Install FreeBSD 14 on KVM Proxmox VE 44 1024x571 1

You can also choose the system security hardening options.

How To Install FreeBSD 14 on KVM Proxmox VE 33 1024x570 1

When prompted to add users to the system, select ‘Yes‘.

How To Install FreeBSD 14 on KVM Proxmox VE 34 1024x570 1

Then add users to the new system and set the necessary credentials and passwords.

How To Install FreeBSD 14 on KVM Proxmox VE 36 1024x570 1

Your user should be successfully added to the system database as below.

How To Install FreeBSD 14 on KVM Proxmox VE 37 1 1024x321 1

The set up of your FreeBSD 14 is nearly complete. All that is left is to apply the configurations and exit the installer. To change any configurations, select it and hit enter, otherwise, if everything is ready, exit to apply the configurations.

How To Install FreeBSD 14 on KVM Proxmox VE 38 1024x570 1

You have completed the installation of FreeBSD 14.

How To Install FreeBSD 14 on KVM Proxmox VE 39 1024x570 1

Reboot the system to login.

How To Install FreeBSD 14 on KVM Proxmox VE 40 1024x570 1

Login with the root user first and install the pkg package manager, then add yout user to the sudoers file.

How To Install FreeBSD 14 on KVM Proxmox VE 42 1024x570 1

Run these commands to install the sudo pkg.

pkg install sudo

Then edit the sudoers file to allow the wheel group to run commands with sudo privileges.

sudo visudo
## Ucomments the following line
%wheel ALL=(ALL:ALL) ALL
## Passwordless SUDO privileges
%wheel ALL=(ALL:ALL) NOPASSWD: ALL

You can now logout and log back in with your user and run commands with sudo successfully.

Conclusion

To wrap up, FreeBSD has a large community behind it that has continually developed it for the past thirty years. This has led to it’s advancement in networking, security and storage features, which make it the number one choice for most companies.

Related Articles

Proxmox Create Users, Groups and Assign Permissions in Proxmox VE CentOS How to Install and Use VirtualBox on CentOS Stream 10 | RHEL 10 Virtualization Manage Virtual Machines on Hyper-V using Hyper-V Manager Web Interface Arch Linux How To Create Linux Network Bridge on Arch Linux or Manjaro

1 thought on “How To Install FreeBSD 14 on KVM or Proxmox VE”

  1. On Proxmox, and with MATE and KDE over FreeBSD 14.1, the keyborad and Mouse are freeze. The same with GhostBSD last versión. All hapens on Proxmox, not over qemu-kvm

    Reply

Leave a Comment

Press ESC to close