VirtualBox

Ticket #3947 (closed defect: fixed)

Opened 7 months ago

Last modified 2 months ago

NetBSD-5.0 doesn't work => Fixed in SVN/3.0.6

Reported by: Zplay Assigned to:
Priority: major Component: other
Version: VirtualBox 2.2.2 Keywords: netbsd 5.0
Cc: seriphyde@gmail.com Guest type: BSD
Host type: other

Description

Hello

I'm using VirtualBox very often, this is the first time I report a bug for a software, I hope to make a "good ticket".

I just downloaded the netbsd-5.0 iso file, I verified the md5 checksum and it's right. I set up a virtual machine in virtualbox with a new virtual hard drive, no problem.

When I launch the machine, it start well, I can choose Install, Install no ACPI, Install no ACPI and no SMP or drop to boot prompt.

I tried the 3 first choices (normal, no acpi, no acpi/smp) and the problem is still here. I also tried to enable, disable, IO APIC, ACPI in the virtual machine option, doesn't work too.

The message I get during the boot is: (hope to make no mistake because I typed the whole message)

attimer0: attached to pcppi0
uvm_fault(0xc0b26cc0, 0, 1) -> 0xe
fatal page fault in supervisor mode
trap type 6 code 0 eip c0100ca8 cs 8 eflags 246 cr2 0 ilevel 0
uvm_fault(0xc0b26cc0, 0, 1) -> 0xe
fatal page fault in supervisor mode
trap type 6 code 0 eip c0100ca8 cs 8 eflags 246 cr2 c0a77474 ilevel 0
kernel: supervisor trap page fault, code=0
Stopped in pid 0.1 (system) at netbsd:spllower+0x28:     lock addl        %eax,0(%eax)
db{0}>

db{0}> is a prompt for something, I don't know exactly what I can do with this prompt.

I'm using Vbox 2.2.2 on a windows XP pro sp2 host, the cpu have no virtualisation feature.

I tried with another computer (windows 7 beta, 2x xeon 5420 with virtualisation activated) but I have exactly the same message.

Attachments

netbsd-5.0-2009-05-04-15-35-15.log (43.7 kB) - added by Zplay on 2009-05-06 16:18:59.
Logfile of virtualbox
i386cd-5.0-booting-and-logging-via-host-pipe-on-vb-2.2.4.txt (4.4 kB) - added by przemoc on 2009-06-09 16:02:50.
Log (serial port as host pipe) of booting from i386cd-5.0.iso on VirtualBox 2.2.4
NetBSD-2009-06-09-15-49-07.log (32.8 kB) - added by przemoc on 2009-06-09 16:06:05.
Log (VirtualBox) of booting from i386cd-5.0.iso on VirtualBox 2.2.4

Change History

2009-05-06 16:18:59 changed by Zplay

  • attachment netbsd-5.0-2009-05-04-15-35-15.log added.

Logfile of virtualbox

2009-05-06 16:52:19 changed by Zplay

