From: Gary Jennejohn on
On Mon, 28 Dec 2009 00:24:26 +0100
Martin Wilke <miwi(a)FreeBSD.org> wrote:

> # /usr/local/etc/rc.d/vboxguest.sh start
>

This shell script has a problem. It looks in /boot/kernel for the
module but the port installs it under /boot/modules.

I also can't load this module (after loading vboxdrv.ko):

sh -x /usr/local/etc/rc.d/vboxguest.sh start
+ VBOXGUESTFILE=''
+ SILENTUNLOAD=''
+ check_root
+ id -u
+ test 0 -ne 0
+ get_module_path
+ moduledir=/boot/modules
+ modulepath=/boot/modules/vboxguest.ko
+ test -f /boot/modules/vboxguest.ko
+ VBOXGUESTFILE=/boot/modules/vboxguest.ko
+ check_if_installed
+ test /boot/modules/vboxguest.ko -a -f /boot/modules/vboxguest.ko
+ return 0
+ test '' = silentunload
+ start
+ module_loaded
+ kldstat
+ grep vboxguest
+ loadentry=''
+ test -z ''
+ return 1
+ /sbin/kldload vboxguest.ko
kldload: can't load vboxguest.ko: Exec format error
+ module_loaded
+ kldstat
+ grep vboxguest
+ loadentry=''
+ test -z ''
+ return 1
+ abort 'Failed to load vboxguest.'
+ echo 'Failed to load vboxguest.'
Failed to load vboxguest.
+ exit 1

file /boot/modules/vbox*.ko
/boot/modules/vboxdrv.ko: ELF 64-bit LSB relocatable, x86-64, version 1 (FreeBSD), not stripped
/boot/modules/vboxguest.ko: ELF 64-bit LSB relocatable, x86-64, version 1 (FreeBSD), not stripped
/boot/modules/vboxnetadp.ko: ELF 64-bit LSB relocatable, x86-64, version 1 (FreeBSD), not stripped
/boot/modules/vboxnetflt.ko: ELF 64-bit LSB relocatable, x86-64, version 1 (FreeBSD), not stripped

Does vboxguest.ko have silent dependencies on other vbox modules? I only
loaded vboxdrv.ko.

---
Gary Jennejohn
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: "Bernhard Froehlich" on
On Mon, December 28, 2009 3:25 pm, Gary Jennejohn wrote:
> On Mon, 28 Dec 2009 00:24:26 +0100
> Martin Wilke <miwi(a)FreeBSD.org> wrote:
>
>> # /usr/local/etc/rc.d/vboxguest.sh start
>>
>
> This shell script has a problem. It looks in /boot/kernel for the
> module but the port installs it under /boot/modules.
>
> I also can't load this module (after loading vboxdrv.ko):
>
> sh -x /usr/local/etc/rc.d/vboxguest.sh start
> + VBOXGUESTFILE=''
> + SILENTUNLOAD=''
> + check_root
> + id -u
> + test 0 -ne 0
> + get_module_path
> + moduledir=/boot/modules
> + modulepath=/boot/modules/vboxguest.ko
> + test -f /boot/modules/vboxguest.ko
> + VBOXGUESTFILE=/boot/modules/vboxguest.ko
> + check_if_installed
> + test /boot/modules/vboxguest.ko -a -f /boot/modules/vboxguest.ko
> + return 0
> + test '' = silentunload
> + start
> + module_loaded
> + kldstat
> + grep vboxguest
> + loadentry=''
> + test -z ''
> + return 1
> + /sbin/kldload vboxguest.ko
> kldload: can't load vboxguest.ko: Exec format error
> + module_loaded
> + kldstat
> + grep vboxguest
> + loadentry=''
> + test -z ''
> + return 1
> + abort 'Failed to load vboxguest.'
> + echo 'Failed to load vboxguest.'
> Failed to load vboxguest.
> + exit 1
>
> file /boot/modules/vbox*.ko
> /boot/modules/vboxdrv.ko: ELF 64-bit LSB relocatable, x86-64, version 1
> (FreeBSD), not stripped
> /boot/modules/vboxguest.ko: ELF 64-bit LSB relocatable, x86-64, version 1
> (FreeBSD), not stripped
> /boot/modules/vboxnetadp.ko: ELF 64-bit LSB relocatable, x86-64, version 1
> (FreeBSD), not stripped
> /boot/modules/vboxnetflt.ko: ELF 64-bit LSB relocatable, x86-64, version 1
> (FreeBSD), not stripped
>
> Does vboxguest.ko have silent dependencies on other vbox modules? I only
> loaded vboxdrv.ko.

