From owner-freebsd-emulation@FreeBSD.ORG Wed Jun 17 16:13:14 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 5649C1065693 for ; Wed, 17 Jun 2009 16:13:14 +0000 (UTC) (envelope-from adamk@voicenet.com) Received: from QMTA10.emeryville.ca.mail.comcast.net (qmta10.emeryville.ca.mail.comcast.net [76.96.30.17]) by mx1.freebsd.org (Postfix) with ESMTP id 3DBE28FC24 for ; Wed, 17 Jun 2009 16:13:14 +0000 (UTC) (envelope-from adamk@voicenet.com) Received: from OMTA03.emeryville.ca.mail.comcast.net ([76.96.30.27]) by QMTA10.emeryville.ca.mail.comcast.net with comcast id 4zsQ1c00h0b6N64AA405u1; Wed, 17 Jun 2009 16:00:05 +0000 Received: from scroll.ashke.com ([67.103.204.242]) by OMTA03.emeryville.ca.mail.comcast.net with comcast id 53zv1c00V5EJinX8P3zyVC; Wed, 17 Jun 2009 16:00:03 +0000 Message-ID: <4A3912FA.3000206@voicenet.com> Date: Wed, 17 Jun 2009 11:59:54 -0400 From: Adam K Kirchhoff User-Agent: Thunderbird 2.0.0.21 (X11/20090515) MIME-Version: 1.0 CC: freebsd-emulation@freebsd.org References: <4A383783.3010800@voicenet.com> <20090617093329.488f8f2f@ernst.jennejohn.org> <4A390797.3000102@voicenet.com> In-Reply-To: <4A390797.3000102@voicenet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: kernel panic with VirtualBox on -CURRENT 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: Wed, 17 Jun 2009 16:13:15 -0000 Adam K Kirchhoff wrote: > Gary Jennejohn wrote: >> On Tue, 16 Jun 2009 20:23:31 -0400 >> Adam K Kirchhoff wrote: >> >> >>> I recently updated my workstation at home to -CURRENT, and then >>> noticed (thanks to some discussion on ##freebsd) that VirtualBox had >>> made it into the ports tree. I installed it via ports, but upon >>> trying to boot a VDI image created under Linux (where it works just >>> fine), I ran into a kernel panic. When starting the VM, VirtualBox >>> informs me of the key combination to grab/release the mouse and >>> keyboard. I click "OK" and then the entire machine locks up. >>> The VM is Windows XP. 256 megs of RAM, 1 processor, VT-x/AMD-V is >>> enabled, with Nesting Paging disabled. The only option I changed >>> was the memory. All the others were the defaults. >>> >>> I reproduced the panic quite easily by rebooting into single user >>> mode, fsck'ing the filesystems manually, booting into X, and then >>> starting up VirtualBox. Same thing happened when I launched the VM. >>> >>> >> [snip] >> >>> Reading symbols from /boot/modules/kqemu.ko...done. >>> Loaded symbols for /boot/modules/kqemu.ko >>> >> [snip] >> >> I don't know whether this will help, but do you really have kqemu.ko >> also installed? I'd try eliminating it before running VirtualBox. >> >> VirtualBox runs just fine for me, but I don't load kqemu.ko. >> >> Also, did you enable virtualization in the BIOS? I had to do that >> before AMD-V really functioned. It made quite a bit of difference >> in performance. >> >> > > Yes, kqemu was loaded, though not in use. I've made sure it is > unloaded and tried again (even rebooted, just in case the fact that it > had been loaded previously might be an issue). > > Unfortunately, I do not see an option in this computers' BIOS to > enable virtualization. I'm actually trying on a machine at work now, > rather than the one I tried at home yesterday, but the results are the > same. This computer actually has as an Intel Core 2 Quad CPU (unlike > yesterdays dualcore Xeon). Is there someway to check if the > processors on these machines support the virtualization extensions? > > I also am not able to disable the AMD-V option in VirtualBox. The > check box is selected but greyed out. So I decided to give the packages a shot. When I went to 'kldunload vboxdrv' before installing the package version, I received another kernel panic: panic: vm_page_dirty: page is invalid! cpuid = 1 KDB: enter: panic [thread pid 2138 tid 100282 ] Stopped at kdb_enter+0x3a: movl $0,kdb_why db> bt Tracing pid 2138 tid 100282 td 0xc92546c0 kdb_enter(c0c5acef,c0c5acef,c0c83b8b,eb6a8a6c,1,...) at kdb_enter+0x3a panic(c0c83b8b,eb6a8a94,c0b8aaed,c1b32c58,e94cb000,...) at panic+0x136 vm_page_dirty(c1b32c58,e94cb000,c0c91a17,9a0,e94cb000,...) at vm_page_dirty+0x42 pmap_remove_pte(eb6a8ad8,4,c0c91a17,9c0,c0f7cce0,...) at pmap_remove_pte+0xbd pmap_remove_page(c0f7cce0,0,c0c91a17,9e0,c0f7cce0,...) at pmap_remove_page+0x94 pmap_remove(c0f7cce0,e94cb000,e94cc000,a2c,eb6a8b28,...) at pmap_remove+0xb2 vm_map_delete(c1890000,e94cb000,e94cc000,c6c72e10,fffffffc,...) at vm_map_delete+0x18c vm_map_remove(c1890000,e94cb000,e94cc000,c72ce940,c6c72e10,...) at vm_map_remove+0x51 rtR0MemObjNativeFree(c6c72e10,c72dab20,0,eb6a8bac,c72d0e84,...) at rtR0MemObjNativeFree+0xae RTR0MemObjFree(c6c72e10,1,0,eb6a8bd4,c72c5187,...) at RTR0MemObjFree+0xe2 supdrvGipDestroy(c6bd9510,c6bddc80,c6bddc80,eb6a8bf4,c72bf0d6,...) at supdrvGipDestroy+0x4c supdrvDeleteDevExt(c72dab20,c6b8dae0,0,c6bddc80,c6bddc80,...) at supdrvDeleteDevExt+0x97 VBoxDrvFreeBSDModuleEvent(c6bddc80,1,0,109,0,...) at VBoxDrvFreeBSDModuleEvent+0xe6 module_unload(c6bddc80,c0c577d7,273,270,c0855a06,...) at module_unload+0x43 linker_file_unload(c6da4600,0,c0c577d7,437,c72b4000,...) at linker_file_unload+0x15e kern_kldunload(c92546c0,9,0,eb6a8d2c,c0b8ed93,...) at kern_kldunload+0xd5 kldunloadf(c92546c0,eb6a8cf8,8,c0c61eb3,c0d41230,...) at kldunloadf+0x2b syscall(eb6a8d38) at syscall+0x2a3 Xint0x80_syscall() at Xint0x80_syscall+0x20 --More-- --- syscall (444, FreeBSD ELF32, kldunloadf), eip = 0x33cd561b, esp = 0xbfbfe41c, ebp = 0xbfbfec68 --- db> cont Uptime: 36m53s Is anyone using VirtualBox on i386 -CURRENT from yesterday? Adam