vbox How to virtualbox on freebsd 14.1 ?

I'm trying to install virtualbox 6.1.50 on freebsd 14.1.
Yes, I know virtialbox 6.x is past end-of-life, and we're waiting patiently for 7.x.
Seems I can't install vbox 6.1.50 from packages due to driver conflict with kernel version 14.1
How many hours or days does it take to complie virtualbox-ose-6.1.50 from ports ?
I'm hoping the wait will be worth the trouble.
 
How many hours or days does it take to complie virtualbox-ose-6.1.50 from ports ?
The port itself (without build and run dependencies) not that much, the distfile is around 160MB.

/usr/ports/emulators/virtualbox-ose/distfile
Code:
SIZE (VirtualBox-6.1.50.tar.bz2) = 165959648

On a decent system, with a decent CPU (3+ GHz), under 1/2 an hour.

As for the build and run dependencies, those can be installed as packages.
See ports(7)
Code:
     install-missing-packages
                Install missing dependencies from packages instead of building
                them.
 
What are your machine specs?
Mostly modest ( ~ 10+ y/old ) hardwares, such as these and similar, all with 16GB's of memory

CPU: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz (3192.82-MHz K8-class CPU)
CPU: Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz (3192.75-MHz K8-class CPU)
CPU: AMD Athlon(tm) II X2 270 Processor (3415.29-MHz K8-class CPU)

Just a little more horsepowers than a RaspberryPi 5B. ;)
 
You can install the package, but you'll need to rebuild emulators/virtualbox-ose-kmod from ports. It's a kernel module and needs to be build for the specific kernel version (the packages are still being built for 14.0).

VirtualBox was working nicely using 14.0-RELEASE.
Now I've done all the steps to upgrade from 14.0-RELEASE to 14.1-RELEASE, and rebooted plenty.
When I try to make the virtualbox-ose-kmod from ports, it falls over with this error :
./kBuild/env.sh: info: Executing command: gmake -f bootstrap.gmk
: invalid option -- D
Also
This program built for amd64-portbld-freebsd14.0
Report bugs to <bug-make@gnu.org>
./kBuild/env.sh: info: rc=2: gmake -f bootstrap.gmk
*** Error code 2

Stop.
make[1]: stopped in /usr/ports/devel/kBuild
*** Error code 1

Stop.
make: stopped in /usr/ports/emulators/virtualbox-ose-kmod

Please and thankyou for any guidance to fix this pushback.
 
This is not emulators/virtualbox-ose related but with its build dependency devel/kBuild (builds fine on a updated tree by the way).

Instead of building build-dependencies from ports, those can be installed from package, afterwards removed with pkg-autoremove(8)

ports(7)
Code:
     install-missing-packages
                Install missing dependencies from packages instead of building
                them.
EDIT: I didn't notice earlier mentioning that in posting # 3 already.
 
Thanks for helps above.

I compiled the virtualbox-ose-kmod (version 6.1.48) from ports, and now the virtualbox appears to work as intended.
The virtualbox-ose package installed by pkg is version 6.1.50.

When I attempt pkg upgrade, the pkg manager suggests virtualbox-ose-kmod 6.1.48 will be replaced by 6.1.50, so I stopped that happening.
Please, how do I flag this important kernel module package to be left alone by pkg commands ?
 
Hello folks, also see this post at the end:


its work for me.

cd /usr/ports/emulators/virtualbox-ose-kmod/ && make install clean && pkg install virtualbox-ose && kldload vboxdrv

kldload vboxdrv
echo 'vboxdrv_load="YES"' >> /boot/loader.conf
echo 'vboxnet_load="YES"' >> /boot/loader.conf
echo 'vboxnet_enable="YES"' >> /etc/rc.conf
pw groupmod vboxusers -m administrateur,root
chown root:vboxusers /dev/vboxnetctl
chmod 0660 /dev/vboxnetctl

echo 'own vboxnetctl root:vboxusers' >> /etc/devfs.conf
echo 'perm vboxnetctl 0660' >> /etc/devfs.conf
echo '[system=10]' >> /etc/devfs.rules
echo "add path 'usb/*' mode 0660 group operator" >> /etc/devfs.rules

echo 'devfs_system_ruleset="system"' >> /etc/rc.conf

service devfs restart
 
Back
Top