Solved Cant install virtualbox-ose-nox11-legacy

Hi

uname -a:
Code:
FreeBSD Backup.local 12.2-RELEASE-p7 FreeBSD 12.2-RELEASE-p7 GENERIC  amd64
When i am trying to install virtualbox-ose-nox11-legacy i am getting this:

The failing command:
Code:
@c++ -c -O2 -fno-exceptions -fno-rtti -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter -Wno-language-extension-token -Wno-gnu-folding-constant -Wno-gnu-anonymous-struct -Wno-string-plus-int -Wno-nested-anon-types -Wno-variadic-macros -Wpointer-arith -Winline -O2 -fno-builtin -fno-strict-aliasing -fno-common -fno-stack-protector -O2 -mtune=generic -fno-omit-frame-pointer -nostdinc -include /usr/ports/emulators/virtualbox-ose-nox11-legacy/work/VirtualBox-5.2.44/include/VBox/VBoxGuestMangling.h -m64 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -Wundef -I/usr/ports/emulators/virtualbox-ose-nox11-legacy/work/VirtualBox-5.2.44/include/VBox/Graphics -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/../include -I/usr/include -I/usr/ports/emulators/virtualbox-ose-nox11-legacy/work/VirtualBox-5.2.44/out/freebsd.amd64/release/obj/HGSMIGuestR0Lib/dtrace -I/usr/ports/emulators/virtualbox-ose-nox11-legacy/work/VirtualBox-5.2.44/include -I/usr/ports/emulators/virtualbox-ose-nox11-legacy/work/VirtualBox-5.2.44/out/freebsd.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_REM -DVBOX_WITH_RAW_MODE -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_DEBUGGER -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/local/share/virtualbox-ose\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/local/lib/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/local/lib/virtualbox\" -DRTPATH_APP_DOCS=\"/usr/local/share/doc/virtualbox-ose\" -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -D_KERNEL -DKLD_MODULE -DIN_GUEST -DIN_GUEST_R0 -Wp,-MD,/usr/ports/emulators/virtualbox-ose-nox11-legacy/work/VirtualBox-5.2.44/out/freebsd.amd64/release/obj/HGSMIGuestR0Lib/HGSMIMemAlloc.o.dep -Wp,-MT,/usr/ports/emulators/virtualbox-ose-nox11-legacy/work/VirtualBox-5.2.44/out/freebsd.amd64/release/obj/HGSMIGuestR0Lib/HGSMIMemAlloc.o -Wp,-MP -o /usr/ports/emulators/virtualbox-ose-nox11-legacy/work/VirtualBox-5.2.44/out/freebsd.amd64/release/obj/HGSMIGuestR0Lib/HGSMIMemAlloc.o /usr/ports/emulators/virtualbox-ose-nox11-legacy/work/VirtualBox-5.2.44/src/VBox/GuestHost/HGSMI/HGSMIMemAlloc.cpp
kmk: *** Exiting with status 2
*** Error code 2

An error that often comes is:
Code:
"error: cannot initialize a parameter of type '__va_list_tag *' with an lvalue of type 'va_list' (aka 'int')"
Version of virtualbox-ose-nox11-legacy is: 5.2.44_5
 

Update your ports tree.

A more recent version is packaged <https://www.freshports.org/emulators/virtualbox-ose-nox11-legacy/#packages> and installable.

What's below reminds me, there should probably be a conflict between guest additions and the kernel module.

Code:
root@freebsd:~ # pkg install virtualbox-ose-nox11-legacy
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 13 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    docbook: 1.5
    docbook-sgml: 4.5_1
    docbook-xml: 5.0_3
    docbook-xsl: 1.79.1_1,1
    iso8879: 1986_3
    kf5-kdoctools: 5.85.0
    libIDL: 0.8.14_5
    libvncserver: 0.9.13_1
    lzo2: 2.10_1
    sdocbook-xml: 1.1_2,2
    virtualbox-ose-kmod-legacy: 5.2.44_5
    virtualbox-ose-nox11-legacy: 5.2.44_6
    xmlcharent: 0.3_2

Number of packages to be installed: 13

