It requires a Macbook with MacOS already on it. There have been tall tales of pirated MacOS working on a Windows box, but don't believe everything you read on the internet. In this installation, MacOS & Linux have their own bootable partitions, so they don't need a virtual machine to run separately & can get the full machine resources when needed. The trick is getting them running simultaneously, so the development environments of both sides are going at the same time.
Step 1, get Virtualbox to boot the MacOS installation on its existing partition. The magic commands were buried in
http://www.virtualbox.org/manual/ch09.html#rawdisk
VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk -rawdisk /dev/sda
Creates a virtual disk which is really a symbolic link to the entire real disk.
Attach the virtual disk to the virtual machine in the Virtualbox settings. It worked on the 1st try.
Step 2, fix the screen resolution.
VBoxManage setextradata "mac" VBoxInternal2/EfiGopMode N
Where N can be one of 0,1,2,3,4,5 referring to the 640x480, 800x600, 1024x768, 1280x1024, 1440x900,1920x1200 screen resolution respectively. This only worked with MacOS.
The MacOS booted easily, most of the time.The issues with hidden serial numbers & esoteric bootloaders on the internet were resolved years ago.
Step 3, make the virtual MacOS share the laptop's ethernet so you can access the virtual Mac desktop over VNC & share files over SMB.
...Continue Reading