fastports

virtualbox-ose 5.2.44_35

emulators/virtualbox-ose-legacy

General-purpose full virtualizer for x86 hardware

Category
emulators
Maintainer
vbox@FreeBSD.org
WWW
https://www.virtualbox.org/
License
GPLv2
USES
compiler:c++14-lang cpe gnome iconv pkgconfig ssl tar:bzip2 python:3.10-3.11 gl qmake:no_env qt:5 xorg sdl xorg

Description

Oracle VM VirtualBox is a hosted hypervisor for x86 virtualisation.
Supported guests include BSD, Haiku, Linux, OS/2, ReactOS, Solaris and
Windows.

emulators/virtualbox-ose is recommended for most use cases.

emulators/virtualbox-ose-legacy is for exceptional legacy (5.2.x) cases.

<https://www.virtualbox.org/wiki/Changelog-5.2> emphasises that
5.2.x is no longer supported by Oracle.

Guest Additions are available:

    emulators/virtualbox-ose-additions-legacy

For the Extension Pack: FreeBSD is not a supported host platform.
Installation of the Pack will not extend the feature set.

Dependencies

Commit History

may be incomplete — full history at freebsd-ports on GitHub

Commit Credits Log message
5.2.44
87ffb19323 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-nox11}{,-legacy,-70,-71,-72}: Fix build with custom USERS/GROUPS not in UIDs/GIDs
Sponsored by:	UNIS Labs
MFH:		2026Q2
5.2.44
3862afae6a files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-70,-71,-72,-legacy}: Improve port (non-functional)
- Replace ${PREFIX}/share/applications with ${DESKTOPDIR}.
- Replace "*" with . in COPYTREE_SHARE.
5.2.44
4f2ef91eed files touched
Vladimir Druzenko (vvd)
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)
5.2.44
c22c337cf0 files touched
Vladimir Druzenko (vvd)
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.
5.2.44
939d8775e7 files touched
Jan Beich (jbeich)
multimedia/libvpx: update 1.16.0
Changes:	https://chromium.googlesource.com/webm/libvpx/+log/v1.15.2..v1.16.0
Reported by:	Repology
5.2.44
8a712f4016 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-legacy}: Limit python to 3.10-3.11
This is temporary workaround for build error:

