There is a simpler solution out there using Hashicorps' Packer and the great build scripts from timsutton (
can build images for Fusion and Parallels, too.):<p><a href="https://github.com/timsutton/osx-vm-templates" rel="nofollow">https://github.com/timsutton/osx-vm-templates</a><p>e.g.<p><a href="https://gist.github.com/rmoriz/37b671afe53c984b2f85" rel="nofollow">https://gist.github.com/rmoriz/37b671afe53c984b2f85</a>
I used OS X in VMware and Virtualbox (running Xcode) and the experience was awful. Mainly because 3D support is not available and OS X makes a heavy use of graphics acceleration.<p>OS updates also break the installation.<p>There are many discussion threads on this topic, like this one <a href="https://communities.vmware.com/thread/466874" rel="nofollow">https://communities.vmware.com/thread/466874</a>
Note that if you do this with 10.10, performance will be terrible because of graphics accelerations issues.<p>From what I understand, 10.9 generally works fine in VMs, but there was a change in the underlying graphics engine in 10.10 that works fine on real hardware but plays merry havoc with VMs.
It seems the image must be created on an existing OS X installation. Is a pre-baked image portable to virtualbox running on other host OS:es? (Yes I know, Eula yada yada).
I'm thinking about getting a MBP (have one at work) because the hardware is shiny and OSX is useful/needed for some things (iOS development, Unity development).
However I'd much rather run Linux as the base OS. That setup wouldn't violate the EULA. I guess I'll spin up a VB-image on this OSX-MBP and see how it goes :)
Useful.
Now I remember why I don't like VirtualBox. There's always some problem when I use it. In this case, I followed the exact instructions. I have a non-functioning trackpad in the guest, which sometimes happens, and sometimes not. In the OS X installer, I also can't select the disk to install to. And when I powered down the VM and powered it up again, I get an error message "Error loading kernel cache (0x9)". That seems to be fixed when you follow the FAQ for "Stuck on boot".<p>The non-functioning trackpad I can get around, by rebooting until it works. Anybody had the problem where you can't select the target disk in the installer?<p>Edit: got it. You have to format the disk. In the installer, go to Disk Utility and "erase" the disk. This formats and partitions it.
Since Virtual Box supports EFI boot, and since we did not fiddle with the ISO in this process, that means this process will not work on incompatible older Macbooks, right?