Looks like you installed the guest additions on the host. You should not
do that. They should only be installed on FreeBSD guests running in an
virtualbox.

Nevertheless could you please see in /var/log/messages what error was
logged when you tried to load vboxguest.ko ?

--
Bernhard Fr�hlich
http://www.bluelife.at/

_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Daniel Braniss on
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Howdy,
>
> Changelog from VirtualBox is available here:
> http://www.virtualbox.org/wiki/Changelog
>
> Changes in the port:
> - VirtualBox and the guest additions have been updated to 3.1.2.
> - Port has been renamed to virtualbox-ose to reflect that we are
> using the OSE version. Requested by: mm@
> - A seperate port for the kernel modules has been created: virtualbox-ose-kmod
> - A seperate port for guest additions for FreeBSD guests has been
> created: virtualbox-ose-additions
> - Added proper PulseAudio support for FreeBSD. Contributed by Noriyoshi Kawano
> - procfs is no longer required because vbox uses sysctl(3) now. Contributed by
> Baptiste Daroussin and Bernhard Froehlich
> - Fix build with a non-standard location for the system source. Submitted
> by: scf@
>
> How to upgrade:
> - Fetch the new ports:
> # fetch https://svn.bluelife.at/nightlies/virtualbox-port-r601.tar.gz
> # tar xf virtualbox-port-r601.tar.gz
>
> - Build the new ports:
> # cd virtualbox-ose-kmod && make
> # cd ../virtualbox-ose && make
>
> - If build was ok, deinstall old port
> # pkg_deinstall virtualbox-\*
>
> - Install new port:
> # cd ../virtualbox-ose-kmod && make install clean
> # cd ../virtualbox-ose && make install clean
>
> For FreeBSD guests within VirtualBox please try the new guest additions port:
> # fetch https://svn.bluelife.at/nightlies/virtualbox-port-r601.tar.gz
> # tar xf virtualbox-port-r601.tar.gz
> # cd virtualbox-ose-additions && make install clean
> # /usr/local/etc/rc.d/vboxguest.sh start
>
> Check that the VirtualBox kernel module is loaded via loader.conf
> and reboot the machine.
>
> Check the wiki page for known problems: http://wiki.freebsd.org/VirtualBox
>
> Please report any functionality which was working with previous versions of
> VirtualBox and no longer working with 3.1.2 or any build failure.
>
> Many thanks to the VirtualBox developers, all tester and patch submitter
> and the whole vbox@ team.
>
>
> Happy Testing!

when compiling it under X11 (ie from an xterm), the configuration fails
when checking for Mesa:
....
Checking for Mesa / GLU: X Error of failed request: BadRequest (invalid
request code or no such operation)
Major opcode of failed request: 137 (DRI2)
Minor opcode of failed request: 1 (DRI2Connect)
Serial number of failed request: 19
Current serial number in output stream: 19
===> Script "configure" failed unexpectedly.
....
the check is wrong since it's checking the compile 'environment'.
my workaround is:
( unsetenv DISPLAY ; make )

cheers
danny



_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Sergey Zaharchenko on
Hello Martin!

Mon, Dec 28, 2009 at 12:24:26AM +0100 you wrote:

> Howdy,
>
> Changelog from VirtualBox is available here:
> http://www.virtualbox.org/wiki/Changelog
>
> Changes in the port:
> - Added proper PulseAudio support for FreeBSD. Contributed by Noriyoshi Kawano

May I humbly ask whether audio recording is going to be supported?

Thanks!

--
DoubleF
No virus detected in this message. Ehrm, wait a minute...
/kernel: pid 56921 (antivirus), uid 32000: exited on signal 9
Oh yes, no virus:)
From: Philipp Wuensche on
Martin Wilke wrote:
>
> Please report any functionality which was working with previous versions of
> VirtualBox and no longer working with 3.1.2 or any build failure.

Seem like the fix from
http://www.freebsd.org/cgi/cvsweb.cgi/ports/emulators/virtualbox/files/patch-src-VBox-HostDrivers-VBoxNetAdp-freebsd-VBoxNetAdp-freebsd.c
was not incorporated?!

Appart from that, its working for me on 8.0-STABLE r201051.

greetings,
philipp

_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"