Port details |
- virtualbox-ose-nox11-legacy General-purpose full virtualizer for x86 hardware
- 5.2.44_19 emulators =2 5.2.44_19Version of this port present on the latest quarterly branch.
- Maintainer: vbox@FreeBSD.org
- Port Added: 2021-03-09 18:28:17
- Last Update: 2024-07-20 09:35:41
- Commit Hash: 4b9b21d
- People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py39-PyOpenGL, p5-Sane
- License: GPLv2
- WWW:
- https://www.virtualbox.org/
- 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.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- virtualbox-ose-nox11-legacy>0:emulators/virtualbox-ose-nox11-legacy
- Conflicts:
- CONFLICTS_INSTALL:
- virtualbox-ose-additions-*
- virtualbox-ose-devel
- virtualbox-ose
- virtualbox-ose-lite
- virtualbox-ose
- To install the port:
- cd /usr/ports/emulators/virtualbox-ose-nox11-legacy/ && make install clean
- To add the package, run one of these commands:
- pkg install emulators/virtualbox-ose-nox11-legacy
- pkg install virtualbox-ose-nox11-legacy
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: virtualbox-ose-nox11-legacy
- Flavors: there is no flavor information for this port.
- ONLY_FOR_ARCHS: amd64 i386
- distinfo:
- TIMESTAMP = 1716914109
SHA256 (VirtualBox-5.2.44.tar.bz2) = ad83b11cfae2734f7d6f619dd2f8bdada7d33492cd7682fab98cb4053122295e
SIZE (VirtualBox-5.2.44.tar.bz2) = 124016934
Packages (timestamps in pop-ups are UTC):
- Master port: emulators/virtualbox-ose-legacy
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- gtar : archivers/gtar
- kmk : devel/kBuild
- libIDL-config-2 : devel/libIDL
- yasm : devel/yasm
- xsltproc : textproc/libxslt
- soapcpp2 : devel/gsoap
- pkgconf>=1.3.0_1 : devel/pkgconf
- python3.11 : lang/python311
- Runtime dependencies:
-
- vboxnet : emulators/virtualbox-ose-kmod-legacy
- Library dependencies:
-
- libpng.so : graphics/png
- libcurl.so : ftp/curl
- libvncserver.so : net/libvncserver
- libxml2.so : textproc/libxml2
-
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for virtualbox-ose-nox11-legacy-5.2.44_19:
PYTHON=off: Python bindings or support
UDPTUNNEL=on: Build with UDP tunnel support
VDE=off: Build with VDE support
VNC=on: Build with VNC support
WEBSERVICE=on: Build Webservice
===> Use 'make config' to modify these settings
- Options name:
- emulators_virtualbox-ose-nox11-legacy
- USES:
- compiler:c++14-lang cpe gnome iconv pkgconfig ssl tar:bzip2 python:build
- pkg-message:
- For install:
- VirtualBox was installed.
You need to load the vboxdrv kernel module via /boot/loader.conf:
vboxdrv_load="YES"
You also have to add all users to your vboxusers group in order to use vbox.
% pw groupmod vboxusers -m jerry
Reboot the machine to load the needed kernel modules.
Bridging Support:
=================
For bridged networking please add the following line to your /etc/rc.conf:
vboxnet_enable="YES"
USB Support:
============
For USB support your user needs to be in the operator group and needs read
and write permissions to the USB device.
% pw groupmod operator -m jerry
Add the following to /etc/devfs.rules (create if it doesn't exist):
[system=10]
add path 'usb/*' mode 0660 group operator
To load these new rule add the following to /etc/rc.conf:
devfs_system_ruleset="system"
Then restart devfs to load the new rules:
% /etc/rc.d/devfs restart
Troubleshooting:
================
Running VirtualBox as non-root user may fail with a fatal error
NS_ERROR_FACTORY_NOT_REGISTERED. In this case delete /tmp/.vbox-*-ipc file.
If you experience "Network: write Failed: Cannot allocate memory" errors
try to increase net.graph.maxdata in /boot/loader.conf
If you are using AIO, then increase these limits (https://bugs.freebsd.org/168298):
vfs.aio.max_buf_aio=8192
vfs.aio.max_aio_queue_per_proc=65536
vfs.aio.max_aio_per_proc=8192
vfs.aio.max_aio_queue=65536
To check if AIO is used use: kldstat -v | grep aio
If you are experiencing VMs freezes with an error in VBox.log such as:
"
00:01:29.590192 AssertLogRel /usr/ports/emulators/virtualbox-ose-legacy/work/VirtualBox-5.2.44
/src/VBox/VMM/VMMR3/PGMPhys.cpp(5148) int PGMR3PhysAllocateHandyPages(PVM): RT_SUCCESS(rc)
00:01:29.590221 87/128: idPage=0x3d400 HCPhysGCPhys=000000027eaed000 rc=VERR_NO_MEMORY
00:01:29.590247 Changing the VM state from 'RUNNING' to 'GURU_MEDITATION'
00:01:29.590261 Console: Machine state changed to 'GuruMeditation'
00:01:29.590695 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
00:01:29.590696 !!
00:01:29.590697 !! VCPU0: Guru Meditation -8 (VERR_NO_MEMORY)
"
and see a lot of free RAM, then increase sysctl vm.max_user_wired
(https://bugs.freebsd.org/252227).
For dedicated VM servers, a good start is:
("RAM in GB" - max(1, "RAM in GB" / 32)) * 1024*1024*1024 / PAGE_SIZE
PAGE_SIZE on x86 is 4096.
Examples with different RAM sizes in GB:
16: ( 16-max(1, 16/32)*1024*1024*1024/4096 = 3932160 => 15GB
32: ( 32-max(1, 32/32)*1024*1024*1024/4096 = 8126464 => 31GB
48: ( 48-max(1, 48/32)*1024*1024*1024/4096 = 12189696 => 46.5GB
64: ( 64-max(1, 64/32)*1024*1024*1024/4096 = 16252928 => 62GB
128: (128-max(1,128/32)*1024*1024*1024/4096 = 32505856 => 124GB
256: (256-max(1,256/32)*1024*1024*1024/4096 = 65011712 => 248GB
Check the wiki page for known issues and troubleshooting:
https://wiki.freebsd.org/VirtualBox
Please report any problems to emulation@. Thanks!
- Master Sites:
- There is no master site for this port.
|
Number of commits found: 10
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
This is a slave port. You may also want to view the commits to the master port: emulators/virtualbox-ose-legacy | Commit | Credits | Log message |
5.2.44_19 20 Jul 2024 09:35:41 |
Vladimir Druzenko (vvd) Author: Igor Malyshev |
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_18 09 Jul 2024 21:30:58 |
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_17 28 Jun 2024 19:08:33 |
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_16 19 Jul 2023 10:12:44 |
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_13 23 Apr 2023 09:09:58 |
Gerald Pfeifer (gerald) |
*: Bump PORTREVISIONs for math/mpc update to 1.3.1 |
5.2.44_11 10 Apr 2022 19:11:41 |
Charlie Li (vishwin) |
textproc/libxml2: bump all LIB_DEPENDS consumers
This is a separate commit to facilitate easier cherry-picking for
quarterly.
PR: 262853, 262940, 262877, 263126
Approved by: fluffy (mentor) |
5.2.44_10 26 Mar 2022 08:27:27 |
Matthias Fechner (mfechner) |
textproc/libxml2: bump all dependencies
This should make sure that all dependent ports will pick
up the new version commited with a13ec21cd733f67a9fc0dc00ab45268bdc236246 |
5.2.44_5 07 Apr 2021 08:09:01 |
Mathieu Arnold (mat) |
One more small cleanup, forgotten yesterday.
Reported by: lwhsu |
5.2.44_5 06 Apr 2021 14:31:07 |
Mathieu Arnold (mat) |
Remove # $FreeBSD$ from Makefiles. |
5.2.44_4 09 Mar 2021 18:27:36 |
madpilot |
- Update VirtualBox OSE to 6.1.18
- Old VirtualBox OSE 5.2.44 preserved as "-legacy" versions of the
ports (repocopied)
- Add back extra patch removed in r528258, actually required to
build DEBUG kmod
- Correctly define WITH_DEBUG when enabling the DEBUG option, so
binaries are not stripped
Please note that this new version supports only amd64 CPUs. If you need
to use older hardware please install the legacy ports.
Note that moving VM snapshots across major updates is unsupported, it's
strongly suggested to properly shutdown VMs before upgrading, please
check UPDATING for further details.
(Only the first 15 lines of the commit message are shown above ) |
Number of commits found: 10
|