@おったんです。動作検証用のMacの環境が欲しかったため、VirtualBoxに仮想マシンを立てて検証環境を構築することとしました。何点かつまずくところもあったため、後学のためにメモしておきたいと思います。 macOS Yosemiteのインストーラーをダウンロードする 起動ディスクの作成には. Hackintosh Yosemite Installer can be used to install OS X Yosemite On PC without the need of a Mac. For detail Installation Guide and Instruction read: Install Hackintosh Yosemite on PC/Laptop. This Installer supports AMD Processor Pcs Intel Processor including Haswell LGA 2011 X99 Hackintosh Installation HP Processors with Insyde Bios. I want to install Yosemite on a Mac OS X, but I get the error: 'OS X could not be installed on your computer. The operation couldn't be completed. Undefined error: 0. Quit the installer to restart your computer and try again'. I have tried to restart the virtual machine.
At sandstorm|media, we use a wide array of software tools to run our operations. We try to keep our working environments synchronized to prevent these nasty “But it works on my machine!” issues. That's why we're using Ansible to configure the software on our Macs.
While they save us a lot of time in day-to-day business, we do need to configure and test our Ansible scripts from time to time. It's sensible to do that in a virtualized environment, since reinstalling OSX everytime you want to test something is not very practical.
Getting OSX 10.10 Yosemite to run inside a VirtualBox is a tad tricky, which is why I describe the steps how to do it here. This tutorial assumes that the host system is an OSX machine as well.
Step 1: Obtain The Installer File
To get OSX running in a virtual machine, you need a bootable ISO first. The simplest source of one is in fact the Mac App Store (assuming you're running Yosemite already). Just search for “Yosemite” and you will be presented with the option to download the installer.
The installer file, called “Install OSX Yosemite.app”, should now be available in your “Applications” folder. We want to extract the actual image file to create a bootable ISO from that. Right-click the installer file and click “Show Package Contents”.
In the resulting screen, open “Contents > SharedSupport” and locate the “InstallESD.dmg” file. Save that to a separate folder, as it's the one we will continue working with.
The image file we extracted just now is not bootable yet. To do that, we need to run a few operations with the Disk Utility on it. This is most conveniently done via a shell script. Copy the following code (thanks to Jhon Quintero), paste it in a file named “createISO.sh” and place this file in the same folder that you copied the “InstallESD.dmg” file to. Make it executable via “chmod +x createISO.sh” and run it.
If everything went well, you'll now have a bootable image file called “Yosemite1010.iso” in your folder. This is what we'll now use to create the VM.
Os X Yosemite Iso Virtualbox 10
Step 3: Create a VM with the ISO
Fire up VirtualBox and create a new VM. Select Mac OS X as the operating system and 10.9 as the version (it'll work with 10.10, too).
Leave all the settings as default, and make sure you make the virtual disk big enough. After the VM is created, access its settings and change to the “System” tab. Select “PIIX3” as the chipset.
After that, there's one more thing to do if you're running a recent (2014 or later) MacBook. On the new Haswell cores, OSX tries to use a chipset feature that does not work within VirtualBox. This will result in an error message ('Missing Bluetooth Controller Transport') during the boot process (more information can be found in a VirtualBox ticket on the issue). As a workaround, we will make the VM believe it's running on an older processor by changing the processor identification with the vboxmanage command:
Mac Os X On Virtualbox
After that is done, your VM should be good to go. Fire it up and after a while, you'll hopefully be presented with the welcome screen. Happy VM-ing!
Any comments or additions? Let us know on Twitter!