From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 22 23:02: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 93E69106568D for ; Tue, 22 Dec 2009 23:02:33 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-gx0-f218.google.com (mail-gx0-f218.google.com [209.85.217.218]) by mx1.freebsd.org (Postfix) with ESMTP id 575488FC19 for ; Tue, 22 Dec 2009 23:02:33 +0000 (UTC) Received: by gxk10 with SMTP id 10so6453002gxk.3 for ; Tue, 22 Dec 2009 15:02:32 -0800 (PST) Received: by 10.150.55.8 with SMTP id d8mr9170255yba.288.1261522952638; Tue, 22 Dec 2009 15:02:32 -0800 (PST) Received: from papi.localnet ([187.78.196.172]) by mx.google.com with ESMTPS id 6sm2577957ywc.9.2009.12.22.15.02.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 22 Dec 2009 15:02:31 -0800 (PST) From: Mario Lobo To: freebsd-emulation@freebsd.org Date: Tue, 22 Dec 2009 20:01:08 -0300 User-Agent: KMail/1.12.3 (FreeBSD/8.0-STABLE; KDE/4.3.3; amd64; ; ) References: <4B314586.1030301@fletchermoorland.co.uk> <4B314CBB.1030506@eskk.nu> In-Reply-To: <4B314CBB.1030506@eskk.nu> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200912222001.08532.lobo@bsd.com.br> 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:02:33 -0000 On Tuesday 22 December 2009 19:48:27 Leslie Jensen wrote: > On 2009-12-22 23:17, Paul Wootton wrote: > > I too get an error on starting a VM if I try to load the modules from > > /boot/loader.conf. For me, the loading of vboxnetflt does not seem to > > work correctly. I dont load vboxnetadp, so I cant comment on that. > > > > /boot/loader.conf > > zfs_load="YES" > > vboxdrv_load="YES" > > vboxnetflt_load="YES" > > > > > > If I try to start a VM that is using the "Bridged Ethernet" adapter, the > > error I get is > > > > "Failed to start the virtual machine Win Vista > > > > Failed to open/create the internal network 'HostInterfaceNetworking-re0' > > (VERR_SUPDRV_COMPONENT_NOT_FOUND). > > > > Failed to attach the network LUN > > (VERR_SUPDRV_COMPONENT_NOT_FOUND). > > > > Unknown eror creating VM (VERR_SUPDRV_COMPONENT_NOT_FOUND). > > > > Details > > Result Code: NS_ERROR_FAILURE (0x80004005) > > Component: Console > > Interface: IConsole {0a51994b-cbc6-4686-94eb-d4e4023280e2}" > > > > > > I know the module got loaded. > > [paul@demophon /usr/home/paul]$ kldstat > > Id Refs Address Size Name > > 1 25 0xffffffff80100000 e7c540 kernel > > 2 1 0xffffffff80f7d000 18a788 zfs.ko > > 3 2 0xffffffff81108000 3778 opensolaris.ko > > 4 2 0xffffffff8110d000 41e88 vboxdrv.ko > > 5 1 0xffffffff8114f000 6960 vboxnetflt.ko > > 6 1 0xffffffff81223000 38fc linprocfs.ko > > 7 1 0xffffffff81227000 1bcc4 linux.ko > > > > If I then do a kldunload vboxnetflt followed by kldload vboxnetflt, I > > can now start and stop my VMs to my heart's content. > > Im using 9 CURRENT and I only started using /boot/loader.conf for the > > vbox modules about a month back. The vboxnetflt module has never worked > > correctly for me this way > > > > Paul > > Thanks for starting the new tread :-) > > This is exactly the same problem I'm having. > > I'm on 8.0-RELEASE > > /Les > > _______________________________________________ > freebsd-emulation@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > To unsubscribe, send any mail to > "freebsd-emulation-unsubscribe@freebsd.org" > This is a known problem for a while but I think it's almost microscopic. Just place the following script in /usr/local/etc/rc.d/vboxkos ----------------------------------- #!/bin/sh echo ' VirtualBox' /sbin/kldload vboxnetflt /sbin/kldload vboxnetadp <- optional ------------------------------------ and take vboxnetflt_load="YES" out of loader.conf. Load only vboxdrv.ko there ! The modules will be loaded late enough and everything will work. -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winfoes FREE)