From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 22 23:47:33 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 31397106566B for ; Tue, 22 Dec 2009 23:47:33 +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 DFE4D8FC08 for ; Tue, 22 Dec 2009 23:47:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx1.bjare.net (Postfix) with ESMTP id 3AC4B5E075; Wed, 23 Dec 2009 00:47:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mx1.bjare.net X-Spam-Flag: NO X-Spam-Score: -2.242 X-Spam-Level: X-Spam-Status: No, score=-2.242 tagged_above=-999 required=5 tests=[AWL=0.358, 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 R-zPVlnumdFl; Wed, 23 Dec 2009 00:47:29 +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 402C85E0BA; Wed, 23 Dec 2009 00:47:29 +0100 (CET) Message-ID: <4B315A92.6020207@eskk.nu> Date: Wed, 23 Dec 2009 00:47:30 +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: Mario Lobo References: <4B314586.1030301@fletchermoorland.co.uk> <200912222001.08532.lobo@bsd.com.br> <4B315448.909@eskk.nu> <200912222025.19597.lobo@bsd.com.br> In-Reply-To: <200912222025.19597.lobo@bsd.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-emulation@freebsd.org Subject: Re: VirtualBox error if kernel module loader in /boot/loader.conf (WAS 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 23:47:33 -0000 > > Sorry for my rush on the previous post. Here is a better script: > ---------------------------------------------------------- > #!/bin/sh > # > # $FreeBSD: src/etc/rc.d/vbox,v 1.0 2009/12/22 20:20:06 mlobo Exp $ > # > > # PROVIDE: vbox > # REQUIRE: LOGIN > # KEYWORD: nojail > > . /etc/rc.subr > > name="vbox" > start_cmd="${name}_start" > stop_cmd=":" > > vboxm_start() > { > /sbin/kldload vboxnetflt > /sbin/kldload vboxnetadp > } > > vbox_start() > { > if checkyesno vbox_enable; then > echo ' VirtualBox modules' > vboxm_start > fi > } > > load_rc_config $name > run_rc_command "$1" > > ------------------------------------------------------- > > You have to place vbox_enable="YES" on /etc/rc.conf Thank you Mario. This works fine, module loaded and VirtualBox VM starts with no error :-) /Les