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-71-7.1.18_1:
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 QT6)
PYTHON=on: Python bindings or support
QT6=on: Build with Qt6 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
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*-71,www/phpvirtualbox-71: Deprecate with expiration
date 2026-12-31
"VirtualBox 7.1.x is no longer supported!"
https://www.virtualbox.org/wiki/Changelog-7.1
Upstream EOL reaches on 2025-04-15, use emulators/virtualbox-ose*-72
instead.
Set expiration date to 2026-12-31.
Sponsored by: UNIS Labs
MFH: 2026Q2
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*-71: Update 7.1.14 => 7.1.16
Changelog:
https://www.virtualbox.org/wiki/Changelog-7.1#v16
emulators/virtualbox-ose{,-nox11}-71:
Remove the OGG, VORBIS, and VPX options - without libogg and libvorbis
in the system, the ports attempts to use the bundled versions, but
without libvpx, the build fails. Even when using libvpx, building the
bundled libvorbis library also fails.
These 3 libraries are not heavy dependencies, so we simply make them
mandatory even for emulators/virtualbox-ose-nox11-71.
PR: 292801
Security: CVE-2026-21955
(Only the first 15 lines of the commit message are shown above )
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{,-nox11}-71: Add new ports VirtualBox Guest
Additions 7.1.14
Port based on patch from jsm@.
The main work on porting was done by the author of the original patch.
Ports need more thorough testing at runtime.
Changelog:
https://www.virtualbox.org/wiki/Changelog-7.1
PR: 284439
Tested by: Helge Oldach <freebsd@oldach.net>, groenveld@acm.org
Relnotes: yes
Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>
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}-71: 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{,-kmod,-nox11}-71: Add new ports VirtualBox 7.1.8
Port based on patch from devel@stasyan.com.
The main work on porting was done by the author of the original patch.
The rest is a dozen various improvements and bug fixes that have been
made over the past few months in older versions: 7.0.x, 6.1.x, 5.2.x.
The requirements for 7.1.x are the same as for 7.0.x, but for now we'll
leave both versions in experimental/test mode.
The following ports also need to be created (they are not available for
version 7.0.x either):
- emulators/virtualbox-ose-additions-71;
- emulators/virtualbox-ose-additions-nox11-71.
www/phpvirtualbox-71 already in ports.
Changelog:
https://www.virtualbox.org/wiki/Changelog-7.1
PR: 284439271146
Tested by: Mario Lobo <lobo@bsd.com.br>
Relnotes: yes