From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 22 21:18:09 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 82AF7106566B for ; Tue, 22 Dec 2009 21:18:09 +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 31B3D8FC18 for ; Tue, 22 Dec 2009 21:18:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx1.bjare.net (Postfix) with ESMTP id 3BC4F5E0F8; Tue, 22 Dec 2009 22:18:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mx1.bjare.net X-Spam-Flag: NO X-Spam-Score: -2.24 X-Spam-Level: X-Spam-Status: No, score=-2.24 tagged_above=-999 required=5 tests=[AWL=0.360, 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 GAw8Okg2ktDx; Tue, 22 Dec 2009 22:18:04 +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 6D0755E075; Tue, 22 Dec 2009 22:18:04 +0100 (CET) Message-ID: <4B31378D.2010801@eskk.nu> Date: Tue, 22 Dec 2009 22:18:05 +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: Doug Barton References: <4B2F60BA.7010002@bsdforen.de> <4B2FF8A0.8080009@eskk.nu> <4B312A6D.4040907@FreeBSD.org> In-Reply-To: <4B312A6D.4040907@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; 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 21:18:09 -0000 On 2009-12-22 21:22, Doug Barton wrote: > The appropriate way to do this is to add them to /boot/loader.conf, > like this: > > vboxdrv_load="yes" > vboxnetflt_load="yes" > vboxnetadp_load="yes" > > You could also write a new-style rc.d script to do this fairly easily, > see > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/rc-scripts.html > for more information. There are also existing ports that use rc.d to > load kernel modules, although none of the names come to mind off hand. > > > Doug > Thanks for your answer. I did test to load the modules as you suggest. They do load but virtualbox produces an error when starting a virtual machine. I found information in the forums suggesting that one could load the modules via a script i /etc/rc.d/. But with 8.0 that did not work. I've tried to load vboxdrv and vboxnetflt via loader.conf and then load vboxnetadp manually before starting virtualbox. That also produces the error when starting a VM. So the vboxnetflt and vboxnetadp must be loaded in that order before one starts virtualbox. I was ok with the suggested script so when that didn't work I got stuck. For now I load the modules manually with a script that also starts virtualbox. /Les