Haiku installation: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
(Images.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
h1. Installing Haiku OS in a virtual machine


The Haiku OS is available in a stable version (R1/Alpha 4.1) and nightly images.<br />Since R1/Alpha 4.1 was released in November 2012, it is kind of outdated and<br />shouldn't be used for development of new applications anymore. The nightly images<br />are quite stable so far and can be downloaded from http://download.haiku-os.org/nightly-images/x86_gcc2_hybrid/


To compile/test Qt5 on Haiku, we recommend to use the latest VMDK image inside VirtualBox<br />or VMware, but you can also do a native installation on bare metal with the provided ISO images.
= Installing Haiku OS in a virtual machine =
The Haiku OS is available in a stable version (R1/Alpha 4.1) and nightly images.
Since R1/Alpha 4.1 was released in November 2012, it is kind of outdated and
shouldn't be used for development of new applications anymore. The nightly images
are quite stable so far and can be downloaded from http://download.haiku-os.org/nightly-images/x86_gcc2_hybrid/


Once you have downloaded the ZIP archive of the VMDK (~270MB), unzip it and you'll get a haiku-nightly.vmdk<br />disc image. The following steps show how to setup VirtualBox to get a running Haiku system:
To compile/test Qt5 on Haiku, we recommend to use the latest VMDK image inside VirtualBox
or VMware, but you can also do a native installation on bare metal with the provided ISO images.


1) Create a new virtual machine and use Other/Unknown as operating system type and version<br />[[Image:http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox01.png|Step 1]]
Once you have downloaded the ZIP archive of the VMDK (~270MB), unzip it and you'll get a haiku-nightly.vmdk
disc image. The following steps show how to setup VirtualBox to get a running Haiku system:


2) Select an appropriated amount of RAM, 2GB should be sufficient<br />[[Image:http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox02.png|Step 2]]
1) Create a new virtual machine and use Other/Unknown as operating system type and version


3) Choose the 'Use an existing virtual hard drive file' entry and select the downloaded haiku-nightly.vmdk file.<br />A click on 'Create' will finalize the creation of the virtual machine.<br />[[Image:http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox03.png|Step 3]]
http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox01.png


4) Since the haiku-nightly.vmdk contains just the system partition with little additional disc space left,<br />we need an additional partition (virtual hard disc) where we can keep the Qt git repository and build directory.<br />To add a new hard disc, open the 'Setting' dialog of the newly created virtual machine and click on<br />the 'Add Hard Disk' button of the IDE controller on the 'Storage' tab.<br />[[Image:http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox04.png|Step 4]]
2) Select an appropriated amount of RAM, 2GB should be sufficient


5) Select VDI as hard drive type (or whatever else you prefer)<br />[[Image:http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox05.png|Step 5]]
http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox02.png


6) For the VDI hard drive it is recommended to use 'Fixed size' mode, to speed up disc access during compilation<br />[[Image:http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox06.png|Step 6]]
3) Choose the 'Use an existing virtual hard drive file' entry and select the downloaded haiku-nightly.vmdk file.
A click on 'Create' will finalize the creation of the virtual machine.


7) In the next step select a meaningful name for that disc and select a proper size (10GB are sufficient for building qtbase)<br />After a click on 'Create', the virtual hard disc is created and the virtual machine ready to use.<br />[[Image:http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox07.png|Step 7]]
http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox03.png


8) Now start the virtual machine and go through the setup wizard that is executed the first time you<br />run the new Haiku OS installation. When that is done and the desktop is ready, start the 'DriveSetup' tool<br />from the Tracker menu to format the additional virtual hard disc with a Be file system.<br />[[Image:http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox08.png|Step 8]]
4) Since the haiku-nightly.vmdk contains just the system partition with little additional disc space left,
we need an additional partition (virtual hard disc) where we can keep the Qt git repository and build directory.
To add a new hard disc, open the 'Setting' dialog of the newly created virtual machine and click on
the 'Add Hard Disk' button of the IDE controller on the 'Storage' tab.


9) Select the empty virtual disc in the table and choose the 'Partition <s>&gt; Format</s>&gt; Be File System…'<br />entry from the menu.<br />[[Image:http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox09.png|Step 9]]
http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox04.png


