Procedures to install Virtualbox guest in FreeBSD 13.2

Discussions about using non Windows and Linux guests such as FreeBSD, DOS, OS/2, OpenBSD, etc.
Post Reply
KenUnix
Posts: 9
Joined: 12. Apr 2020, 03:01

Procedures to install Virtualbox guest in FreeBSD 13.2

Post by KenUnix »

Are there any written procedures to install a virtualbox guest onto FreeBSD 13.2 64bit

The host is running Ubuntu 22.04 with virtualbox 7.0.8.

I have tried to follow what I could find, but it did not work.

Thanks,
Ken
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Procedures to install Virtualbox guest in FreeBSD 13.2

Post by scottgus1 »

There is Section 1 in the manual, discussing how to install any OS into a Virtualbox VM.

But:
KenUnix wrote: 3. Jul 2023, 18:13 install a virtualbox guest onto FreeBSD 13.2 64bit

The host is running Ubuntu 22.04 with virtualbox 7.0.8.
This sounds like nested virtualization:
Ubuntu > Virtualbox > FreeBSD > Virtualbox > ?

Is this what you want? Or do you just want FreeBSD running in Virtualbox on Ubuntu?
KenUnix
Posts: 9
Joined: 12. Apr 2020, 03:01

Re: Procedures to install Virtualbox guest in FreeBSD 13.2

Post by KenUnix »

Actually no. Ubuntu 22.04 is running the HOST.

I installed FreeBSD 13.2 under virtualbox as a guest.

I am trying to get the guest additions to work on the FreeBSD guest,

Thanks
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Procedures to install Virtualbox guest in FreeBSD 13.2

Post by scottgus1 »

Oh, OK. That's rather different than the first post, but we'll go with that.

A quick web-search shows me this:
https://forums.freebsd.org/threads/how- ... ons.66520/
which leads here:
https://docs.freebsd.org/en/books/handb ... virtualbox

Installing Guest Additions is discussed in section 5 of the 7.0.8 Virtualbox manual. Normally it involves using the VM window's Devices menu, Insert Guest Additions CD Image, to load the Guest Additions "CD" into the VM's CD drive, then running the appropriate GAs installer.

However, I don't know what installer to run for FreeBSD.

It appears from the FreeBSD instruction website above that the FreeBSD process builds the Guest Additions from source code. I have not tried this process myself.
oso2276
Posts: 21
Joined: 11. Sep 2023, 15:58

Re: Procedures to install Virtualbox guest in FreeBSD 13.2

Post by oso2276 »

Hi folks,

The documentation on FreeBSD wiki works. FreeBSD does not use Oracle bundled guest additions, FreeBSD provides its own port.
Recently I completed FreeBSD 14 VB guest install.
https://docs.freebsd.org/en/books/handb ... virtualbox

Other than that, you will need to add all users that will login using FreeBSD gui to "wheel" group.

Code: Select all

sudo pw groupmod wheel -m username
else you will face some weird VBox errors poping up after loggin on.

At this point, FreeBSD VM should work with autoresize screen :D

Best Regards
Post Reply