Oracle VM VirtualBox is a hosted hypervisor for x86 virtualisation.
Supported guests include BSD, Haiku, Linux, OS/2, ReactOS, Solaris and
Windows.
Guest Additions are available from: emulators/virtualbox-ose-additions
For the Extension Pack: FreeBSD is not a supported host platform.
Installation of the Pack will not extend the feature set.
===> The following configuration options are available for virtualbox-ose-70-7.0.26_8:
AIO=on: Enable Asyncronous IO support (check pkg-message)
ALSA=off: ALSA audio architecture support
DBUS=on: D-Bus IPC system support
DEBUG=off: Debug symbols, additional logs and assertions
DOCS=on: Build and/or install documentation
GUESTADDITIONS=off: Build with Guest Additions
NLS=on: Native language support (requires QT5)
OGG=off: Use libogg from audio/libogg instead of bundled one
PYTHON=on: Python bindings or support
QT5=on: Build with Qt5 frontend (requires X11)
R0LOGGING=off: Enable R0 logging (requires DEBUG)
TPM=on: Enable TPM device emulation using sysutils/libtpms
UDPTUNNEL=on: Build with UDP tunnel support
VBOXIMG=off: Build vboximg-mount (requires fuse-libs)
VDE=off: Build with VDE support
VNC=on: Build with VNC support
VORBIS=off: Use libvorbis from audio/libvorbis instead of bundled one
VPX=off: Use libvpx for video recording
WEBSERVICE=on: Build Webservice
X11=on: X11 (graphics) support
===> Use 'make config' to modify these settings
emulators/virtualbox-ose*: Flavorize
While here make non-functional changes related to indentation and
formatting, make simplification of CONFLICTS_INSTALL.
Sponsored by: UNIS Labs
emulators/virtualbox-ose{,-70,-71,-72,-legacy}: Improve port (non-functional)
- Replace ${PREFIX}/share/applications with ${DESKTOPDIR}.
- Replace "*" with . in COPYTREE_SHARE.
emulators/virtualbox-ose*: Add support of "Unattended Installation of Guest OS"
feature
Install files required by Unattended Installation of Guest OS feature.
These files were already prepared during the ports' build, so just add
them to the installation.
Details about this feature are here:
https://www.virtualbox.org/manual/topics/create-vm.html#tk_create-vm-unattended-install
Reported by: xin3qu via IRC (#freebsd-vbox @ Libera.Chat)
emulators/virtualbox-ose*: Exclude from extract bundled binary files of kBuild
Thes is ~430-640 files, ~30-55MB total for different platforms.
We are using devel/kBuild for build VirtualBox ports.
devel/kBuild is a newer version than the one included in the VirtualBox
tarballs.
emulators/virtualbox-ose-{,-nox11}-7{0,1,2}: Make Qt optional for building
Remove build dependency for Qt when NLS and graphical frontend is not
required.
PR: 291023
Co-authored-by: takahiro.kurosawa@gmail.com
MFH: 2025Q4
emulators/virtualbox-ose{,-additions,-kmod}{,-nox11}-70: Deprecate and set to
expire on 2026-12-31
Upstream EOL reaches on 2025-04-15, use emulators/virtualbox-ose-*-72
instead.
PR: 289163
emulators/virtualbox-ose*: Fix vboxvfs build on 16-CURRENT
/wrkdirs/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-6.1.50/src/VBox/Additions/freebsd/vboxvfs/vboxvfs_vnops.c:1271:9:
error: use of undeclared identifier 'NULLVP'
1271 | *vpp = NULLVP;
| ^
/wrkdirs/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-6.1.50/src/VBox/Additions/freebsd/vboxvfs/vboxvfs_vnops.c:1281:3:
error: call to undeclared function 'VREF'; ISO C99 and later do not support
implicit function declarations [-Werror,-Wimplicit-function-declaration]
1281 | VREF(dvp);
| ^
Commits that broke the build:
https://cgit.freebsd.org/src/commit/sys/sys/vnode.h?id=7e4c451c12aeb26cc1179221b8230c491b17cf00https://cgit.freebsd.org/src/commit/sys/sys/vnode.h?id=01c8e2e33df81b242d73a23de49a6b61f33c24c1
PR: 289992
Reported by: pkg-fallout
MFH: 2025Q4
emulators/virtualbox-ose{,-nox11}-70: Add support of TPM device emulation using
sysutils/libtpms (default on)
Fix: "Failed to attach to TPM driver. rc=VERR_PDM_DRIVER_NOT_FOUND"
PR: 289922
MFH: 2025Q4
emulators/virtualbox-ose*: Improve rc script
- Add sort VMs by name during auto start and reverse sort during stop -
with this user can control the order in which VMs are started and stopped.
- Increase default delay between start VMs from 0 to 1 second -
useful when automatically starting more than "2-3" VMs.
emulators/virtualbox-ose{,-nox11}-70: Add patches for better graphics devices
support
While here refresh patches for graphics devices
PR: 286748
Tested by: Martin Birgmeier <d8zNeCFG@aon.at>, rkoberman@gmail.com
MFH: 2025Q2
emulators/virtualbox-ose-70: Improve DESC for OGG and VORBIS options
Make a description that more accurately describes what these options do.
MFH: 2025Q2
emulators/virtualbox-ose-70: Fix 15-CURRENT kmod build
One remaining instance of vm_page_find_least(), which was removed in
15-CURRENT, remained. Replace it with a call to vm_radix_lookup_ge()
instead.
emulators/virtualbox-ose-kmod{,-70,-legacy}: Fix the build after FreeBSD kernel
changes in 1500038
Update to chase removal of vm_page_next()
PR: 286206286193286204
Tested by: Graham Perrin <grahamperrin@gmail.com>
MFH: 2025Q2
python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal
Any missed ports, feel free to bump.
Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
emulators/virtualbox-ose{,-kmod,-nox11}-70: Add new ports VirtualBox 7.0.24
General status:
* VirtualBox 7.1.x is still not fully ported to FreeBSD, so we are
adding 7.0.x in experimental/test mode.
* 7.0.x is being tested on hosts of several FreeBSD developers and
users.
* As far as we know, 7.0.x has the same system requirements as 6.1.x -
amd64 with VT-x (we even tested it on Core 2 Duo E6xxx), so after
confirming stability with more users, 7.0.x is expected to replace
6.1.x.
* The following ports also need to be created for this replacement:
- emulators/virtualbox-ose-additions-70;
- emulators/virtualbox-ose-additions-nox11-70;
- www/phpvirtualbox-70.
* If 7.1.x has the same system requirements, then when we port 7.1.x,
it will replace 7.0.x.
This patch is a joint effort by several FreeBSD developers and users.
Thanks to everyone involved!
Changelog:
https://www.virtualbox.org/wiki/Changelog-7.0
PR: 271146