From owner-freebsd-emulation@FreeBSD.ORG Sun Mar 7 08:51:26 2010 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 374B2106566C for ; Sun, 7 Mar 2010 08:51:26 +0000 (UTC) (envelope-from enrico@majaglug.net) Received: from smtp-out30.alice.it (smtp-out30.alice.it [85.33.2.30]) by mx1.freebsd.org (Postfix) with ESMTP id BAA528FC19 for ; Sun, 7 Mar 2010 08:51:25 +0000 (UTC) Received: from FBCMMO02.fbc.local ([192.168.68.196]) by smtp-out30.alice.it with Microsoft SMTPSVC(6.0.3790.3959); Sun, 7 Mar 2010 09:51:23 +0100 Received: from FBCMCL01B06.fbc.local ([192.168.69.87]) by FBCMMO02.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sun, 7 Mar 2010 09:51:22 +0100 Received: from hal.homeunix.net ([87.21.220.111]) by FBCMCL01B06.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sun, 7 Mar 2010 09:51:21 +0100 From: "Enrico M." To: freebsd-emulation@freebsd.org Date: Sun, 7 Mar 2010 09:51:20 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.5; i386; ; ) References: <86zl2l2w9n.fsf@kopusha.onet> <201003062039.24881.e.mancini@tiscali.it> <86vdd92lyj.fsf@kopusha.onet> In-Reply-To: <86vdd92lyj.fsf@kopusha.onet> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201003070951.20385.enrico@majaglug.net> X-OriginalArrivalTime: 07 Mar 2010 08:51:21.0866 (UTC) FILETIME=[5C5A6EA0:01CABDD3] Subject: Re: virtualbox status on 8.0-STABLE i386 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: Sun, 07 Mar 2010 08:51:26 -0000 On Saturday 06 March 2010 22:12:52 Mikolaj Golub wrote: > On Sat, 6 Mar 2010 20:39:24 +0100 Enrico Mancini wrote: > > On Saturday 06 March 2010 18:30:12 Mikolaj Golub wrote: > >> So I removed KPTmap[i386_btop(va)] with *vtopte(va) and have working > >> virtualbox again, but I suppose this is rather the problem with > >> virualbox and not with the kernel code. > > > > So, you removed "pa = KPTmap[i386_btop(va)];" with "pa = *vtopte(va);", > > didn't you? > > Yes. > > > Did you rebuild the userland, the kernel or both? > > kernel and emulators/virtualbox-ose-kmod > Good! Now virtualbox is working, but not perfectly. In booting, the system sends this message: "vboxNetFltInitGlobalsAndIdc failed -2 module_register_init: MOD_LOAD (ng_vboxnetflt, 0xc0d42160, 0xc0dfc7a0) error 22" If I try to run a vm with a briged network, the vm doesn't start and virtualbox gives this message: "Failed to start the virtual machine FreeBSD8. Failed to open/create the internal network 'HostInterfaceNetworking-nfe0' (VERR_SUPDRV_COMPONENT_NOT_FOUND). Failed to attach the network LUN (VERR_SUPDRV_COMPONENT_NOT_FOUND). Unknown error creating VM (VERR_SUPDRV_COMPONENT_NOT_FOUND). Result Code: NS_ERROR_FAILURE (0x80004005) Component: Console Interface: IConsole {6375231a-c17c-464b-92cb-ae9e128d71c3}" The problem disappears if I unload and reload vboxnetflt.ko and vboxnetadp.ko This is my /boot/loader.conf: zfs_load="YES" vm.kmem_size_max="512M" vm.kmem_size="512M" vfs.zfs.arc_max="64M" vfs.zfs.vdev.cache.size="8M" vfs.zfs.zil_disable="1" vfs.zfs.prefetch_disable="1" vfs.root.mountfrom="zfs:hal/ROOT" atapicam_load="YES" hw.ata.atapi_dma="1" cd9660_iconv_load="YES" snd_ich_load="YES" agp_load="YES" vboxdrv_load="YES" vboxnetflt_load="YES" netgraph_load="YES" ng_ether_load="YES" vboxnetadp_load="YES" Cheers, Enrico M.