10) Give the virtual disc a meaningful name and click 'Initialize' to start the formatting.<br />[[Image:http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox10.png|Step 10]]
5) Select VDI as hard drive type (or whatever else you prefer)


11) Once the formatting has finished ('File system' columns shows 'Be File System'), right click on<br />the disc entry and select 'Mount' to mount the disc under '/'<br />[[Image:http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox11.png|Step 11]]
http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox05.png
 
6) For the VDI hard drive it is recommended to use 'Fixed size' mode, to speed up disc access during compilation
 
http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox06.png
 
7) In the next step select a meaningful name for that disc and select a proper size (10GB are sufficient for building qtbase)
After a click on 'Create', the virtual hard disc is created and the virtual machine ready to use.
 
http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox07.png
 
8) Now start the virtual machine and go through the setup wizard that is executed the first time you
run the new Haiku OS installation. When that is done and the desktop is ready, start the 'DriveSetup' tool
from the Tracker menu to format the additional virtual hard disc with a Be file system.
 
http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox08.png
 
9) Select the empty virtual disc in the table and choose the 'Partition -> Format-> Be File System…'
entry from the menu.
 
http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox09.png
 
10) Give the virtual disc a meaningful name and click 'Initialize' to start the formatting.
 
http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox10.png
 
 
11) Once the formatting has finished ('File system' columns shows 'Be File System'), right click on
the disc entry and select 'Mount' to mount the disc under '/'
 
http://www.kdab.com/~tokoe/persistent/qthaiku/virtualbox11.png

Latest revision as of 12:03, 27 March 2015


Installing Haiku OS in a virtual machine

The Haiku OS is available in a stable version (R1/Alpha 4.1) and nightly images. Since R1/Alpha 4.1 was released in November 2012, it is kind of outdated and shouldn't be used for development of new applications anymore. The nightly images are quite stable so far and can be downloaded from http://download.haiku-os.org/nightly-images/x86_gcc2_hybrid/

To compile/test Qt5 on Haiku, we recommend to use the latest VMDK image inside VirtualBox or VMware, but you can also do a native installation on bare metal with the provided ISO images.

Once you have downloaded the ZIP archive of the VMDK (~270MB), unzip it and you'll get a haiku-nightly.vmdk disc image. The following steps show how to setup VirtualBox to get a running Haiku system:

1) Create a new virtual machine and use Other/Unknown as operating system type and version

virtualbox01.png

2) Select an appropriated amount of RAM, 2GB should be sufficient

virtualbox02.png

3) Choose the 'Use an existing virtual hard drive file' entry and select the downloaded haiku-nightly.vmdk file. A click on 'Create' will finalize the creation of the virtual machine.

virtualbox03.png

4) Since the haiku-nightly.vmdk contains just the system partition with little additional disc space left, we need an additional partition (virtual hard disc) where we can keep the Qt git repository and build directory. To add a new hard disc, open the 'Setting' dialog of the newly created virtual machine and click on the 'Add Hard Disk' button of the IDE controller on the 'Storage' tab.

virtualbox04.png

5) Select VDI as hard drive type (or whatever else you prefer)

virtualbox05.png

6) For the VDI hard drive it is recommended to use 'Fixed size' mode, to speed up disc access during compilation

virtualbox06.png

7) In the next step select a meaningful name for that disc and select a proper size (10GB are sufficient for building qtbase) After a click on 'Create', the virtual hard disc is created and the virtual machine ready to use.

virtualbox07.png

8) Now start the virtual machine and go through the setup wizard that is executed the first time you run the new Haiku OS installation. When that is done and the desktop is ready, start the 'DriveSetup' tool from the Tracker menu to format the additional virtual hard disc with a Be file system.

virtualbox08.png

9) Select the empty virtual disc in the table and choose the 'Partition -> Format-> Be File System…' entry from the menu.

virtualbox09.png

10) Give the virtual disc a meaningful name and click 'Initialize' to start the formatting.

virtualbox10.png


11) Once the formatting has finished ('File system' columns shows 'Be File System'), right click on the disc entry and select 'Mount' to mount the disc under '/'

virtualbox11.png