Virtualize a Physical Haiku Partition With Virtualbox
In some situations, for example when we are using linux, can be extremely annoying to reboot into Haiku every time we need something (for example when we have a ppp connection).
I’ve written this article and i decided to post it here, in the hope that will help users and developers to have the life a bit simple.
There’s a fast method to boot a physical Haiku partition using VirtualBox, it require only a few commands. My commands refers to linux, anyway the operation is possibile under Windows (and presumably all supported platforms), changing the disk path. Remember also that you don’t have to set permissions under Windows.
- Open Terminal and log in as root (or use sudo before every command) using "su"
- Type fdisk -l and choose the target device (for example /dev/sda)
Add to your own user the needed permissions :
usermod -a -G disk,vboxusers usernameThen create the vdmk file using this command :
VBoxManage internalcommands createrawvmdk -filename file.vdmk -rawdisk /dev/sdaWhere file.vdmk is the file that will be used to set up the virtual machine and /dev/sda your device, it can be an hard disk, usb drive and any other mass storage device. If our command worked as well, we'll have a new file for example "file.vdmk". Now you should set the file permissions, type into terminal :
chmod 777 file.vdmk
At the end open VirtualBox, create a new virtual machine and set the file as master storage.
If you have a bootloader, you will choose the operating system as when you boot the device, in the case you need a bootloader you can use an Haiku’s livecd adding it in VirtualBox and pressing shift or space to boot from another partition before the bootscreen.
This method is also useful when you have a BFS disk with a lot of files and you want to transfer it to your physical partition.
Note : the created file can be used as well with VMWare.
It’s available an italian version of the tutorial at this link. Enjoy!
- Bug: XHCI (usb 3.0) issues
- [GSoC 2017] 3D Hardware Acceleration - Weekly Report 4
- [GSOC 2017] TCP optimization Report 4
- [GSoC 2017] Preferences GUI Refactoring - Weekly Report 4
- [GSoC 2017] Porting Swift to Haiku - Week #6 #7
- [GSoC 2017] Calendar Application: Weekly Report 4
- [GSoC 2017 - BTRFS Write Supports] Week #6 #7 #8
- Haiku monthly activity report - 06/2017
- [GSOC 2017] TCP optimization Week 4