Virtualizing Haiku in VirtualBox

Virtual instances of operating systems are perfect for all kinds of testing purposes that need to be done in a safe and isolated environment. Installing Haiku in a virtual machine is a solution for people who do not want to install it on their physical computers, but wish to become familiar with it.
This How-To guide will describe the process of running Haiku on virtual machine (VM) using VirtualBox 3.2 There are two ways it can be done– one is installing and running Haiku from CD-ROM image, which is similar to a physical instance. Ror convenience and time-saving purposes, the user may also use the already prepared VM hard disk image. The decision is left up to the user, although many people prefer VM image as it is easier to manage.
For this tutorial we will be using an ISO image file - it can be obtained here. The VirtualBox virtualization software and installation manual can be downloaded from here.

Go to section:

Installing and running Haiku from an ISO image.

The following guide will describe installation of Haiku with an ISO image on VirtualBox.
Step 1. Creating a virtual machine.
After installing VirtualBox and downloading an ISO image, we can begin the installation process. Installing operating systems in VirtualBox consists of two parts - create a virtual machine and then configure it to run the desired guest system installation.
We begin, by clicking the icon New (or pressing Ctrl + N):
virtualBox's main window
We need to specify what kind of guest operating system we are going to install. This is helpful in the pre-configuration of virtual machines – it applies default settings for supported OS’s. For Haiku, we are going to choose "Other" for operating system type and "Other/Unknown" for version:
VM Name
The next step is to define how much of the host’s physical memory we want to allocate for our virtual machine. This decision should be based on the amount of RAM the host has, but it is recommended to spend a minimum of 256MB of RAM to make it run smoothly. More memory can increase the performance of the VM, but too much can slow down the host, so there needs to be a balance between the VM and host machine resources:
After we have done that, we need to create a hard disk image, which is going to be stored on the physical drive, at the specified location. We choose Create a virtual harddrive now (if it is not selected already) and click Create:
virtual hard disk
Choose VDI and click Next.
Location and size
Here we can define how big the virtual hard disk should be. In most cases it is sufficient to use the default option, which is Dynamically allocated. This will allow the image file to grow as more content is saved in it, with no lack in functionality:
Hard disk storage type
The next slide will ask us for the location of the hard disk image file and the maximum size of the dynamically expanding file. Input the values and click Create:
Location and size
Step 2. Configuring the virtual machine.
Now we need to configure our new virtual machine: First, click on the Settings icon that appeared for our virtual machine.
Settings on main menu
The settings window allows the user to configure the hardware aspects of the virtual machine that the guest OS will be using. First of all, we need to attach our ISO image with the Haiku installation to the virtual machine in the form of emulated CD-ROM drive. To do that, we choose Storage from the left panel, and then click on Empty in the Storage Tree. Then we click on the CD icon next to the CD/DVD Device drop-down list:
CD/DVD Device
Now we click on Choose a virtual CD/DVD disk file.... In the new window we point to the location where we stored our Haiku ISO image and then click Open to confirm. Here is what we will see after that:
Media manager
After you are done with configuring, click OK to go back to the main window.
Step 3. Installing Haiku
Hopefully, at this point everything is properly configured and we can run the Haiku installation. To do so, click the Start Icon (or Machine -> Start) to run the virtual machine. After a few seconds Haiku's GUI should appear.
The installation itself is quite simple and does not differ really from a physical one (follow the guides on this page if you are not familiar with installing Haiku).
DriveSetup should detect two devices, one is our CD-ROM (ISO) file and another is the “harddrive” we created earlier. All we need to do is select that drive, go to Partitions -> Format, click on Be File System and continue the initialization. Then you use Installer from the Deskbar's appliction menu to install from the CD image to the big virtual harddrive.
Haiku's DriveSetup
And that’s it! Power off and go back to the "Storage" Settings. To prevent booting the ISO image at every bootup, select the ISO image, click on the CD icon to the right and choose Remove Attachment:
Haiku's DriveSetup

Additional steps

Additional Step 1. Configuring the virtual machine.
There are a few settings that could be changed to improve performance of Haiku. Remember that you need to divide resources responsibly, depending on your host s