Created
October 26, 2016 16:21
-
-
Save richienyhus/7732629c46f364d8d13351640b89d02e to your computer and use it in GitHub Desktop.
Emulating Haiku In KVM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VM is an ideal way of testing operating systems without having them physically installed. Installing Haiku into VM is a solution for those who don't want to set it up into a physical computer. | |
There are several methods offered to install Haiku. These include Vmdk images, Raw images, Iso images and Anyboot images which are a hybrid of the latter two images. The Raw image (and thus the Anyboot image) is a preinstalled environment, in which the Virtual Hard Disk size cannot be customized, but going through the installation process is not required. | |
In this guide the Haiku operating system is being run under virtual circumstances using Ubuntu 12.04 LTS, KVM, and Virt-Manager; but you can use any distribution of Linux that supports KVM. | |
In this guide, we have used ISO and Anyboot/Raw images. The required files can be found on the Get-Haiku page of this website which is located <a href="http://www.haiku-os.org/get-haiku">here</a>. Both the ISO and anyboot images are available there, do select the closest mirror to enjoy higher transfer rates. Verify using the checksums to make sure that the downloaded files are not corrupted as they are big files. | |
<h3>Downloading KVM on Ubuntu 10.4 and above</h3> | |
If your Ubuntu version is over 10.04, you can enter the following into the terminal and set up KVM and Virt-manager. | |
<pre class="terminal">sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils</pre> | |
<pre class="terminal">sudo apt-get install virt-manager</pre> | |
<h3>Installing and running Haiku from an ISO image.</h3> | |
The following guide will describe the installation of Haiku on Virtual Machine, using an ISO image. | |
Once KVM is set up and the ISO image is downloaded, you can start the installation. | |
First, create a new virtual machine. | |
<br /><img width="660" src="http://www.haiku-os.org/files/image1_0.png" /><br /> | |
Give a name to your Haiku virtual machine and choose the method of OS installation, which is "Local install media" in this case; and click <span class="button">Forward</span>. | |
<br /><img src="https://sites.google.com/site/nyhusr/Home/haiku-os-files/haikuarticles/kvm/image2.png" /><br /> | |
Browse to the ISO image and choose "Other" as the operating system type and "Generic" as the version. Click <span class="button">Forward</span> to go to the next step. | |
<br /><img src="https://sites.google.com/site/nyhusr/Home/haiku-os-files/haikuarticles/kvm/image3.png" /><br /> | |
Here, we're supposed to choose memory and CPU settings. It is better to assign more than 256M of RAM for smooth running ; too much, on the other hand, may cause a lag for the host. | |
<br /><img src="https://sites.google.com/site/nyhusr/Home/haiku-os-files/haikuarticles/kvm/image4.png" /><br /> | |
After choosing your desired memory and CPU settings, click <span class="button">Forward</span>. | |
<br /><img src="https://sites.google.com/site/nyhusr/Home/haiku-os-files/haikuarticles/kvm/image5.png" /><br /> | |
Now, you can run Haiku. You can either have it installed onto the virtual hard disk or just try it out. | |
<h3>Installing and running Haiku from Anyboot or Raw images.</h3> | |
The following guide will describe the installation procedure of Haiku on Virtual Machine, using a VM disk image. | |
Give a name to your Haiku virtual machine and choose the method of OS installation, which is "Import existing disk image" in this case; and click <span class="button">Forward</span>. | |
<br /><img src="https://sites.google.com/site/nyhusr/Home/haiku-os-files/haikuarticles/kvm/image9.png" /><br /> | |
Provide the existing storage path for the Anyboot image to be used and choose an operating system type and version. Let us select Other and Generic each for OS Type and Version. Click <span class="button">Forward</span> and move on. | |
<br /><img src="https://sites.google.com/site/nyhusr/Home/haiku-os-files/haikuarticles/kvm/image10.png" /><br /> | |
Memory and CPU settings to be decided. More than 256M of RAM is recommended for smooth running ; too much, on the other hand, may cause a lag for the host. | |
<br /><img src="https://sites.google.com/site/nyhusr/Home/haiku-os-files/haikuarticles/kvm/image11.png" /><br /> | |
Click <span class="button">Forward</span> and <span class="button">Finish</span>. | |
Now, you can run Haiku. You can either have it installed into a virtual hard disk or try it out. | |
<h3 id="part_part_additional">Additional Steps.</h3> | |
TODO | |
<h3>Troubleshooting</h3> | |
<h5>Advanced options warning</h5> | |
If, in the middle of the installation process, you encounter the following exclamation mark under Advanced options: | |
<br /><img src="https://sites.google.com/site/nyhusr/Home/haiku-os-files/haikuarticles/kvm/image12.png" /><br /> | |
This can be fixed by downloading and installing Hardware Abstraction Layer from Ubuntu Software center. | |
<br /><img width="660" src="https://sites.google.com/site/nyhusr/Home/haiku-os-files/haikuarticles/kvm/image13.png" /><br /> | |
<h5>Unable to connect to Libvirt</h5> | |
If, after running Virt-manager, you run into this pop-up: | |
<br /><img src="https://sites.google.com/site/nyhusr/Home/haiku-os-files/haikuarticles/kvm/image14.png" /><br /> | |
Then the solution is to run Virt-manager with administrative priviliges, which can be done in the terminal: | |
<pre class="terminal"> sudo virt-manager</pre>Âin the terminal: | |
<pre class="terminal"> sudo virt-manager</pre>r</pre> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment