24 January 2018 • 4 mins read
So, basically I started contributing to Open Source but this time, I selected HaikuOS as the organization and started doing my work. I started with two bugs in HaikuArchives/Weather App. Before doing some work, I need to build it right! So, I installed Haiku in a virtual machine (VirtualBox). In this blog post, I will showing how to do that (step-wise) and discuss the errors I have faced while installing and how I fixed them.
The Haiku OS is available in a stable version (R1/Alpha 4.1) and nightly images. The nightlies are always updated and should be used for development of new applications. So, it is advisable to install the nightly image haiku-nightly-anyboot. You can get Virtual Box from here. Download the VirtualBox for your suitable platform and install it.
NOTE : You can try the below commmand using
$ sudo -s, as it requires permission.
$ deb http://download.virtualbox.org/virtualbox/debian xenial contrib $ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add - $ wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add - $ sudo apt-get update $ sudo apt-get install virtualbox-5.2 $ virtualbox
So, currently I experimented all these stuff in my machine which is a dual-boot Ubuntu 16.04 (main) and Windows 10.
Once you start open your virtual box, follow the below steps
Create a New virtual machine and 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. Click on Next
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. Click on Next
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
Choose VDI and Next
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. Click on Next
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
Now the virtual box window opens again (similar to the image below). The next step is to configure our virtual machine.For that go to Settings > Storage >
Now you can see that the Storage Devices contains Empty disc loaded. Click on the 💿 icon present near the top right of the window. Choose the iso file of the Haiku Os which you have downloaded earlier and click on Open
Now you can see window like this (the iso file is loaded into the virtual machine). Click on Ok
Now you have installed Haiku in your Virtual machine. Now, you are ready to use a great OS. All you need is to select the OS which you want to load and clink on Start (green color arrow)
The Haiku OS then loads in the VirtualBox and looks somewhat like the below image and that’s it. Now you can start using Haiku.
Now coming to the errors, I faced an error which continously bugged me for around two days.
The error is Kernel driver not installed (rc=-1908). I resolved this error by turning off the secure boot and running this code in the terminal.
$ sudo modprobe vboxdrv
That’s it for now. I will return soon with another blog post.