VirtualBox

Ticket #639 (new defect)

Opened 2 years ago

Last modified 3 weeks ago

OpenBSD guests... still not quite usable (VT-x/AMD-V works)

Reported by: fdgonthier Assigned to:
Priority: major Component: VMM
Version: VirtualBox 2.2.2 Keywords: openbsd segfault
Cc: Guest type: BSD
Host type: other

Description

I'm having annoying problems with an OpenBSD 4.1 guest on Ubuntu Feisty AMD64 host. The install went fine, unlike with previous version, but when using the installed quest, I'm having regular segmentation fault while using various programs inside that OS.

On a regular computer, I would immediately suspect an hardware problem.

The crashes are occasional and random, and I can't reproduce them with regularity. The only way I can get a reliable crash is by extracting OpenBSD sources from CVS.

I will attach the last few lines of a ktrace dump, done by calling cvs.

I'm not BSD expert. I've installed this guest to learn about OpenBSD, but I believe those crash make VBox unfit for that OS as a guest, and that is why I honnestly believe this is a major bug.

Attachments

cvs.trace (1.6 kB) - added by fdgonthier on 2007-09-06 02:43:51.
VirtualBox_vs_OpenBSD.png (28.2 kB) - added by bluszcz on 2007-09-11 15:11:09.
OpenBSD 4.1 problem
VirtualBox-OpenBSD-segfault-2007-11-16-13-12-50.log (32.3 kB) - added by Fenix*NBK* on 2007-11-16 12:19:04.
OpenBSD 4.2 segfault log, by Technologov.
VirtualBox-OpenBSD-segfault.PNG (30.1 kB) - added by Fenix*NBK* on 2007-11-16 12:20:00.
OpenBSD 4.2 segfault screenshot. by Technologov.

Change History

2007-09-06 02:43:51 changed by fdgonthier

  • attachment cvs.trace added.

2007-09-11 15:10:36 changed by bluszcz