/usr/ports/emulators/virtualbox-ose/work/VirtualBox-6.1.50/src/libs/xpcom18a4/python/src/VariantUtils.cpp:197:7: error: use of undeclared identifier 'PyUnicode_GET_SIZE'; did you mean 'PyDict_GET_SIZE'?
                if (PyUnicode_GET_SIZE(val_use) == 0) {
                    ^~~~~~~~~~~~~~~~~~
                    PyDict_GET_SIZE
/usr/local/include/python3.12/cpython/dictobject.h:53:26: note: 'PyDict_GET_SIZE' declared here
static inline Py_ssize_t PyDict_GET_SIZE(PyObject *op) {
                         ^
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-6.1.50/src/libs/xpcom18a4/python/src/VariantUtils.cpp:501:38: error: use of undeclared identifier 'PyUnicode_AS_UNICODE'
                                FILL_SIMPLE_POINTER( PRUnichar, *PyUnicode_AS_UNICODE(val_use) );
                                                                 ^
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-6.1.50/src/libs/xpcom18a4/python/src/VariantUtils.cpp:829:8: error: use of undeclared identifier 'PyUnicode_GetSize'
                        if (PyUnicode_GetSize(ob) == 0) {
                            ^

Support for the python 3.12+ was added in the VirtualBox 7.0.
Maybe I'll partially port this in older VirtualBox ports later.

PR:	292189 285957
5.2.44
53fd1bc993 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose-additions-legacy: Fix path to VBoxClient in VBoxClient-all script
PR:	254049
MFH:	2025Q4
5.2.44
89de71b8c7 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose-additions*: Fix "vboxmanage guestproperty" on host does not show interface name for FreeBSD guest
Upstream issue:
https://github.com/VirtualBox/virtualbox/issues/403
Upstream commit:
https://github.com/VirtualBox/virtualbox/commit/3cf64726847e2483c9539ca51c88862a0f1c7414

PR:	291128
MFH:	2025Q4
5.2.44
0dad99d889 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-71,-72,-legacy}: Fix description in rc script
Fix description for option vboxinit_start_delay.

MFH:	2025Q4
5.2.44
64fb50b01e files touched
Max Brazhnikov (makc)
*/*: Fix Qt and LXQt spelling
5.2.44
bf21746ce0 files touched
Vladimir Druzenko (vvd)
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=7e4c451c12aeb26cc1179221b8230c491b17cf00
https://cgit.freebsd.org/src/commit/sys/sys/vnode.h?id=01c8e2e33df81b242d73a23de49a6b61f33c24c1

PR:		289992
Reported by:	pkg-fallout
MFH:		2025Q4
5.2.44
40fa372043 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-nox11}{,-70,-71,-72,-legacy}: Fix build with ftp/curl 8.16.0
kBuild: Compiling VBoxRT - /wrkdirs/usr/ports/emulators/virtualbox-ose-72/work/VirtualBox-7.2.0/src/VBox/Runtime/generic/http-curl.cpp
/wrkdirs/usr/ports/emulators/virtualbox-ose-72/work/VirtualBox-7.2.0/src/VBox/Runtime/generic/http-curl.cpp:702:27: error: assigning to 'curl_proxytype' from incompatible type 'long'
  702 |     pThis->enmProxyType = CURLPROXY_HTTP;
      |                           ^~~~~~~~~~~~~~
/usr/local/include/curl/curl.h:791:35: note: expanded from macro 'CURLPROXY_HTTP'
  791 | #define CURLPROXY_HTTP            0L /* added in 7.10, new in 7.19.4 default is
      |                                   ^~

Upstream bug report:
https://github.com/curl/curl/issues/18054#issuecomment-3354156324

PR:	289924
5.2.44
cec1e153ef files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-additions,-kmod}{,-70,-71,-legacy}: Update CONFLICTS_INSTALL before committing new ports with VirtualBox 7.2.x
PR:	289019
5.2.44
3068854dd0 files touched
Baptiste Daroussin (bapt)
libxml2: chase libxml soversion bump
5.2.44
5ab3be27e7 files touched
Vladimir Druzenko (vvd)
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.
5.2.44
2314a49511 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-legacy}: Fix patch for build with libxml2 2.12.6+
Remove RT_NOTHROW_DEF: it is defined in VirtualBox itself, but was only
introduced in version 7.0.

PR:	287284 279958
Fixes:	17271d3143c9 (Fix build with libxml2 2.12.6+)
5.2.44
17271d3143 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-nox11}{,-legacy}: Fix build with libxml2 2.12.6+
Patch ported from VirtualBox 7.x.

PR:	279958
5.2.44
137787be31 files touched
Takahiro Kurosawa (takahiro.kurosawa)
emulators/virtualbox-ose-additions{,-legacy}: Fix build on 15-CURRENT OSVERSION>=1500038
PR:	286718
MFH:	2025Q2
5.2.44
37964f0e32 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose-legacy: Backported patch from emulators/virtualbox-ose improve VGA/SVGA emulation
While here sort options.

MFH:	2025Q2
5.2.44
806da99dc2 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-additions,-kmod}{,-70,-legacy}: Update CONFLICTS_INSTALL before committing new ports with VirtualBox 7.1.x
PR:	284439
5.2.44
3a151cd44b files touched
Mark Johnston (markj)
emulators/virtualbox-ose{,-70,-legacy}: Fix release memory on VM exit on 15-CURRENT
PR:	286507
MFH:	2025Q2
5.2.44
271cb6e766 files touched
Mark Johnston (markj)
emulators/virtualbox-ose-kmod{,-70,-legacy}: Fix the build after FreeBSD kernel changes in 1500038
Update to chase removal of vm_page_next()

PR:		286206 286193 286204
Tested by:	Graham Perrin <grahamperrin@gmail.com>
MFH:		2025Q2
5.2.44
64f3a6bf7e files touched
Jan Beich (jbeich)
multimedia/libvpx: update 1.15.1
Changes:	https://chromium.googlesource.com/webm/libvpx/+log/v1.15.0..v1.15.1
Reported by:	portscout
5.2.44
a347a92e6e files touched
Gleb Popov (arrowd)
*: Bump revisions after dbus update
PR:		285253
Reported by:	Martin Birgmeier <d8zNeCFG@aon.at>
5.2.44
06a08e69f3 files touched
Charlie Li (vishwin)
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.
5.2.44
179f17fc36 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-additions,-kmod}{,-legacy}: Update CONFLICTS_INSTALL and PORTSCOUT before commit new ports with VirtualBox 7.0.x
PR:	271146
5.2.44
d23dace6ec files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-legacy}: Merge patches and unify patch names for src/VBox/Devices/PC/ipxe/Makefile.kmk
5.2.44
eed93fcb3b files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-nox11}-legacy: Unbreak build with PYTHON option with python 3.10+
MFH:	2025Q1
5.2.44
a21fa3ec07 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-nox11}-legacy: Add SLAVE_PORT definition
MFH:	2025Q1
5.2.44
8d2e646b54 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-nox11}-legacy: Fix PYTHON in DEFAULT_OPTIONS, return clearing of ENV
MFH:	2025Q1
5.2.44
abe3df235e files touched
takahiro.kurosawa (takahiro.kurosawa)
emulators/virtualbox-ose{,-additions}{,-nox11}-legacy: Fix vboxvfs bugs
This commit fixes vboxvfs (shared foler) kernel module bugs:
* fix open file leaks on creating files that causes file descriptor
  leaks on host;
* fix halfway lookups.

PR:	245865
MFH:	2025Q1
5.2.44
c9b6fc0d29 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-additions}-legacy: Unification of patches with ports emulators/virtualbox-ose{,-additions}
Replace REINPLACE_CMD in Makefiles with patches in files/*.

PR:	272991 279257
MFH:	2025Q1
5.2.44
ed48632461 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-nox11}{,-legacy}: Fix listen VNC on TCP port on IPv6 address
Four new options are available:
 - "VNCAddress4" -> IPv4 address to use
 - "VNCPort4" -> IPv4 Port to use
 - "VNCAddress6" -> IPv6 address to use
 - "VNCPort6" -> IPv6 port to use

"TCP/Ports" is used for backward compatibility as IPv4 and IPv6 ports if
"VNCPort4" or "VNCPort6" is not defined.

Detailed description is here:
https://www.virtualbox.org/browser/vbox/trunk/src/VBox/ExtPacks/VNC/VBoxVNC.cpp#L361

PR:	193778
5.2.44
b60f7eb223 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-kmod}-legacy: Fix MASTER_SITES
Fixes:	b4a6bc8744f4 (Improve ports)
5.2.44
b4a6bc8744 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose*: Improve ports
* Replace PORTVERSION with DISTVERSION.
* Fix CONFLICTS_INSTALL.
* Fix PYTHON in DEFAULT_OPTIONS in emulators/virtualbox-ose.
* Pet portclippy and portlint.
* Formatting and etc.

PR:	258159
5.2.44
3528379355 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose-kmod-legacy: Fix build error since 1500027 (struct ifnet is now hidden)
Based on patch from wulf.

PR:		282780
Tested by:	groenveld@acm.org
5.2.44
5505c50fcc files touched
Gleb Popov (arrowd)
*: Bump PORTREVISIONs of Pulseaudio consumers
Sponsored by:	Future Crew, LLC
5.2.44
888cea7dee files touched
Jan Beich (jbeich)
multimedia/libvpx: update 1.15.0
Changes:	https://chromium.googlesource.com/webm/libvpx/+log/v1.14.1..v1.15.0
Reported by:	Repology
5.2.44
4485bd8221 files touched
Rene Ladan (rene)
all: drop support for expired FreeBSD 14.0
Simplify expressions for FreeBSD 13.X

Reviewed by:	many

Differential Revision:	https://reviews.freebsd.org/D46601
5.2.44
c64a29abe5 files touched
Mark Johnston (markj)
emulators/virtualbox-ose-kmod-legacy: Catch up with FreeBSD KPI changes
After 1500021, kick_proc0() doesn't exist.

PR:		280495
Approved by:	vvd (maintainer)
5.2.44
4b9b21dfcd files touched
Igor Malyshev (bsd)
emulators/virtualbox-ose{,-nox11}-legacy: fix USB passthrough fails with: Failed to create a proxy device for the USB device
Failed to create a proxy device for the USB device. (Error: VERR_INVALID_PARAMETER)

00:00:24.961804 usbProxyConstruct: Failed to open '/dev/ugen0.6', rc=VERR_INVALID_PARAMETER

00:00:24.961881 ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={Failed to create a proxy device for the USB device. (Error: VERR_INVALID_PARAMETER)}, preserve=false aResultDetail=-2

In commit https://cgit.freebsd.org/src/commit/?id=9b077d72bcc313baea2b9283afc7f568739eaadc
+#define	USB_FS_XFER_MAX 126
-	if (fs_ep_ptr == NULL || ep_index_max > 127)
+	if (fs_ep_ptr == NULL || ep_index_max > USB_FS_XFER_MAX)
To fix VirtualBox decrease USBFBSD_MAXENDPOINTS from 127 to 126:
-#define USBFBSD_MAXENDPOINTS 127
+#define USBFBSD_MAXENDPOINTS 126

PR:		270900
Tested by:	groenveld@acm.org, russo@bogodyn.org
Approved by:	with hat of vbox (maintainer)
MFH:		2024Q3
5.2.44
6c6dcbf4e4 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose-legacy: fix build emulators/virtualbox-ose-additions{,-nox11}-legacy on main: error: unknown type name 'uma_zone_t'
In file included from /wrkdirs/usr/ports/emulators/virtualbox-ose-additions-legacy/work/VirtualBox-5.2.44/src/VBox/Additions/freebsd/vboxvfs/vboxvfs_prov.c:42:
/wrkdirs/usr/ports/emulators/virtualbox-ose-additions-legacy/work/VirtualBox-5.2.44/src/VBox/Additions/freebsd/vboxvfs/vboxvfs.h:242:2: error: unknown type name 'uma_zone_t'
  242 |         uma_zone_t      sf_node_pool;
      |         ^

Reported by:	pkg-fallout
MFH:		2024Q3
5.2.44
b9b090f62a files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-nox11}-legacy: add vboxinit start/stop script for VMs which is controlled from phpvirtualbox
Set the "Startup Mode" to "Automatic" for the virtual machine in
phpvirtualbox to automatically start the virtual machine during OS boot.

This script also stops virtual machines during reboot even if
vboxinit_enable="YES" is not present in /etc/rc.conf.

phpvirtualbox uses the "Web Service" (WEBSERVICE) to configure and
manage virtual machines, so we install the script only when the
WEBSERVICE option is enabled.

PR:	280062
5.2.44
19d68720f1 files touched
Rene Ladan (rene)
all: drop support for FreeBSD 13.2 which reached EOL today
Thanks again to jbeich for noticing various things I overlooked.

Reviewed by:	acm, ashish, eduardo, ehaupt, eugen, jbeich, martymac, mat, nobukata, sunpoet, tagattie, yuri, arrowd, kde
Differential Revision:	https://reviews.freebsd.org/D45141
5.2.44
c9de267a35 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-nox11,-kmod,-additions,-additions-nox11}-legacy: fix build with llvm15+, fix run with PAE on i386
* Fix build with llvm15+ from ports and from base:
  - ISO C++17 does not allow 'register' storage class specifier;
  - require -fPIC on i386.
* Fix load kernel modules on host and guest i386 if kernel compiled with
PAE option: add non-default option PAE to ports.
Based on patches from mi@.

PR:		279257 224616
Approved by:	vbox (maintainer, timeout 1 month and 6 years)
5.2.44
f156eebebf files touched
Muhammad Moinur Rahman (bofh)
emulators/virtualbox-ose-legacy: Refactor DOCS
Although the documentation builds fine currently however the doc
UserManual.pdf fails to build from the docbook with pdflatex from TeX
2024. So decouple the documentation file from the builds as an
additional DISTFILE. As this version is no longer supported by upstream
it is highly unlikely that the build of the documentation will be fixed
by upstream. Or unless someone has enough enthusiasm to fix the build
of the documentation once TeX 2024 hits the tree.

Approved by:	portmgr (blanket)
Sponsored by:	Nepustil
5.2.44
589aaaeb09 files touched
Jan Beich (jbeich)
multimedia/libvpx: update 1.14.0
Changes:	https://chromium.googlesource.com/webm/libvpx/+log/v1.13.1..v1.14.0
Reported by:	portscout
5.2.44
b1ecad53b0 files touched
Gleb Popov (arrowd)
audio/pulseaudio: Update to 16.1
Bump PORTREVISION on consumers.

Sponsored by:	Serenity Cybersecurity, LLC

PR:		262713
5.2.44
537968d0fd files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-nox11}-legacy: fix PORTREVISION and option MANUAL => DOCS
1. Fix PORTREVISION in master port emulators/virtualbox-ose-legacy for
slave port emulators/virtualbox-ose-nox11-legacy.
2. Rename in slave port emulators/virtualbox-ose-nox11-legacy MANUAL to
DOCS - in master port was renamed in
https://cgit.freebsd.org/ports/commit?id=a0ef5898beb4c6a73e9d94aaa452c0eb37cbb14c.
3. Bump emulators/virtualbox-ose-nox11-legacy.

Approved by:		arrowd (mentor)
Differential Revision:	https://reviews.freebsd.org/D41071
MFH:			2023Q3
5.2.44
23eed6a753 files touched
Vladimir Druzenko (vvd)
emulators/virtualbox-ose{,-legacy}: sort out options
Sort out options: order (portlint), convert to OPTION_*.
Add entry in "Troubleshooting" about "VERR_NO_MEMORY".
Force devel/llvm15 for emulators/virtualbox-ose-legacy on recent 14 with
llvm16 in base.

PR:			200764 252227
Approved by:		arrowd (mentor)
Differential Revision:	https://reviews.freebsd.org/D40751

Load all commits →