From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 22 09:52:45 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 611EB106568B for ; Tue, 22 Dec 2009 09:52:45 +0000 (UTC) (envelope-from leslie@eskk.nu) Received: from mx1.bjare.net (mx1.bjare.net [212.31.160.3]) by mx1.freebsd.org (Postfix) with ESMTP id 1BEA28FC1E for ; Tue, 22 Dec 2009 09:52:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx1.bjare.net (Postfix) with ESMTP id 33C065E4C7; Tue, 22 Dec 2009 10:52:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mx1.bjare.net X-Spam-Flag: NO X-Spam-Score: -2.237 X-Spam-Level: X-Spam-Status: No, score=-2.237 tagged_above=-999 required=5 tests=[AWL=0.363, BAYES_00=-2.599, SPF_PASS=-0.001] Received: from mx1.bjare.net ([127.0.0.1]) by localhost (mx1.bjare.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id m-Mki7MPtg3f; Tue, 22 Dec 2009 10:52:41 +0100 (CET) X-BN-MX1: ja X-BN-MailInfo: BjareNet Received: from bljbsd01.no-ip.org (c-195-216-040-164.static.bjare.net [195.216.40.164]) by mx1.bjare.net (Postfix) with ESMTP id C4F8D5E045; Tue, 22 Dec 2009 10:52:40 +0100 (CET) Message-ID: <4B3096EA.2070400@eskk.nu> Date: Tue, 22 Dec 2009 10:52:42 +0100 From: Leslie Jensen User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; sv-SE; rv:1.9.1.5) Gecko/20091221 Thunderbird/3.0 MIME-Version: 1.0 To: Adam Vande More References: <4B2F60BA.7010002@bsdforen.de> <4B2FF8A0.8080009@eskk.nu> <6201873e0912211537q3742aab4x9391de392d15bba9@mail.gmail.com> In-Reply-To: <6201873e0912211537q3742aab4x9391de392d15bba9@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: Loading kernel modules for virtualbox via script X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2009 09:52:45 -0000 > > > I have this in my crontab > > @reboot root /sbin/kldload > /boot/modules/vboxnetflt.ko > > > > -- > Adam Vande More Thanks for the answer! The problem is that I understood that vboxnetflt.ko should be loaded before vboxnetadp.ko I load vboxnetflt.ko in /boot/loader.conf and load vboxnetadp.ko manually after I've logged in. I tried to load vboxnetadp.ko via crontab but Virtualbox came up with the error. If I unload both modules and load them again manually, vboxnetflt.ko first. Then it works! I can manage this, but I was looking for a way to do it automagically :-) I've seen that if vboxnetadp.ko is loaded first it loads vboxnetflt.ko as well. So what if the "dependency" was reversed? Then only vboxnetflt.ko had to be loaded and it could load vboxnetadp.ko. /Leslie