The process will require 132 MiB more space.
32 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/13] Fetching virtualbox-ose-nox11-legacy-5.2.44_6.pkg: 100%   11 MiB   5.8MB/s    00:02  
[2/13] Fetching kf5-kdoctools-5.85.0.pkg: 100%  450 KiB 460.7kB/s    00:01  
[3/13] Fetching docbook-xsl-1.79.1_1,1.pkg: 100%   19 MiB   5.1MB/s    00:04  
[4/13] Fetching docbook-1.5.pkg: 100%    544 B   0.5kB/s    00:01  
[5/13] Fetching sdocbook-xml-1.1_2,2.pkg: 100%   15 KiB  15.5kB/s    00:01  
[6/13] Fetching docbook-xml-5.0_3.pkg: 100%  540 KiB 553.2kB/s    00:01  
[7/13] Fetching xmlcharent-0.3_2.pkg: 100%   12 KiB  12.6kB/s    00:01  
[8/13] Fetching docbook-sgml-4.5_1.pkg: 100%  136 KiB 139.1kB/s    00:01  
[9/13] Fetching iso8879-1986_3.pkg: 100%   13 KiB  13.4kB/s    00:01  
[10/13] Fetching libvncserver-0.9.13_1.pkg: 100%  205 KiB 210.0kB/s    00:01  
[11/13] Fetching lzo2-2.10_1.pkg: 100%  110 KiB 112.3kB/s    00:01  
[12/13] Fetching virtualbox-ose-kmod-legacy-5.2.44_5.pkg: 100%  128 KiB 131.0kB/s    00:01  
[13/13] Fetching libIDL-0.8.14_5.pkg: 100%  137 KiB 139.8kB/s    00:01  
Checking integrity... done (0 conflicting)
[1/13] Installing xmlcharent-0.3_2...
[1/13] Extracting xmlcharent-0.3_2: 100%
[2/13] Installing iso8879-1986_3...
[2/13] Extracting iso8879-1986_3: 100%
[3/13] Installing sdocbook-xml-1.1_2,2...
[3/13] Extracting sdocbook-xml-1.1_2,2: 100%
[4/13] Installing docbook-xml-5.0_3...
[4/13] Extracting docbook-xml-5.0_3: 100%
[5/13] Installing docbook-sgml-4.5_1...
[5/13] Extracting docbook-sgml-4.5_1: 100%
[6/13] Installing docbook-1.5...
[7/13] Installing lzo2-2.10_1...
[7/13] Extracting lzo2-2.10_1: 100%
[8/13] Installing docbook-xsl-1.79.1_1,1...
[8/13] Extracting docbook-xsl-1.79.1_1,1: 100%
[9/13] Installing libvncserver-0.9.13_1...
[9/13] Extracting libvncserver-0.9.13_1: 100%
[10/13] Installing virtualbox-ose-kmod-legacy-5.2.44_5...
[10/13] Extracting virtualbox-ose-kmod-legacy-5.2.44_5: 100%
[11/13] Installing libIDL-0.8.14_5...
[11/13] Extracting libIDL-0.8.14_5: 100%
[12/13] Installing virtualbox-ose-nox11-legacy-5.2.44_6...
===> Creating groups.
Creating group 'vboxusers' with gid '920'.
===> Creating users
Creating user 'vboxusers' with uid '920'.
[12/13] Extracting virtualbox-ose-nox11-legacy-5.2.44_6: 100%
[13/13] Installing kf5-kdoctools-5.85.0...
[13/13] Extracting kf5-kdoctools-5.85.0: 100%
=====
Message from virtualbox-ose-nox11-legacy-5.2.44_6:

--
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 (PR#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

Check wiki page for known issues and troubleshooting:
http://wiki.freebsd.org/VirtualBox

Please report any problems to emulation@. Thanks!
root@freebsd:~ # freebsd-version -kru
12.2-RELEASE-p7
12.2-RELEASE-p7
12.2-RELEASE-p10
root@freebsd:~ # pkg info -x virtualbox
virtualbox-ose-additions-6.1.26
virtualbox-ose-kmod-legacy-5.2.44_5
virtualbox-ose-nox11-legacy-5.2.44_6
root@freebsd:~ # pkg delete -y virtualbox-ose-kmod-legacy
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 2 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
    virtualbox-ose-kmod-legacy: 5.2.44_5
    virtualbox-ose-nox11-legacy: 5.2.44_6

Number of packages to be removed: 2

The operation will free 71 MiB.
[1/2] Deinstalling virtualbox-ose-nox11-legacy-5.2.44_6...
[1/2] Deleting files for virtualbox-ose-nox11-legacy-5.2.44_6: 100%
==> You should manually remove the "vboxusers" user.
==> You should manually remove the "vboxusers" group
[2/2] Deinstalling virtualbox-ose-kmod-legacy-5.2.44_5...
[2/2] Deleting files for virtualbox-ose-kmod-legacy-5.2.44_5: 100%
root@freebsd:~ #

Postscript

 
Back
Top