This article describes my best attempts to use Haiku in VirtualBox
It is commonly used to install Haiku in VirtualBox, but many instructions are missing. While installation is pretty straightforward, adding integrations between host and guest since Guest Additions are not supported.
Installation process is described on the official homepage, but here is a recap:
- Install official ISO
- Create a VM with a VDI hard disk and allocate more than 4 GB
- Attach Haiku ISO to a VM
- Extra: Haiku performance might be reduced on some VirtualBox versions, so it is safer to set the number of CPUs to 1
- Finally, Follow the instructions when installing OS on a disk
Enabling SSH
This section is partially described in Network services section.
- Set the user’s password (in Terminal) [
~> passwd
] - In
/system/settings/ssh/sshd_config
, addPermitRootLogin yes
- Configure Network for VM: Either
- Add Host-only Adapter in VM’s Network Settings (IP will be in Desktop applets –> Network Status)
- Add port forwarding from guest 22 to some other host’s port (IP is same as localhost)
Enabling shared clipboard
- In HaikuDepot, search for
VM Guest Additions
and install it. - Enable Shared Clipboard in VirtualBox –> Devices
Enabling shared folders
- In VM Settings –> Shader Folders, add a desired folder with auto mount.
- Create a folder in Haiku where it will be mounted
- In Haiku’s Terminal [
mount -t vboxsf -p <device> <mount path>
]
Initially, it was a pain to use Haiku due to many features being in development, and after some work, it is still a pain, but with a bit of sugar 😉.
References
Image by MissBrae01 missbrae01@gmail.com