![]() So, if the disk were disk0, I’d do dd if=path/to/Leafbox.img of=/dev/rdisk0. From there, type diskutil list (or alternatively, click Get Info from File in Disk Utility) to determine our target. Now that everything is ready, the next step is to open Terminal (again, from Mac OS, not Haiku), and become root with sudo -s. Once inside the backed up system, open Disk Utility and unmount the internal disk (or use diskutil). ![]() To do that, we’ll first copy the Haiku image to our backup disk, set it as the Startup Disk from System Preferences, and shut down the Mac. Once Mac OS has been written to the drive, the next step is to write out the custom Haiku image made earlier. ![]() Depending on what is on the disk, the copy can take a while, (and because it is copying the system in use, I’ve found it’s generally a good idea to let it copy with everything closed so there’s no errors). I did have an iPod I could also have used… but it’s hard on its little disk. If your Mac only has one drive bay (like my Blackbook) the best thing to use is an external HD/SSD over USB 2 or FireWire in my case, I used a 128 GB SanDisk (USB). Like when restoring a Mac over FireWire with Target Disk Mode, you’ll want to head to the Restore tab (preferably in the pre-El Capitan Disk Utility) and have an extra disk available. Of course, it’s possible to assign VBoxManage an alias to make this command simpler, but I find it faster to just type the path out. If this is “Leafbox”, I’d do cd "$HOME/VirtualBox VMs/Leafbox", then /Applications/VirtualBox.app/Contents/MacOS/VBoxManage clonehd Leafbox.vdi Leafbox.img -format RAW. For VirtualBox, this will mean opening Terminal (on the Mac) and switching to the folder where the disk is. Then, once that’s done and the VM is safely shut down, depending on if the image is a raw image (such as if using qemu with a plain disk image) or is a VDI (VirtualBox Disk Image) or VMWare image, you’ll then want to convert it. With me, I changed Option to equal Command, added in a tiled background, and made some tweaks to the Desktop to make it feel at home. With everything done, you’ll then want to restart Haiku in the VM to ensure everything works nicely, and make whatever changes to it that are needed, like adding additional packages or files. I’ve found in order for the Mac to detect Haiku and not blink the classic ‘?’ folder on power up, I’ve found this step is (at least most of the time I’ve done this) needed. ![]() Once the disk is set, install Haiku as usual, but also write the boot sector (this can nicely be done from the Tools menu over the CLI tool) and set up the boot menu (also in the Installer’s Tools). The goal is to make the image small as possible I used a 4 GB image to be on the safe side. I chose the legacy MBR/Intel, as Haiku’s EFI implementation is for all 64-bit machines (far as I know), which means at least a 2009 model is needed if one were to go the Haiku with EFI route. Like using a normal virtual machine, partition and format the disk for Haiku. (And I’ve also messed with qemu before, which also works, but VBox is much faster). Sure the steps for the method I used can pretty much be condensed down to the above, but in a more expanded form, I started with the goal of having a “single boot” system and opted to start out with VirtualBox.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |