This is a bit more “advanced”, but it is totally possible to install Haiku to a second disk from a running linux (and probably other unices).
As I was too lazy to search for a usb drive I decided to try it out. This post is an outline of how you can do this, aswell as how to run an existing Haiku installation from linux.
First Download the installation image from download.haiku-os.org or Get Haiku! | Haiku Project depending on the version you want. If the image is a nightly unpack it with unzip.
Now, we need direct access to the disk we will be installing to, as we will be using qemu and using that as root is not the nicest idea we will have to give ourselves permission to access the disk device directly. In my case i did it like this: (as root)“chown youruser:youruser /dev/nvme1n1”. Depending on your linux distribution there might also be groups that you can invite your normal user into that do this for you, but i did not investigate.
Next is running qemu with our downloaded image, and our real disk attached. This is the setup I used:
”qemu-system-x86_64 -cpu host --enable-kvm -smp 4 -m 4G -cdrom ~nep/Downloads/haiku-master-hrev59261-x86_64-anyboot.iso -hda /dev/nvm
e0”
This can be improved with e.g usb tablet input or so, but this works fine for the installation.
During the installation you will either have to make a esp on your second drive (the one you are installating to in this example) or install the bootloader to the esp of the first drive afterwards.
In my case I installed refind beforehand and copied the haiku loader out of the .iso file (Unpacked it with whatever kde has to unpack stuff, and then mounted the esp partition with losetup to get to the loader, then copy it)
Now the above way to install the system can also be used to run the installed system (for example on a second monitor) while running linux, for example: “qemu-system-x86_64 -cpu host --enable-kvm -smp 4 -m 16G -hda /dev/nvme1n1”
I hope this was a bit informative. I realize this is a bit of a crazy way to install Haiku, but it may be interesting for some people that this is possible. Regards