From owner-freebsd-questions@freebsd.org Tue May 19 20:08:51 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D895E2F3E9C for ; Tue, 19 May 2020 20:08:51 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49RRm22mL2z45V5 for ; Tue, 19 May 2020 20:08:49 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by mail-il1-x12c.google.com with SMTP id 18so709773iln.9 for ; Tue, 19 May 2020 13:08:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=gOvn8P1Zgwg0Nw0Mk0glaFduDAphZBHg3r/5C9P4uCY=; b=fwWcEGXNHPTNwd2NF7DG1r8OAO02YmA2SSmEBEgu8v/kIUcAs9FxD2dXBQrqtQZgU9 bbfYSckD8LD7LY2ZpMVM5pqiMmEZic1qHi0Pro779Z4csVcAcbbfn6Vr7w6h/fRCSkdc gAOX6ff1Nx6ID5L9hAMoOriuUR6Rnv6EMk0/0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=gOvn8P1Zgwg0Nw0Mk0glaFduDAphZBHg3r/5C9P4uCY=; b=b7YHIMJLfrHsndX24v4att3MjefcYgsKtYj1qiA8AcG95NgO2/2cmWNsFvEOAcdLQG vPC1kQorh8RxCYzDKZtGVHZA2hvrylDEmssShFgN6ClP4zhx1cyVtLNzHxmn0et7V/Ja MqD1h4f9B8oPZWh+JRU9QuR8XuqwViWth4o6B+62vBEWrIgfy6O873rfq8V4frirz4Qc +swK4wCu9m4wk+Tmz9C7u8cb8iqsLQWQX75pnFMZHvE/tlPozPL8XKAHebphnqlTWnjO KWd0Fwtj/bPCCVrDqiI9MZxwjq4+TwcHIrzwV67sGcKCAlcvqWC89xr8BF6zBMix3GwD T8ww== X-Gm-Message-State: AOAM533aEjhQdCbD90b8hHEQ4J6ExezdNIPcZvN6FrPqdzAVMbI5EtRk LBbWx4jz3QUHlYAcpqlnH8WRAxR+bgBu2aZaUT8mGdgtmdE= X-Google-Smtp-Source: ABdhPJz8lkvsJ7mmEhqzqgLr8QeX+C0vOHus2BoyFasoah0gfdOdFGQv+Zt8OhgaCHMJEh/4BQSbJioxqpkXchll1gM= X-Received: by 2002:a92:d40a:: with SMTP id q10mr768448ilm.87.1589918928361; Tue, 19 May 2020 13:08:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Mario Lobo Date: Tue, 19 May 2020 17:08:37 -0300 Message-ID: Subject: Re: virtualbox-ose port fails (12.1) To: freeBSD Mailing List X-Rspamd-Queue-Id: 49RRm22mL2z45V5 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsd.com.br header.s=capeta header.b=fwWcEGXN; dmarc=none; spf=pass (mx1.freebsd.org: domain of lobo@bsd.com.br designates 2607:f8b0:4864:20::12c as permitted sender) smtp.mailfrom=lobo@bsd.com.br X-Spamd-Result: default: False [-0.58 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.34)[-0.337]; R_DKIM_ALLOW(-0.20)[bsd.com.br:s=capeta]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[bsd.com.br]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsd.com.br:+]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::12c:from]; NEURAL_SPAM_SHORT(0.26)[0.257]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2020 20:08:51 -0000 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) --=20 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 wrote: > Aah, thanks. That=E2=80=99s 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/incl= ude/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 > * ^~~~~~~~~~~~~~~~~~~~* > 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/incl= ude/VBox/VBoxGuestMangling.h > -m64 --param inline-unit-growth=3D100 --param large-function-growth=3D100= 0 > -fno-omit-frame-pointer -mcmodel=3Dkernel -mno-red-zone -mfpmath=3D387 -m= no-sse > -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-table= s > -Wundef > -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/ou= t/freebsd.amd64/debug/gen-sys-hdrs > -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/sr= c/VBox/Runtime > -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/sr= c/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/ou= t/freebsd.amd64/debug/obj/RuntimeGuestR0/dtrace > -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/in= clude > -I/usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.2.32/ou= t/freebsd.amd64/debug > -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_REM > -DVBOX_WITH_RAW_MODE -DDEBUG -DDEBUG_root -DDEBUG_USERNAME=3Droot > -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=3D\"/usr/local/lib/virtualbox= \" > -DRTPATH_APP_PRIVATE_ARCH=3D\"/usr/local/lib/virtualbox\" > -DRTPATH_SHARED_LIBS=3D\"/usr/local/lib/virtualbox\" > -DRTPATH_APP_DOCS=3D\"/usr/local/lib/virtualbox\" -DIN_RING0 -DIN_RT_R0 > -DHC_ARCH_BITS=3D64 -DGC_ARCH_BITS=3D64 -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.de= p > -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 > # > > =E2=80=94 > Christoph > > > Am 17.05.2020 um 19:36 schrieb Mario Lobo : > > On Sun, May 17, 2020 at 3:36 AM Christoph Kukulies > 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). > > =E2=80=94 > 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 b= y > your windows guest. > > >