virtualbox-ose port fails (12.1)

Mario Lobo lobo at bsd.com.br
Tue May 19 20:08:51 UTC 2020


Christoph;

I think you didn't fully understand what I was saying.

There are 2 different scenarios:

1) FreeBSD is your main desktop/server OS on the physical machine, and you
run all your VMs in it using VirtualBox (whatever they are)

In this case, you do not need to compile the virtualbox-ose-additions port.
It isn't needed when you run VMs with FreeBSD as their host.
When you install VirtualBox on your FreeBSD physical machine, it comes with
an .iso file

(VBoxGuestAdditions_5.2.34.iso) that you should attach to your VMs (windows
ot linux) so you can install guest additions on them.

Here, vboxdrv.ko,vboxnetadp.ko and vboxnetflt.ko take care of EVERYTHING
concerning the VMs (shared folders, network, video, etc...)


2) You have whatever OS (BSD,Windows,Linux, Mac) for your desktop/server,
you installed VirtualBox on it, and you want to run FreeBSD AS VM on it.


That is the ONLY occasion you are gonna need to compile the
virtualbox-ose-additions port. INSIDE the running FreebSD vm! This is the
ONLY place where vboxvfs.ko is gonna of service.
  You should never compile this port on FreeBSD as host. ONLY as a VM!

The port not compiling IS a problem, but only if your scenario is number 2)

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!]

On Tue, May 19, 2020 at 6:12 AM Christoph Kukulies <kuku at kukulies.org>
wrote:

> Aah, thanks. That’s a good tip. (virtualbox-guestadditions)
> Will do that. From what I see these the guest additions are in
> virtualbox-additions, but these are exactly the ones that fail on me to
> compile.
> vboxvfs is in there too and from the README GuestAdditions have to be
> enabled in a dialogue.
>
> Compilation fails here:
>
> -o
> /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/out/freebsd.amd64/debug/obj/RuntimeGuestR0/common/alloc/alloc.o
> /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/src/VBox/Runtime/common/alloc/alloc.cpp
> kmk: *** Waiting for unfinished jobs....
> In file included from
> /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/src/VBox/Runtime/common/alloc/heapsimple.cpp:39:
> In file included from
> /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/include/iprt/string.h:45:
> In file included from /usr/src/sys/sys/libkern.h:41:
> In file included from /usr/src/sys/sys/systm.h:140:
> */usr/src/sys/sys/pcpu.h:224:10: **fatal error: **'machine/pcpu_aux.h'
> file not found*
> #include <machine/pcpu_aux.h>
> *         ^~~~~~~~~~~~~~~~~~~~*
> 1 error generated.
> kmk: ***
> [/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/out/freebsd.amd64/debug/obj/RuntimeGuestR0/common/alloc/heapsimple.o]
> Error 1
> The failing command:
> @c++ -c -g -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-strict-aliasing
> -fno-common -fno-stack-protector -O2 -fno-omit-frame-pointer
> -fno-optimize-sibling-calls -nostdinc -include
> /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/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-additions/work/VirtualBox-5.2.32/out/freebsd.amd64/debug/gen-sys-hdrs
> -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/src/VBox/Runtime
> -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/src/VBox/Runtime/include
> -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/../include
> -I/usr/include
> -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/out/freebsd.amd64/debug/obj/RuntimeGuestR0/dtrace
> -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/include
> -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/out/freebsd.amd64/debug
> -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_REM
> -DVBOX_WITH_RAW_MODE -DDEBUG -DDEBUG_root -DDEBUG_USERNAME=root
> -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_AMD64 -D__AMD64__
> -DVBOX_WITH_DEBUGGER -DVBOX_WITH_HARDENING -DRT_LOCK_STRICT
> -DRT_LOCK_STRICT_ORDER -DRTPATH_APP_PRIVATE=\"/usr/local/lib/virtualbox\"
> -DRTPATH_APP_PRIVATE_ARCH=\"/usr/local/lib/virtualbox\"
> -DRTPATH_SHARED_LIBS=\"/usr/local/lib/virtualbox\"
> -DRTPATH_APP_DOCS=\"/usr/local/lib/virtualbox\" -DIN_RING0 -DIN_RT_R0
> -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -D_KERNEL -DKLD_MODULE -DIN_GUEST
> -DIN_GUEST_R0 -DIN_RT_R0 -DRT_WITH_VBOX -DRT_WITHOUT_NOCRT_WRAPPERS
> -DRT_NO_EXPORT_SYMBOL -DNOFILEID
> -Wp,-MD,/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/out/freebsd.amd64/debug/obj/RuntimeGuestR0/common/alloc/heapsimple.o.dep
> -Wp,-MT,/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/out/freebsd.amd64/debug/obj/RuntimeGuestR0/common/alloc/heapsimple.o
> -Wp,-MP -o
> /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/out/freebsd.amd64/debug/obj/RuntimeGuestR0/common/alloc/heapsimple.o
> /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/src/VBox/Runtime/common/alloc/heapsimple.cpp
> kmk: *** Exiting with status 2
> *** Error code 2
>
> Stop.
> make[1]: stopped in /usr/ports/emulators/virtualbox-ose-additions
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/emulators/virtualbox-ose-additions
> #
>
>> Christoph
>
>
> Am 17.05.2020 um 19:36 schrieb Mario Lobo <lobo at bsd.com.br>:
>
> On Sun, May 17, 2020 at 3:36 AM Christoph Kukulies <kuku at kukulies.org>
> wrote:
>
>
> My requirement is:
>
> the VB guest is a Windows . I have (large) files in the FreeBSD hosts FS
> (my home directory) which I want to make accessible in the Windows guests
> C: drive ( or other drive letter).
>
>> Christoph
>
>
>
>
> Ahhh ... All you need is to install virtualbox-guestadditions in your
> windows guest.
>
> To do that, you must have the file :
>
> VBoxGuestAdditions_5.2.34.iso
>
> which gets pulled when you check
>
> [x] GUESTADDITIONS  Build with Guest Additions
>
> in make config when building the virtualbox-ose port.
>
> Attach the iso to your windows guest and install it.
>
> After that, whatever folder you share from the host, will be accessible by
> your windows guest.
>
>
>


More information about the freebsd-questions mailing list