Mac OS virtualbox in ubuntu

While Linux is a great operating system, many applications are not available in its ecosystems, such as iTunes, OneNote or Sony Digital Paper. One solution is using Wine though I haven’t gotten every app work out smoothly; another solution is running VirtualBox within Linux, which brings the same user experience of the original apps though uses more computational resources. This tutorial covers setting up Mac OS virtual box in Ubuntu (18.01), my guide follows this useful article.

  • Download Mac OS 10.13
  • Download and install VirtualBox.
  • Download and install VirtualBox 6.0.4 Oracle VM VirtualBox Extension Pack (optional, for usb pass through)
  • Follow these steps: screenshot from 2019-02-16 21-28-52 screenshot from 2019-02-16 15-34-12 screenshot from 2019-02-16 15-35-19 Now go to Setting to set up internet by clicking “settings”: screenshot from 2019-02-17 00-49-37 For example, “eno1” is my ethernet. wifi option is available too. screenshot from 2019-02-16 15-35-53 Share clipboards: screenshot from 2019-02-17 11-14-58 Adjust memory: screenshot from 2019-02-16 15-36-09 CD player pass through: screenshot from 2019-02-16 15-38-15 screenshot from 2019-02-17 11-32-21 Usb pass through (extension pack needed): screenshot from 2019-02-17 11-32-47

  • Before launch the virutalbox, one needs to run these commands under the VM machine folder (change $VMname to yours)
VMname='Mac OS'
cd ~/VirtualBox\ VMs/$VMname
VBoxManage modifyvm "Mac OS" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff 
VBoxManage setextradata "$VMname" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3" 
VBoxManage setextradata "$VMname" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0" 
VBoxManage setextradata "$VMname" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple" 
VBoxManage setextradata "$VMname" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" 
VBoxManage setextradata "$VMname" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1  

Now it’s good to go, simply click “start” then Mac installation page will show up: screenshot from 2019-02-17 00-49-37