Opened 15 years ago
Last modified 13 years ago
#7214 new defect
[PATCH] Add BeOS and Haiku to the (Other) guest OS list
Reported by: | François REVOL | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 3.2.6 |
Keywords: | beos, haiku | Cc: | |
Guest type: | other | Host type: | other |
Description (last modified by )
This patch adds BeOS and Haiku to the Other guest OS list, and selects the correct NIC. Both require the use of the Intel PRO/1000 MT Desktop NIC due to missing driver for the default one.
VBOXOSTYPE_Haiku is defined as a subtype for VBOXOSTYPE_BeOS though technically it is a reimplementation, so maybe 0xD0000 would fit better. A 64bit port of Haiku has been started but is not ready yet. 2GB is suggested for the disk, which should be enough for default installs. 256MB of RAM is enough for simple use.
Also added simple png files for the GUI, someone can probably do better.
This patch is under MIT license.
Attachments (3)
Change History (15)
by , 15 years ago
Attachment: | os_beos.png added |
---|
by , 15 years ago
Attachment: | os_haiku.png added |
---|
follow-up: 2 comment:1 by , 15 years ago
comment:2 by , 15 years ago
Oh, it seems it's a different flag than the IDE controller, which is already set to PIIX4. I guess the default should do then.
comment:5 by , 14 years ago
could this get checked in? This is a valid addition and would make sense in my virtual environment.
comment:6 by , 14 years ago
Added myself as CC.
NOTE: I was unable to run BeOS 5 in VirtualBox v4.0.0.
Does it work for you ?
Which audio controller works ? AC'97 ?
-Technologov
comment:7 by , 14 years ago
I know in qemu, BeOS Dano (5.1) will boot reliably if you emulate a P3 CPU... https://picasaweb.google.com/kallisti05/BeOSDano#
As VirtualBox was based on qemu long ago... this may still be possible.
Booting the old BeOS can be tricky, it doesn't handle modern hardware (even emulated) well.
BeOS 5.1 should support AC'97
Haiku will boot well under most emulated configurations. You can use the VBoxManager tool to convertdd the raw nightly Haiku image into a virtualbox disk image.
comment:8 by , 14 years ago
Actually I finally managed to make BeOS to boot. Unlike Haiku it doesn't like the filesystem being alone in the disk without a partition table.
An option is to prepend a partition table (the type should be 0xeb), but it's not easy to know how many sectors to prepend to end on a cylinder boundary.
Making use of the IMAGE.BE trick one can create a FAT partition in a file and copy it inside, something like (requires sfdisk and mtools):
#!/bin/sh img=$PWD/beosdos.img vdi=$PWD/beosdos.vdi dd if=/dev/zero bs=1M count=550 of=$img sfdisk -f -D -H 255 -S 63 -uM /mnt/tera/public/beosdos.img << EOF 0,,0c,- EOF cat > tmp.mtools << EOF drive i: file="$img" partition=1 EOF MTOOLSRC=tmp.mtools mformat -v "BeOS" i: MTOOLSRC=tmp.mtools mmd i:/BEOS MTOOLSRC=tmp.mtools mcopy image.be i:/BEOS/IMAGE.BE VBoxManage internalcommands converthd -srcformat RAW $img $vdi
Then booting from the floppy.img with beosdos.vdi attached to an IDE drive works. One must force a fail-safe video mode in the bootloader to avoid the grey screen (then one should be able to force the vesa config in the driver settings). Audio even seems to work.
comment:9 by , 14 years ago
Any updates here?
Also to the Haiku devs, isn't it better to focus on getting Haiku running on VirtualBox rather than BeOS? The network problem is a major turn off to new users.
comment:10 by , 14 years ago
Haiku is sponsoring a Google Summer of code student who is creating guest additions for the Haiku operating system. These guest additions are being added to the VirtualBox code base and can be compiled under Haiku.
As we are making progress getting Haiku native Virtual Box support, it would seem relevant to add Haiku as a supported OS (even if it is under "other operating systems"
You can view the students work here: https://github.com/scgtrp/vbox-haiku
comment:12 by , 13 years ago
Description: | modified (diff) |
---|
A little late but nonethless, the Haiku additions should now be part of the VirtualBox tree. The base PCI VMMDev driver along with mouse integration has been tested personally by me and known to work. Currently there is no binary packaging for the additions that allows for easy installation. This will be done as follow up work along with fixing bugs and general cleanup.
The patch for adding a guest OS type for Haiku is outdated as there is no longer as XSD for the guest additions. Feel free to submit an up-to-date patch for the Haiku OS guest type.
It seems a new field was added to Global::OSType which breaks this patch... I'm not sure which chipset is best yet. All my Haiku VMs seem to be set to PIIX4 though I don't remember if PIIX3 was causing any trouble, will have to test.