From: Gary Jennejohn on
On Mon, 28 Dec 2009 15:33:31 +0100 (CET)
"Bernhard Froehlich" <decke(a)bluelife.at> wrote:

> 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.
>

Ah ha! It wasn't obvious to me that this was how to do it, although it
makes sense now that I think about it.

The fact remains that the shell script checks in the wrong place for
vboxguest.ko.

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

Dec 28 15:10:09 ernst kernel: link_elf_obj: symbol _Z6strlenPKc undefined
Dec 28 15:10:09 ernst kernel: linker_load_file: Unsupported file type

These show up when I start VirtualBox.
Dec 28 15:25:53 ernst kernel: WARNING pid 2066 (VBoxSVC): ioctl sign-extension ioctl ffffffffc4a81502
Dec 28 15:26:30 ernst last message repeated 9 times
Dec 28 15:28:17 ernst last message repeated 14 times


---
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: John Baldwin on
On Monday 28 December 2009 9:25:28 am Gary Jennejohn wrote:
> 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.

Look in dmesg for the real kldload error message.

--
John Baldwin
_______________________________________________
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: Brandon Gooch on
On Mon, Dec 28, 2009 at 10:04 AM, John Baldwin <jhb(a)freebsd.org> wrote:
> On Monday 28 December 2009 9:25:28 am Gary Jennejohn wrote:
[SNIP]
>>
>> Does vboxguest.ko have silent dependencies on other vbox modules? I only
>> loaded vboxdrv.ko.
>
> Look in dmesg for the real kldload error message.
>

I'm seeing this as well:

kernel: link_elf_obj: symbol _Z6strlenPKc undefined

....which, I suppose, is the real kldload error message.
_______________________________________________
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: Philipp Wuensche on
Beat Gaetzi wrote:
> Philipp Wuensche wrote:
>> 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?!
>
> This fix is also included in 3.1.2:
> http://svn.bluelife.at/index.cgi/blueports/revision/?rev=580

Interesting, I have to load the modules in the correct order, otherwise
I get this error in the VBox.log:

00:00:00.470 IntNet#0: szNetwork={HostInterfaceNetworking-em0}
enmTrunkType=3 szTrunk={em0} fFlags=0x0 cbRecv=223232 cbSend=36864
00:00:00.470 VMSetError:
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-3.1.2_OSE/src/VBox/Devices/Network/DrvIntNet.cpp(1071)
int drvIntNetConstruct(PDMDRVINS*, CFGMNODE*, uint32_t)
00:00:00.470 VMSetError: Failed to open/create the internal network
'HostInterfaceNetworking-em0'
00:00:00.470 PDM: Failed to construct 'pcnet'/0!
VERR_SUPDRV_COMPONENT_NOT_FOUND (-3700) - The component factory was not
found.
00:00:01.033 VMSetError:
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-3.1.2_OSE/src/VBox/VMM/VM.cpp(323)
int VMR3Create(uint32_t, void (*)(VM*, void*, int, const char*, unsigned
int, const char*, const char*, __va_list_tag*), void*, int (*)(VM*,
void*), void*, VM**)
00:00:01.033 VMSetError: Unknown error creating VM
00:00:01.034 ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005)
aIID={6375231a-c17c-464b-92cb-ae9e128d71c3} aComponent={Console}
aText={Failed to open/create the internal network
'HostInterfaceNetworking-em0' (VERR_SUPDRV_COMPONENT_NOT_FOUND).
00:00:01.034 Unknown error creating VM
(VERR_SUPDRV_COMPONENT_NOT_FOUND)} aWarning=false, preserve=false
00:00:01.036 Power up failed (vrc=VERR_SUPDRV_COMPONENT_NOT_FOUND,
rc=NS_ERROR_FAILURE (0X80004005))

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"

From: Beat Gaetzi on
Philipp Wuensche wrote:
> 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?!

This fix is also included in 3.1.2:
http://svn.bluelife.at/index.cgi/blueports/revision/?rev=580

Beat
_______________________________________________
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"