Apple Mac OS X VM

Revision as of 06:58, 1 July 2017 by WikiFreak (talk | contribs)


This page describes how to install MacOS X as a Virtual Machine on Ubuntu.


Sources

Everything that follow is a copy with more details of this amazing tutorial: http://suzywu2014.github.io/ubuntu/2017/02/23/macos-sierra-virtualbox-vm-on-ubuntu

The following setup also rely on https://github.com/geerlingguy/macos-virtualbox-vm


Requirements

Mac OS X ISO

You must have a valid MAC OS X installer disk.


INSTALLER

To do so you must "create installer" from another MAC


(i) If you don't have a MAC already you can search for "Download MacOS Sierra.DMG – Installer.ISO – without Apple store" on Google


CONVERTION TO ISO

The installer you just download is a bunch of files. All of them must be group as an ISO.

You can rely on the Geerlingguy's script: https://github.com/geerlingguy/macos-virtualbox-vm


VirtualBox

First of all, you must setup VirtualBox. Official setup instructions are available on ORACLE web-page: https://www.virtualbox.org/wiki/Linux_Downloads


Add new repository

vim /etc/apt/sources.list

Add:

deb http://download.virtualbox.org/virtualbox/debian zesty contrib

Add the repository keys and update the definitions

# Repo keys
apt-key add oracle_vbox_2016.asc
apt-key add oracle_vbox.asc
### Alternative way to download and register the keys
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -


# Upgrade list of packages
apt-get update


Install VirtualBox

apt-get install virtualbox-5.1


(i) Note: Ubuntu/Debian users might want to install the dkms package to ensure that the VirtualBox host kernel modules (vboxdrv, vboxnetflt and vboxnetadp) are properly updated if the linux kernel version changes during the next apt-get upgrade.

apt-get install dkms