VirtualBox requires Qt6 https://www.virtualbox.org/wiki/Changelog-7.1
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=f1fbc644a8fc38015fa0432471fc3660866b677c commit f1fbc644a8fc38015fa0432471fc3660866b677c Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2025-04-28 14:42:52 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-04-28 14:42:52 +0000 www/phpvirtualbox-71: Update 7.0 => 7.1-1 Changelog: https://github.com/phpvirtualbox/phpvirtualbox/releases/tag/7.1-1 PR: 284439 www/phpvirtualbox-71/Makefile | 14 +++++--------- www/phpvirtualbox-71/distinfo | 6 +++--- .../files/patch-endpoints_lib_config.php | 16 ++++++++-------- www/phpvirtualbox-71/pkg-plist | 12 +++++++++--- 4 files changed, 25 insertions(+), 23 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=81280a685ff9489bd3694ee919a19337aa877237 commit 81280a685ff9489bd3694ee919a19337aa877237 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2025-04-28 14:29:30 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-04-28 14:29:30 +0000 www/phpvirtualbox-71: Repocopy from www/phpvirtualbox-70 PR: 284439 www/phpvirtualbox-71/Makefile (new) | 42 ++ www/phpvirtualbox-71/distinfo (new) | 3 + .../files/patch-endpoints_lib_config.php (new) | 10 + .../patch-endpoints_lib_vboxconnector.php (new) | 21 + www/phpvirtualbox-71/pkg-descr (new) | 3 + www/phpvirtualbox-71/pkg-plist (new) | 589 +++++++++++++++++++++ 6 files changed, 668 insertions(+)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=75e03e53bd054ba66ca0e076c7478f2456e9d992 commit 75e03e53bd054ba66ca0e076c7478f2456e9d992 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2025-04-28 15:12:48 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-04-28 15:17:03 +0000 www/phpvirtualbox-71: Connect to the build PR: 284439 www/Makefile | 1 + 1 file changed, 1 insertion(+)
Created attachment 260314 [details] Add Virtualbox ports for version 7.1 New ports: emulators/virtualbox-ose-71, emulators/virtualbox-ose-kmod-71, emulators/virtualbox-ose-nox11-71 are in the attachments. Patches and ports structure based on existing virtualbox-ose-70 mostly. Testing and running on 14.2 release/amd64 + Qt 6.8.3 (without poudriere, though).
(In reply to devel from comment #4) Great news! Could you provide a compressed file with everything in it?
(In reply to devel from comment #4) Thanks a lot! Did you apply patch from bug #286507? Tarball with all ports would be very convenient.
I managed to create the files from the attachment. If everything goes Ok I'll post a tar attachment.
Created attachment 260316 [details] ports directory with 7.1.8 itself No, patches from bug 286507 aren't included. Directories with ports added in this attachment.
To report my findings. Everything compiled without errors. Calling VirtualBox starts the GUI fine, but any attempt to start any of the VMs (windows, linux, whatever) ends with the VM crashing or simply not starting and being closed by VBox.
(In reply to devel from comment #8) You have not applied the patches for the last half year… :-o (In reply to Mario Lobo from comment #9) This is bad… I have applied all the latest patches and will try this version.
Created attachment 260319 [details] 7.1.8 v1 Mario Lobo, can you try my version (with all patches). Work for me: - build; - run VMs via phpvirtualbox: FreeBSD 12.0 i386, KUbuntu 24.04.1 amd64 LiveDVD, Windows 2019 installation media, Windows XP installation media, Windows 2000 install and run; - run VMs via VirtualBox GUI: FreeBSD 14.2 amd64 installation media.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=806da99dc22608ce8ff9e87903fcbc1fb4a2ab8d commit 806da99dc22608ce8ff9e87903fcbc1fb4a2ab8d Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2025-05-11 01:02:57 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-05-11 01:23:34 +0000 emulators/virtualbox-ose{,-additions,-kmod}{,-70,-legacy}: Update CONFLICTS_INSTALL before committing new ports with VirtualBox 7.1.x PR: 284439 emulators/virtualbox-ose-70/Makefile | 4 +++- emulators/virtualbox-ose-additions-legacy/Makefile | 4 +++- emulators/virtualbox-ose-additions/Makefile | 4 +++- emulators/virtualbox-ose-kmod-70/Makefile | 5 +++-- emulators/virtualbox-ose-kmod-legacy/Makefile | 3 ++- emulators/virtualbox-ose-kmod/Makefile | 3 ++- emulators/virtualbox-ose-legacy/Makefile | 4 +++- emulators/virtualbox-ose/Makefile | 4 +++- 8 files changed, 22 insertions(+), 9 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=e3da428cddd43fa3d24d6d3c564dfaf5231fe110 commit e3da428cddd43fa3d24d6d3c564dfaf5231fe110 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2025-05-11 01:31:39 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-05-11 01:31:39 +0000 emulators/virtualbox-ose-70: Fix CONFLICTS_INSTALL PR: 284439 emulators/virtualbox-ose-70/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
(In reply to Mario Lobo from comment #9) Try to run 'VirtualBoxVM' from shell - check for 'Undefined symbol' errors. Rebuilding ftp/curl was required in the case of my environment - before VirtualBoxVM running without errors.
Hi here is my report. Host: stable/14-6060830201d6: Wed May 7 15:20:42 -03 2025 I had Vbox 7.0.24 installed: All VMs worked, except the Snow Leopard VM after installed Vbox 7.1.8: VMs that Boot Ok: Linuxes 32&64 bits (Debian, Ububtu and Fedora) Android 64 bits PF-Sense BSD 64 bits Windows 32 bits VMs that enter Guru Meditation: Snow Leopard ANY windows 64 bits, be it an existing VM or create a new one. No 64 bit Win ISO boots anymore (8,8.1,10,11, whatever) VirtualBoxVM --startvm Win10 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! !! VCPU0: Guru Meditation 1155 (VINF_EM_TRIPLE_FAULT) !! !! Skipping ring-0 registers and stack, rcErr=VINF_EM_TRIPLE_FAULT !! !! {mappings, <NULL>} !! !! !! {hma, <NULL>} !! From this point on, the install of 7.1.8 "screwed" something in the system so bad that even if going back to older versions (7.0.24 or 6.1.50), VirtualBox is no longer capable of booting any windows 64 bits. The only exception is that Snow Leopard boots on 6.1.50. One last thing of note. During compilation, under EACH kbuild line, it shows: fcntl(): bad file descriptor
Created attachment 260345 [details] 7.1.8 v2 Made a few adjustments. But I'm worried about the build with the PYTHON option: ========================================================================================= running install_scripts WARNING: Installation path is not in current module search path! This might happen on OSes / distributions which only maintain packages by a vendor-specific method. Hints: - Check how the distribution handles user-installable Python packages. - Using setuptools directly might be deprecated on the distribution. - Using "pip install ./vboxapi" within a virtual environment (virtualenv) might fix this. Installed to: /tmp/work/usr/ports/emulators/virtualbox-ose-71/work/stage/usr/local/lib/python3.11/site-packages/ Global site packages directories are: /usr/local/lib/python3.11/site-packages User site packages directories are: /root/.local/lib/python3.11/site-packages Module search path is: /tmp/work/usr/ports/emulators/virtualbox-ose-71/work/VirtualBox-7.1.8/out/freebsd.amd64/release/bin/sdk/installer/python /usr/local/lib/python311.zip /usr/local/lib/python3.11 /usr/local/lib/python3.11/lib-dynload /usr/local/lib/python3.11/site-packages vboxapi /tmp/work/usr/ports/emulators/virtualbox-ose-71/work/stage/usr/local/lib/python3.11/site-packages/ ERROR: Testing VirtualBox Python bindings failed: No module named 'xpcom' ========================================================================================= This last line ^^^^^^. What can this affect?
(In reply to Mario Lobo from comment #15) Reboot doesn't help? > One last thing of note. During compilation, under EACH kbuild line, it shows: > fcntl(): bad file descriptor This appeared after the kBuild update. No side effects have been noticed yet.
(In reply to Vladimir Druzenko from comment #17) Nothing works :( Reboots, vbox upgrades, downgrades, port install, pkg install, you name it. After VBox 7.1.8, my host lost the ability to run any 64 bit windows VMs.
(In reply to Mario Lobo from comment #18) Are you sure you didn't do anything else on this host? The description of the actions doesn't match the result obtained.
(In reply to Vladimir Druzenko from comment #19) Guilty as charged, Vladimir :( I had disabled 2 settings in the BIOS to make some tests, and forgot them that way. SR-IOV support and NX Mode. As soon as I enabled them back, all Windows VMs came back to life. And I confirm that VBox 7.1.8 IS working fine on my host. I beg everyone's forgiveness for the noise. One last thing. I never compiled any of my VBox versions with python bindings checked. Thanks for the help.
(In reply to Mario Lobo from comment #20) I'm glad to hear you found the root cause and fixed it! And I'm glad that VB 7.1.8 works for you too - thanks for testing! I think it's time to commit the port.
A commit in branch 2025Q2 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=96a498cc9e18ce14d6ea31eecc101f9aafa64ed2 commit 96a498cc9e18ce14d6ea31eecc101f9aafa64ed2 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2025-05-11 01:02:57 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-05-13 18:37:20 +0000 emulators/virtualbox-ose{,-additions,-kmod}{,-70,-legacy}: Update CONFLICTS_INSTALL before committing new ports with VirtualBox 7.1.x PR: 284439 (cherry picked from commit 806da99dc22608ce8ff9e87903fcbc1fb4a2ab8d) emulators/virtualbox-ose-70/Makefile | 4 +++- emulators/virtualbox-ose-additions-legacy/Makefile | 4 +++- emulators/virtualbox-ose-additions/Makefile | 4 +++- emulators/virtualbox-ose-kmod-70/Makefile | 5 +++-- emulators/virtualbox-ose-kmod-legacy/Makefile | 3 ++- emulators/virtualbox-ose-kmod/Makefile | 3 ++- emulators/virtualbox-ose-legacy/Makefile | 4 +++- emulators/virtualbox-ose/Makefile | 4 +++- 8 files changed, 22 insertions(+), 9 deletions(-)
A commit in branch 2025Q2 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=ee427251b82f3ce2e6137f54a2f3074b6c469e94 commit ee427251b82f3ce2e6137f54a2f3074b6c469e94 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2025-05-11 01:31:39 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-05-13 18:37:46 +0000 emulators/virtualbox-ose-70: Fix CONFLICTS_INSTALL PR: 284439 (cherry picked from commit e3da428cddd43fa3d24d6d3c564dfaf5231fe110) emulators/virtualbox-ose-70/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=36a9a113cdead4d191a986a20d7f54601daf5551 commit 36a9a113cdead4d191a986a20d7f54601daf5551 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2025-05-13 19:20:29 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-05-13 20:33:39 +0000 emulators/virtualbox-ose{,-kmod,-nox11}-71: Repocopy from emulators/virtualbox-ose{,-kmod,-nox11}-70 PR: 284439 emulators/virtualbox-ose-71/Makefile (new) | 424 ++++++ emulators/virtualbox-ose-71/distinfo (new) | 7 + .../files/extrapatch-Config.kmk (new) | 11 + ...VBox-HostDrivers-Support-freebsd-Makefile (new) | 11 + .../files/extrapatch-vboximg-Config.kmk (new) | 11 + .../virtualbox-ose-71/files/patch-Config.kmk (new) | 400 +++++ .../virtualbox-ose-71/files/patch-configure (new) | 138 ++ .../files/patch-include-iprt-x86.h (new) | 19 + .../files/patch-include_VBox_com_array.h (new) | 36 + .../files/patch-include_VBox_sup.h (new) | 11 + .../files/patch-include_iprt_string.h (new) | 14 + ...ions-common-VBoxGuest-VBoxGuest-freebsd.c (new) | 284 ++++ ...ditions-common-VBoxGuest-freebsd-Makefile (new) | 27 + ...-common-VBoxGuest-freebsd-files_vboxguest (new) | 34 + ...Additions-x11-Installer-98vboxadd-xclient (new) | 17 + ...dditions-x11-Installer-vboxclient.desktop (new) | 10 + ...VBox-Devices-Network-slirp-bsd-sys-mbuf.h (new) | 12 + ...-VBox-HostDrivers-VBoxNetAdp-Makefile.kmk (new) | 20 + ...ivers-VBoxNetFlt-freebsd-files_vboxnetflt (new) | 10 + .../patch-src-VBox-Installer-Makefile.kmk (new) | 14 + .../patch-src-VBox-Installer-freebsd-VBox.sh (new) | 77 + ...c-VBox-Main-src-server-VirtualBoxImpl.cpp (new) | 11 + .../patch-src-VBox-Runtime-Makefile.kmk (new) | 14 + ...-r0drv-freebsd-sleepqueue-r0drv-freebsd.h (new) | 39 + ..._common_VBoxService_VBoxServiceVMInfo.cpp (new) | 71 + ...c_VBox_Additions_common_pam_pam__vbox.cpp (new) | 20 + ...patch-src_VBox_Additions_freebsd_Makefile (new) | 38 + ...h-src_VBox_Additions_freebsd_Makefile.kmk (new) | 31 + ...ox_Additions_freebsd_drm_vboxvideo__drm.c (new) | 17 + ...tions_freebsd_mount__vboxvfs_Makefile.kmk (new) | 31 + ...s_freebsd_mount__vboxvfs_mount__vboxvfs.8 (new) | 56 + ...s_freebsd_mount__vboxvfs_mount__vboxvfs.c (new) | 171 +++ ...src_VBox_Additions_freebsd_vboxvfs_bcmp.c (new) | 12 + ..._VBox_Additions_freebsd_vboxvfs_vboxvfs.h (new) | 428 ++++++ ...Additions_freebsd_vboxvfs_vboxvfs__prov.c (new) | 1015 +++++++++++++ ...ditions_freebsd_vboxvfs_vboxvfs__vfsops.c (new) | 645 ++++++++ ...dditions_freebsd_vboxvfs_vboxvfs__vnops.c (new) | 1543 ++++++++++++++++++++ ...VBox_Additions_x11_vboxmouse_Makefile.kmk (new) | 29 + ...src_VBox_Devices_Graphics_DevVGA-SVGA.cpp (new) | 20 + ...evices_Graphics_DevVGA-SVGA3d-dx-dx11.cpp (new) | 11 + ..._Devices_Graphics_DevVGA-SVGA3d-glLdr.cpp (new) | 29 + ...ox_Devices_Graphics_DevVGA-SVGA3d-glLdr.h (new) | 11 + ...ox_Devices_Graphics_DevVGA-SVGA3d-ogl.cpp (new) | 56 + .../patch-src_VBox_Devices_Makefile.kmk (new) | 44 + ...tch-src_VBox_Devices_PC_ipxe_Makefile.kmk (new) | 29 + ...ox_Devices_USB_USBProxyDevice-freebsd.cpp (new) | 11 + .../patch-src_VBox_ExtPacks_VNC_VBoxVNC.cpp (new) | 58 + ...x_Frontends_VBoxHeadless_VBoxHeadless.cpp (new) | 11 + ...ontends_VBoxManage_VBoxManageModifyVM.cpp (new) | 29 + ...h-src_VBox_HostDrivers_Support_SUPDrv.cpp (new) | 13 + ...VBox_HostDrivers_Support_SUPDrvInternal.h (new) | 11 + ...VBox_HostDrivers_Support_freebsd_Makefile (new) | 20 + ...tDrivers_Support_freebsd_SUPDrv-freebsd.c (new) | 234 +++ ...rivers_Support_freebsd_SUPLib-freebsd.cpp (new) | 11 + ...ostDrivers_Support_freebsd_files__vboxdrv (new) | 18 + ...x_HostDrivers_VBoxNetAdp_freebsd_Makefile (new) | 11 + ...s_VBoxNetAdp_freebsd_VBoxNetAdp-freebsd.c (new) | 147 ++ ..._VBox_HostDrivers_VBoxNetFlt_Makefile.kmk (new) | 11 + ...x_HostDrivers_VBoxNetFlt_freebsd_Makefile (new) | 11 + ...s_VBoxNetFlt_freebsd_VBoxNetFlt-freebsd.c (new) | 471 ++++++ ...VBox_HostDrivers_adpctl_VBoxNetAdpCtl.cpp (new) | 11 + .../files/patch-src_VBox_Main_Makefile.kmk (new) | 10 + .../patch-src_VBox_Main_include_HostPower.h (new) | 20 + ...tch-src_VBox_Main_src-server_HostImpl.cpp (new) | 11 + ...src-server_freebsd_PerformanceFreeBSD.cpp (new) | 24 + .../patch-src_VBox_Runtime_Makefile.kmk (new) | 12 + ...ntime_r0drv_freebsd_alloc-r0drv-freebsd.c (new) | 58 + ...time_r0drv_freebsd_assert-r0drv-freebsd.c (new) | 29 + ...time_r0drv_freebsd_memobj-r0drv-freebsd.c (new) | 398 +++++ ...drv_freebsd_memuserkernel-r0drv-freebsd.c (new) | 22 + ..._Runtime_r0drv_freebsd_mp-r0drv-freebsd.c (new) | 92 ++ ...me_r0drv_freebsd_semevent-r0drv-freebsd.c (new) | 53 + ...drv_freebsd_semeventmulti-r0drv-freebsd.c (new) | 73 + ...0drv_freebsd_semfastmutex-r0drv-freebsd.c (new) | 59 + ...me_r0drv_freebsd_semmutex-r0drv-freebsd.c (new) | 80 + ...me_r0drv_freebsd_spinlock-r0drv-freebsd.c (new) | 30 + ...untime_r0drv_freebsd_the-freebsd-kernel.h (new) | 48 + ...time_r0drv_freebsd_thread-r0drv-freebsd.c (new) | 91 ++ ...ime_r0drv_freebsd_thread2-r0drv-freebsd.c (new) | 35 + ...untime_r0drv_freebsd_time-r0drv-freebsd.c (new) | 43 + ...ntime_r0drv_freebsd_timer-r0drv-freebsd.c (new) | 68 + ..._Runtime_r3_freebsd_systemmem-freebsd.cpp (new) | 39 + ...ntime_r3_posix_process-creation-posix.cpp (new) | 38 + ...MM_VMMR3_PDMAsyncCompletionFileNormal.cpp (new) | 59 + .../files/patch-src_VMM_Config.kmk (new) | 11 + .../patch-src_libs_xpcom18a4_Makefile.kmk (new) | 11 + ...com18a4_nsprpub_pr_src_pthreads_ptsynch.c (new) | 20 + ...libs_xpcom18a4_xpcom_io_nsLocalFileUnix.h (new) | 17 + .../virtualbox-ose-71/files/pkg-message.in (new) | 120 ++ .../virtualbox-ose-71/files/vboxheadless.in (new) | 140 ++ .../virtualbox-ose-71/files/vboxinit.in (new) | 91 ++ .../virtualbox-ose-71/files/vboxwatchdog.in (new) | 51 + .../virtualbox-ose-71/files/vboxwebsrv.in (new) | 47 + .../files/virtualbox.desktop (new) | 17 + emulators/virtualbox-ose-71/pkg-descr (new) | 8 + emulators/virtualbox-ose-71/pkg-plist (new) | 614 ++++++++ emulators/virtualbox-ose-kmod-71/Makefile (new) | 112 ++ emulators/virtualbox-ose-kmod-71/distinfo (new) | 3 + .../files/pkg-message.in (new) | 10 + .../virtualbox-ose-kmod-71/files/vboxnet.in (new) | 67 + emulators/virtualbox-ose-kmod-71/pkg-descr (new) | 5 + emulators/virtualbox-ose-kmod-71/pkg-plist (new) | 6 + emulators/virtualbox-ose-nox11-71/Makefile (new) | 11 + 103 files changed, 9789 insertions(+)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=b385e71707e3273c21289041488bae032c3ccbf6 commit b385e71707e3273c21289041488bae032c3ccbf6 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2025-05-13 19:47:12 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-05-13 20:33:40 +0000 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: 284439 271146 Tested by: Mario Lobo <lobo@bsd.com.br> Relnotes: yes emulators/Makefile | 3 + emulators/virtualbox-ose-71/Makefile | 60 ++++--- emulators/virtualbox-ose-71/distinfo | 14 +- .../virtualbox-ose-71/files/extrapatch-Config.kmk | 2 +- emulators/virtualbox-ose-71/files/patch-Config.kmk | 80 ++++----- emulators/virtualbox-ose-71/files/patch-configure | 38 ++--- ...doc_manual_en__US_dita_UserManual.ditamap (new) | 11 ++ ...-VBox-Additions-x11-Installer-98vboxadd-xclient | 38 +++-- ...c-VBox-Devices-Network-DrvNATlibslirp.cpp (new) | 10 ++ ...patch-src_VBox_Devices_Graphics_DevVGA-SVGA.cpp | 4 +- ...VBox_Devices_Graphics_DevVGA-SVGA3d-dx-dx11.cpp | 4 +- ...c_VBox_Devices_Graphics_DevVGA-SVGA3d-glLdr.cpp | 2 +- ...src_VBox_Devices_Graphics_DevVGA-SVGA3d-glLdr.h | 2 +- ...src_VBox_Devices_Graphics_DevVGA-SVGA3d-ogl.cpp | 4 +- .../patch-src_VBox_Devices_PC_ipxe_Makefile.kmk | 8 +- ...h-src_VBox_HostDrivers_Support_freebsd_Makefile | 14 +- ...VBox_HostDrivers_Support_freebsd_files__vboxdrv | 24 ++- ...ch-src_VBox_HostDrivers_VBoxNetFlt_Makefile.kmk | 4 +- .../files/patch-src_VBox_Runtime_Makefile.kmk | 23 ++- ...ox_Runtime_r0drv_freebsd_memobj-r0drv-freebsd.c | 76 +++++---- ...VBox_Runtime_r0drv_freebsd_the-freebsd-kernel.h | 2 +- ...ibs_xpcom18a4_nsprpub_pr_src_pthreads_ptsynch.c | 19 +-- emulators/virtualbox-ose-71/pkg-plist | 185 ++------------------- emulators/virtualbox-ose-kmod-71/Makefile | 12 +- emulators/virtualbox-ose-kmod-71/distinfo | 6 +- emulators/virtualbox-ose-nox11-71/Makefile | 8 +- 26 files changed, 283 insertions(+), 370 deletions(-)
(In reply to commit-hook from comment #25) > 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. Will these be added?
(In reply to Helge Oldach from comment #26) I would be happy to, but no one has ported it yet, and I can’t build either 7.0.x or 7.1.x yet.
(In reply to Vladimir Druzenko from comment #27) OK, I gave it a try but stumbled over (IMHO) incorrect patches: patch-src_VBox_Additions_freebsd_mount__vboxvfs_Makefile.kmk -> s/NewVBoxGuestR3Exe/VBoxGuestR3Exe/ patch-src_VBox_Additions_x11_vboxmouse_Makefile.kmk -> s/VBOXGUESTR3XORGMOD/VBoxGuestR3XOrgMod/ patch-src_VBox_Additions_x11_vboxvideo_Makefile.kmk -> s;/usr/include;/usr/local/include; (for vboxvideo_drv_system_INCS) Also patch-src-VBox-Additions-common-VBoxGuest-VBoxGuest-freebsd.c appears incorrect: the 'rc' variable in 'rc = devfs_get_cdevpriv((void **)&pSession);' is not defined, and likewise 'pSession' is removed but used. I wonder how the main 7.1.8 port could be compiled at all? It seems the main port does not install the guest additions?
(In reply to Helge Oldach from comment #28) > It seems the main port does not install the guest additions? Yes. The patches are probably copied from the VB 6.1.x ports without modification.
Created attachment 264788 [details] 71 additions broken runtime, but compiles #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57 #1 doadump (textdump=<optimized out>) at /usr/src/sys/kern/kern_shutdown.c:405 #2 0xffffffff80b5a56b in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:523 #3 0xffffffff80b5aa69 in vpanic (fmt=0xffffffff811a03c8 "%s", ap=ap@entry=0xfffffe00546b2230) at /usr/src/sys/kern/kern_shutdown.c:967 #4 0xffffffff80b5a8a3 in panic (fmt=<unavailable>) at /usr/src/sys/kern/kern_shutdown.c:891 #5 0xffffffff8104dbfa in trap_fatal (frame=<optimized out>, eva=<optimized out>) at /usr/src/sys/amd64/amd64/trap.c:1000 #6 0xffffffff8104dbfa in trap_pfault (frame=0xfffffe00546b22b0, usermode=false, signo=<optimized out>, ucode=<optimized out>) #7 <signal handler called> #8 _vm_map_lock (map=0x202, file=0x0, line=0) at /usr/src/sys/vm/vm_map.c:531 #9 vm_map_unwire (map=0x202, start=18446735277714153472, end=18446735277714157568, flags=0) at /usr/src/sys/vm/vm_map.c:3327 #10 0xffffffff8305da74 in rtR0MemObjNativeFree (pMem=0xfffff8001c885490) at /usr/local/poudriere/ports/vbox/emulators/virtualbox-ose-additions-71/work/VirtualBox-7.1.14/out/freebsd.amd64/debug/bin/additions/src/vboxguest/r0drv/freebsd/memobj-r0drv-freebsd.c:164 #11 0xffffffff8305a6fe in RTR0MemObjFree (MemObj=0xfffff8001c885490, fFreeMappings=false) at /usr/local/poudriere/ports/vbox/emulators/virtualbox-ose-additions-71/work/VirtualBox-7.1.14/out/freebsd.amd64/debug/bin/additions/src/vboxguest/r0drv/memobj-r0drv.c:389 #12 0xffffffff83029d4e in VbglR0HGCMInternalCall (pCallInfo=0xfffffe00546b287c, cbCallInfo=88, fFlags=1, fRequestor=2, pfnAsyncCallback=0xffffffff83026f50 <vgdrvHgcmAsyncWaitCallbackInterruptible>, pvAsyncData=0xffffffff8306f020 <g_DevExt>, u32AsyncData=4294967295) at VBoxGuestR0LibHGCMInternal.c:1033 #13 0xffffffff83026e36 in vgdrvIoCtl_HGCMCallInner (pDevExt=0xffffffff8306f020 <g_DevExt>, pSession=0xfffff8002ca06610, pInfo=0xfffffe00546b287c, cMillies=4294967295, fInterruptible=true, f32bit=false, fUserData=false, cbExtra=0, cbData=88) at VBoxGuest.c:2828 #14 0xffffffff83024603 in vgdrvIoCtl_HGCMCallWrapper (pDevExt=0xffffffff8306f020 <g_DevExt>, pSession=0xfffff8002ca06610, pInfo=0xfffffe00546b287c, f32bit=false, fUserData=false, cbData=88) at VBoxGuest.c:2854 #15 0xffffffff83021fd9 in VGDrvCommonIoCtl (iFunction=3227014663, pDevExt=0xffffffff8306f020 <g_DevExt>, pSession=0xfffff8002ca06610, pReqHdr=0xfffffe00546b287c, cbReq=88) at VBoxGuest.c:4190 #16 0xffffffff8302142a in VGDrvCommonProcessOptionsFromHost (pDevExt=0xffffffff8306f020 <g_DevExt>) at VBoxGuest.c:1497 #17 0xffffffff83027d8c in vgdrvFreeBSDAttach (pDevice=0xfffff80003618b00) at VBoxGuest-freebsd.c:698 #18 0xffffffff80b9789d in DEVICE_ATTACH (dev=0xfffff80003618b00) at ./device_if.h:195 #19 device_attach (dev=0xfffff80003618b00) at /usr/src/sys/kern/subr_bus.c:2606 #20 0xffffffff80b97455 in device_probe_and_attach (dev=0x202, dev@entry=0xfffff80003618b00) at /usr/src/sys/kern/subr_bus.c:2555 #21 0xffffffff80830ef2 in pci_driver_added (dev=0xfffff80003617200, driver=<optimized out>) at /usr/src/sys/dev/pci/pci.c:4810 #22 0xffffffff80b94e79 in BUS_DRIVER_ADDED (_dev=0xfffff80003617200, _driver=0xffffffff83071af8 <vgdrvFreeBSDDriver>) at ./bus_if.h:210 #23 devclass_driver_added (dc=dc@entry=0xfffff800034b4c00, driver=driver@entry=0xffffffff83071af8 <vgdrvFreeBSDDriver>) at /usr/src/sys/kern/subr_bus.c:649 #24 0xffffffff80b94e0e in devclass_add_driver (dc=0xfffff800034b4c00, driver=0xffffffff83071af8 <vgdrvFreeBSDDriver>, pass=2147483647, dcp=0x0) at /usr/src/sys/kern/subr_bus.c:736 #25 0xffffffff80b34bb5 in module_register_init (arg=0xffffffff83071ab0 <vboxguest_pci_mod>) at /usr/src/sys/kern/kern_module.c:121 #26 0xffffffff80b253ef in linker_file_sysinit (lf=0xfffff80005ca0180) at /usr/src/sys/kern/kern_linker.c:241 #27 linker_load_file (filename=0xfffff8002c9dafa0 "/boot/modules/vboxguest.ko", result=<optimized out>) at /usr/src/sys/kern/kern_linker.c:480 #28 linker_load_module (kldname=kldname@entry=0xfffff800250ba400 "/boot/modules/vboxguest.ko", modname=0x0, parent=parent@entry=0x0, verinfo=verinfo@entry=0x0, lfpp=lfpp@entry=0xfffffe00546b2da0) at /usr/src/sys/kern/kern_linker.c:2226 #29 0xffffffff80b26f65 in kern_kldload (td=td@entry=0xfffff8002ca70740, file=file@entry=0xfffff800250ba400 "/boot/modules/vboxguest.ko", fileid=fileid@entry=0xfffffe00546b2de4) at /usr/src/sys/kern/kern_linker.c:1182 #30 0xffffffff80b27079 in sys_kldload (td=0xfffff8002ca70740, uap=0xfffff8002ca70b40) at /usr/src/sys/kern/kern_linker.c:1205 #31 0xffffffff8104e547 in syscallenter (td=0xfffff8002ca70740) at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:193 #32 amd64_syscall (td=0xfffff8002ca70740, traced=0) at /usr/src/sys/amd64/amd64/trap.c:1241 #33 <signal handler called> #34 0x0000170a88b4d49a in ?? ()
Created attachment 264811 [details] 71 additions v2. (not tested enough) v6x had a block around some free code in memobj, so I added that from 6.x, which fixes the loadtime crash. I have tested X with vboxvideo and VBoxSvga. (with a Xorg.conf) I could set the resolutin to 1920x1080 i.e my host resolution. Mouse integration works, shared clipboard works, I have not tested shared folders..
Thanks for preparing 7.1 additions! I wonder how your patch would be applied. It does seem to work cleanly against today's ports tree: Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- b/emulators/Makefile |+++ b/emulators/Makefile -------------------------- File to patch: ^Croot@latitude patch <../attachment.cgi\?id\=264811\&action\=diff\&format\=raw\&headers\=1 Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- b/emulators/Makefile |+++ b/emulators/Makefile -------------------------- Patching file Makefile using Plan A... Hunk #1 succeeded at 161. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |--- b/emulators/virtualbox-ose-71/files/patch-src-VBox-Additions-common-VBoxGuest-VBoxGuest-freebsd.c |+++ b/emulators/virtualbox-ose-71/files/patch-src-VBox-Additions-common-VBoxGuest-VBoxGuest-freebsd.c -------------------------- File to patch: It smells like perhaps at some moment virtualbox-ose-71/files/patch-src-VBox-Additions-common-VBoxGuest-freebsd-Makefile got renamed to virtualbox-ose-71/files/patch-src_VBox_Additions_common_VBoxGuest_freebsd_Makefile (i.e. underscores instead of dashes separating VBox source directory names - applies to some 15 or so different patches in files/*)?
Also it seems like there are some poudriere testing leftovers in the patch, related to vboxmouse/Makefile.kmk, which doesn't allow it to apply cleanly: --- b/emulators/virtualbox-ose-71/files/patch-src_VBox_Additions_x11_vboxmouse_Makefile.kmk +++ b/emulators/virtualbox-ose-71/files/patch-src_VBox_Additions_x11_vboxmouse_Makefile.kmk @@ -1,6 +1,6 @@ ---- src/VBox/Additions/x11/vboxmouse/Makefile.kmk.orig 2019-01-25 18:24:30 UTC -+++ src/VBox/Additions/x11/vboxmouse/Makefile.kmk -@@ -227,10 +227,22 @@ endif # neq ($(KBUILD_TARGET),linux) +--- /usr/local/poudriere/ports/vbox/emulators/virtualbox-ose-additions-71/work/VirtualBox-7.1.14/src/VBox/Additions/x11/vboxmouse/Makefile.kmk.orig 20 25-10-16 16:25:37.000000000 +0200 ++++ /usr/local/poudriere/ports/vbox/emulators/virtualbox-ose-additions-71/work/VirtualBox-7.1.14/src/VBox/Additions/x11/vboxmouse/Makefile.kmk 2025-10-22 21:50:53.331988000 +0200 +@@ -237,10 +237,22 @@ ifdef VBOX_USE_SYSTEM_XORG_HEADERS
Created attachment 264820 [details] 71 additions v3. (not tested enough) (should git apply) The diff --staged and renames are not easy apperently.. Now with -MNN% the rename should be a deletion and a creation. Plus a fix within the patch..
(In reply to Jesper Schmitz Mouridsen from comment #34) Thanks! Work for me. I'm do some testing and then commit. Are you sure about: "KMK_CONFIG+=VBOX_ONLY_ADDITIONS=1"? Port already have in post-patch: @${ECHO_CMD} 'VBOX_ONLY_ADDITIONS = 1' > ${WRKSRC}/LocalConfig.kmk
I would suggest to "underscore" virtualbox-ose-71/files/patch-src-VBox-Additions-common-VBoxGuest-VBoxGuest-freebsd.c for consistency. vboxfs doesn't work. It bails out upon module load with: link_elf_obj: symbol sfprov_mount undefined linker_load_file: /boot/modules/vboxvfs.ko - unsupported file type
Thanks a lot for the hard work! Much appreciated. Apart from vboxfs it looks good to me. (For the record, vboxfs works fine with the 6.1.50 additions, even against a 7.2.2 host).
Created attachment 264850 [details] 71 additions v4. (vboxvfs build fixed) RC for commit - all work for me. - kldload vboxvfs work too. - Revert rename patch - there are a lot of patches with incorrect names - IMHO better to do this in separate patch. - Regenerate changed patches. If there are no issues, I will commit it in the next few days.
(In reply to Vladimir Druzenko from comment #38) Works for me: host$ VBoxManage showvminfo guest --machinereadable|grep 'Guest' GuestMemoryBalloon=0 GuestOSType="FreeBSD_64" GuestAdditionsRunLevel=2 GuestAdditionsVersion="7.1.14 r170994" GuestAdditionsFacility_VirtualBox Base Driver=50,1761337763575 GuestAdditionsFacility_VirtualBox System Service=50,1761337767186 GuestAdditionsFacility_Seamless Mode=50,1761338626305 GuestAdditionsFacility_Graphics Mode=50,1761338626305 guest$ uname -srv FreeBSD 15.0-BETA3 FreeBSD 15.0-BETA3 releng/15.0-n280758-0fc5b401bdc7 GENERIC John groenveld@acm.org
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=98b06af25ecb0e0bec162a60f51845c68ebd1f89 commit 98b06af25ecb0e0bec162a60f51845c68ebd1f89 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2025-10-25 00:03:59 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-10-25 00:12:47 +0000 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/Makefile | 2 + ...-Additions-common-VBoxGuest-VBoxGuest-freebsd.c | 44 +++++++------ ...Box-Additions-common-VBoxGuest-freebsd-Makefile | 23 +++++-- ...x_Additions_freebsd_mount__vboxvfs_Makefile.kmk | 4 +- ...ox_Additions_freebsd_vboxvfs_Makefile.kmk (new) | 50 ++++++++++++++ ...h-src_VBox_Additions_x11_vboxmouse_Makefile.kmk | 6 +- ...VBox_Additions_x11_vboxvideo_Makefile.kmk (new) | 15 +++++ ...ox_Runtime_common_misc_handletablectx.cpp (new) | 24 +++++++ ...ox_Runtime_r0drv_freebsd_memobj-r0drv-freebsd.c | 76 ++++++++++++---------- emulators/virtualbox-ose-additions-71/Makefile | 23 ++++--- emulators/virtualbox-ose-additions-71/distinfo | 6 +- .../virtualbox-ose-additions-nox11-71/Makefile | 6 +- 12 files changed, 198 insertions(+), 81 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=969d55be29eee6da4095a63eda1e54c79804a635 commit 969d55be29eee6da4095a63eda1e54c79804a635 Author: Vladimir Druzenko <vvd@FreeBSD.org> AuthorDate: 2025-10-24 23:50:48 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-10-25 00:10:46 +0000 emulators/virtualbox-ose-additions{,-nox11}-71: Repocopy from emulators/virtualbox-ose-additions{,-nox11} PR: 284439 .../virtualbox-ose-additions-71/Makefile (new) | 175 +++++++++++++++++++++ .../virtualbox-ose-additions-71/distinfo (new) | 3 + .../files/vboxguest.in (new) | 64 ++++++++ .../files/vboxservice.in (new) | 23 +++ .../files/vboxvideo.conf (new) | 5 + .../virtualbox-ose-additions-71/pkg-descr (new) | 6 + .../virtualbox-ose-additions-71/pkg-message (new) | 36 +++++ .../virtualbox-ose-additions-71/pkg-plist (new) | 12 ++ .../Makefile (new) | 8 + 9 files changed, 332 insertions(+)
Thanks to all!!!