I would add that netbsd 5.0 boot, install and work fine with Microsoft Virtual PC 2007 (i've never used it before) on the same machine, I don't know if it can help. Maybe this prove that it's not a problem with netbsd or with the processor virtualisation feature.

(in reply to: ↑ description ) 2009-06-05 18:49:40 changed by pkoistin

Replying to Zplay:

db{0}> is a prompt for something, I don't know exactly what I can do with this prompt.

Try typing "help" first, then you can type for example "trace" there:

db{0}> trace
spllower(0,0,0,0,0,0,0,0,cbd39758,0) at netbsd:spllower+0x28
wdc_drvprobe(cbd39848,0,0,0,0,cbd44d28,c045a88c,cb713a40,cb713a40,0) at netbsd:wdc_drvprove+0x27
atabus_thread(cdb28230,0,c01002cd,0,c01002cd,0,0,0,0,0) at netbsd:atabus_thread+0x72
db{0}>

So my guess is that something fails bad with harddisk detection. How big drive did you configure for NetBSD? Is in dynamic or fixed?

2009-06-09 14:45:54 changed by frank

Please everyone who had the great idea to cut'n'paste logfiles into this defect: I removed these comments as they made the whole defect unreadable. Please ATTACH (there is an Attach button) the files to this defect.

2009-06-09 16:02:50 changed by przemoc

  • attachment i386cd-5.0-booting-and-logging-via-host-pipe-on-vb-2.2.4.txt added.

Log (serial port as host pipe) of booting from i386cd-5.0.iso on VirtualBox 2.2.4

2009-06-09 16:06:05 changed by przemoc

  • attachment NetBSD-2009-06-09-15-49-07.log added.

Log (VirtualBox) of booting from i386cd-5.0.iso on VirtualBox 2.2.4

2009-06-09 16:10:55 changed by przemoc

I confirm that booting from i386cd-5.0.iso fails in every of install choices regardless of VM settings (attached or not disk, ACPI enabled/disabled, IO APIC enabled/disabled, any IDE Controller Type). Sample run dumped in my two previous attachments.

2009-06-09 17:38:58 changed by Kenjiro

I am having the very same problem as the original reporter. VirtualBox 2.2.4 running on Bluewhite64 (linux x86_64). Trying to install NetBSD-5.0 (i386), giving 512MB of RAM and 5GB (dynamic) to the VM.

Hints?

2009-06-21 11:06:55 changed by haad

I think that problem is in spllower which is patched during kernel boot process. I think that during hardisk detection is called first time and therefore we can see crash there. I think that problematic part of netbsd code is this [1]. This code works on real hardware ven on Vmware Fusion but it has some problems on Virtualbox.

[1]http://nxr.netbsd.org/source/xref/sys/arch/x86/x86/patch.c

2009-07-08 02:00:10 changed by Kenjiro

Now we are on VirtualBox-3.0.0 and the bug remains.

Tried installing netbsd-5.0 using option 1 (regular install), 2 (no ACPI) and 3 (no ACPI and no SMP), all of them brought the same result as repported by the starting reporter.

Any improvements???

2009-07-09 02:45:46 changed by Kenjiro

Well, I tried using "fixed size" hard disk (I was using Dynamic before) and the error is quite the same. So, that might be excluded from the possible causes :(

(follow-up: ↓ 10 ) 2009-07-27 23:25:50 changed by gionn

I am using Virtualbox 3.0.2 on MacOsX and with VT-X enabled, netbsd installer hang before printing any sort of output. Without using VT-X (i386 netbsd), the kernel go to panic during hw detection.

(in reply to: ↑ 9 ) 2009-08-16 09:51:08 changed by john.doe

Replying to gionn:

I am using Virtualbox 3.0.2 on MacOsX and with VT-X enabled, netbsd installer hang before printing any sort of output. Without using VT-X (i386 netbsd), the kernel go to panic during hw detection.

Same here with 3.0.4.

(in reply to: ↑ description ) 2009-08-16 11:55:40 changed by john.doe

It seems to me that vb fails to patch `kernel_lock = 0xc0459cd0'

00:00:38.790 PATM: Failed to refresh dirty patch at c0459cd0. Disabling it.

2009-08-17 21:12:37 changed by Kenjiro

I am still having the same problem as before, now running VBox 3.0.4. Still no good news? :(

2009-08-18 15:03:26 changed by frank

  • summary changed from NetBSD-5.0 doesn't work to NetBSD-5.0 doesn't work => Fixed in SVN/3.0.6.

Fixed in SVN. The fix will be included in the next maintenance release.

2009-08-23 18:34:51 changed by nelchael

Frank: Could you provide SVN revision number were it is fixed? SVN as exported on http://www.virtualbox.org/svn/vbox/trunk is kind of hard to use as it hides user names (and presumably correct date of commit).

2009-08-23 18:58:18 changed by sandervl73

21947, but you can just take the latest snapshot of the tree.

2009-08-23 18:59:05 changed by sandervl73

That fix applies to VT-x only by the way and fixes the hang/crash when booting the NetBSD 5.0 live cd.

2009-08-23 19:00:01 changed by nelchael

Thank you, I'm interested in patching 3.0.4 with only that change until 3.0.6 is available.

2009-09-10 08:25:49 changed by frank

  • status changed from new to closed.
  • resolution set to fixed.

© 2009 Sun Microsystems, Inc.
ContactPrivacy policy