I cannot even install OpenBDS - during installation i have many segfaults and disk is full issues. :(

2007-09-11 15:11:09 changed by bluszcz

  • attachment VirtualBox_vs_OpenBSD.png added.

OpenBSD 4.1 problem

2007-11-16 12:18:03 changed by Fenix*NBK*

Well, I can definitely say that I experience same problems. Except in my case, the segfault happened *during* the install.

Host: Core 2 Quad Q6600, 4GB RAM, Win XP SP2, VirtualBox 1.5.2.

Guest: OpenBSD 4.2

Settings: 128MB of RAM, 8 GB HDD, ACPI=on, IO APIC=off, VT=off.

-Technologov. 16.11.2007.

2007-11-16 12:19:04 changed by Fenix*NBK*

  • attachment VirtualBox-OpenBSD-segfault-2007-11-16-13-12-50.log added.

OpenBSD 4.2 segfault log, by Technologov.

2007-11-16 12:20:00 changed by Fenix*NBK*

  • attachment VirtualBox-OpenBSD-segfault.PNG added.

OpenBSD 4.2 segfault screenshot. by Technologov.

2007-11-16 12:27:28 changed by Fenix*NBK*

Please increase bug priority to critical.

2007-12-29 14:01:43 changed by jensp

I'd also like to see this bug fixed :)

2008-01-29 15:11:05 changed by Wijnand

I really need this to be fixed urgently since we are planning a large scale setup with the software provided within the Qlayer virtualisation system which uses Virtualbox. It is not just a 4.1 issue, it happens with 4.2 and the latest -CURRENT versions too. Segfaults like this sound like bad or misbehaving hardware so something is fishy with the virtualisation provided by Virtualbox.

2008-02-05 14:02:05 changed by skibrianski

Just want to add a "me too" - OpenBSD is broken for me, and it's a major drag.

2008-02-10 13:49:16 changed by skibrianski

Just a note - enabling VT-x fixes this problem for me. If your CPU supports it, I highly recommend it. From the main screen, select your VM, click on General -> Advanced -> Extended features -> Enable VT-x/AMD-V (make sure it's an X, not gray or with horizontal stripes, which inherits from the global config). More on VT-x in virtualbox: http://www.virtualbox.org/wiki/VirtualBox_architecture

Good luck!

2008-02-11 10:25:11 changed by Wijnand

It does seem to work a lot better with VT-x enabled, I was able to do a clean install without problems now and there were not segfaults during startup of the installed system.

2008-02-20 17:12:59 changed by Siddi

This odd behavior seems sticky to VirtualBox a long time now.

My solve with non VT-x capable Machines to that is to disable raw0, i.e. create your OS vdi, get the ID of the VM with the command line 'VBoxManage list vms' and then start the VM from the command line instead from the GUI while disable raw0:

VBoxSDL -norawr0 -vm 6e96dbfa-45a8-42ec-9dab-6638031fd1da

You are still able to adjust VM settings like network or attached CDROM via GUI prior starting so you could mount a CDROM or ISO without bothering with VBoxManage. A GUI option to disable raw0 would be perfect solution to this issue for most users.

2008-02-20 17:27:01 changed by frank

1.5.6 was only a maintenance release. Expect more help from the next major release 1.6.

2008-03-08 11:49:36 changed by Fenix*NBK*

update - there is some interesting info: http://forums.virtualbox.org/viewtopic.php?p=17930

-Technologov

(in reply to: ↑ description ) 2008-03-20 02:24:16 changed by sv75

Same here: i386, VB from fresh SVN, works fine with FreeBSD, NexentaCore? and Linux, but OpenBSD 4.2 prints 'Segmentation faults' way too often. Getting kernel sources from cvs and building it comes to one segfault every 30sec.

2008-05-09 17:16:24 changed by kgardas

Hello,

I'm using VBox on Solaris (SXDE 1/08) happily (I started with VBox 1.5.x beta1), but this issue also hit me. I'd like to use OpenBSD guest but tried 4.0, 4.1, 4.2 and 4.3 without success. Various segfaults happen all over the time even if I switch VT-x support on. I've also tested VBox 1.6 release with OpenBSD 4.3 i386 release and the behavior is still the same.

What surprises me more is even that Qemu runs well with OpenBSD 4.3, although painfully slow thanks to missing kqemu support on Solaris host.

Please consider fixing this issue,

Thanks!

Karel

2008-07-09 23:01:49 changed by frank

  • guest changed from other to BSD.

2008-09-29 09:10:02 changed by frank

  • owner changed.
  • component changed from other to VMM.

2009-04-10 09:43:58 changed by alexhq

Still can't use OpenBSD guests with VBox 2.2

2009-05-04 22:02:39 changed by fdgonthier

I can't reproduce this bug with OpenBSD 4.5 and VirtualBox 2.2.

I'm currently extracting OpenBSD sources from CVS. It's been running steadily for over 15 minutes without crashing.

2009-05-13 16:05:09 changed by sandervl73

Comment from alexhq with a certain four letter word and other complaints removed. If you are unable to remain civilized, then please don't comment at all.

2009-05-13 16:12:52 changed by fdgonthier

Quoting a part of the message from alexhq, unfortunately removed.

A you in parallel universe? I dunno how it runs on VT-x/AMD-V, but on
plain old P4 2.6 with Debian host OS installation fails with "disk full"
and also there are random segfaults during install. It works somehow, I
can boot it, but random segfaults are still there.

I admit I retried it but not on the computer I used when I reported this was not working.

I'll try to find the time to reproduce it with different configurations.

(follow-up: ↓ 23 ) 2009-05-13 16:22:00 changed by Wijnand

I can confirm this is not a issue anymore when VT-x/AMD-V is enabled. My Macbook runs OpenBSD -CURRENT just fine.

2009-05-13 16:24:47 changed by fdgonthier

I remembered I still had around the virtual HD I used to test OpenBSD, so I tried to disable VT-x/AMD-V.

The segmentation faults are back in force: cvs up in /usr/src crashes after a few seconds.

I would also like to add that the filesystem checking at the boot reportedly "fixed" many errors.

Maybe alexhq was rude, but he was right. This bug is important. A virtualization software should not be optimized for Windows or Linux but, by definition, should be able to support anything.

2009-05-13 16:40:55 changed by sandervl73

  • version changed from VirtualBox 1.5.0 to VirtualBox 2.2.2.
  • summary changed from OpenBSD guests... still not quite usable to OpenBSD guests... still not quite usable (VT-x/AMD-V works).

(in reply to: ↑ 20 ) 2009-05-13 17:42:44 changed by alexhq

Replying to Wijnand:

I can confirm this is not a issue anymore when VT-x/AMD-V is enabled. My Macbook runs OpenBSD -CURRENT just fine.

It's cool, but not all legacy CPUs support VT-x/AMD-V. Also, yes, I was rude. Emotions, ain't we all people?!

2009-06-08 15:53:57 changed by adulau

User-land software in OpenBSD (4.5 release) is still segfaulting while using Virtual Box 2.2.4 r47978.

Even if VT-X is enabled... Where is the source of the problem?

2009-06-08 16:31:20 changed by frank

adulau, are you sure that VT-x is really enabled? Please attach a VBox.log file for such a VM session.

2009-06-30 20:10:20 changed by fdgonthier

The same OpenBSD VM fails spectacularily with VirtualBox 3.0, with VT-x/AMD-V enabled or not.

http://www.lostwebsite.net/links/vbox3_openbsd.png

Not sure if its because my VM is broken or not so I would be happy if some other commenters would confirm.

2009-07-11 18:20:34 changed by gpatrick

Have OpenBSD 4.5 running in VirtualBox 3.0.2 in a non-global zone. It is running, but on startup and shutdown OpenBSD gets many segmentation faults.

2009-08-06 18:56:17 changed by gpatrick

OpenBSD 4.5 on VirtualBox 3.0.4 on an OpenSolaris? 0906 host has installed and is running successfully. No disk full or segmentation faults occurred during installation or upon booting.

Using an Acer Aspire 5515 laptop. Used VirtualBox defaults (e.g., Enable VT-x/AMD-v).

2009-10-24 17:18:51 changed by bviktor

it seems that generic.mp became default in 4.6 amd64. i had to do an

echo 'set image bsd.sp' > /etc/boot.conf

coz it crashed randomly with the MP kernel.

2009-10-25 17:11:14 changed by fdgonthier

Interesting bviktor. Was it with or without the VT-x/AMD-V option set?

2009-10-30 01:40:45 changed by bviktor

AMD-V, 5600+, and i give 2 CPUs to guests.

anyway, it's not the change in defaults... i first compiled the i386 (GENERIC) kernel and then installed it. that caused openbsd to use the SP kernel after reboot. the difference between i386 and amd64 is that i386 compiled the kernel before it ended up in a kernel trap... amd64 started to crash during kernel compilation, but it worked with the previous release. but i may have been just lucky earlier, donno...

what i know is that now i have to use the sp kernel explicitly (on amd64), and then the problems go away...

© 2009 Sun Microsystems, Inc.
ContactPrivacy policy