How to Install Oracle VirtualBox 5.1 on Ubuntu 17.04 & 16.04 and Debian 8/7


-----------------------------


MACOS VIRTUALBOX VM ON UBUNTU


STEP 1: DOWNLOAD THE SIERRA INSTALLER FROM MAC APP STORE.

This should be done in you Mac and the installer will be placed in /Application/ folder.

STEP 2: PREPARE SIERRA ISO

Use geerlingguy’s script to prepare a sierra iso file.
git clone https://github.com/geerlingguy/macos-virtualbox-vm.git
cd macos-virtualbox-vm
chmod +x prepare-iso.sh
./prepare-iso.sh /Applications/Install\ macOS Sierra.app /Users/suzy/sierra.iso

STEP3: INSTALL VIRTUALBOX IN UBUNTU

You should have your VirtualBox and the Extension Pack installed, or use my ansible role

STEP 4: OPEN VIRTUALBOX AND CREATE A NEW VM.

Settings:
  • name: your_sierra_vm_name
  • type: Osx
  • version: Mac OS X 10.11 El Capitan (64-bit)
  • Other
settings

STEP5: CONFIGURE VM FOR MACOS (VERY IMPORTANT!)

Run following commands and replace “Sierra” with ‘your_sierra_vm_name’.
VBoxManage modifyvm Sierra  --cpuidset 00000001 000306a9 00020800 80000201 178bfbff
VBoxManage setextradata "Sierra" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3"
VBoxManage setextradata "Sierra" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0"
VBoxManage setextradata "Sierra" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple"
VBoxManage setextradata "Sierra" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata "Sierra" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1

STEP 6: INSTALL SIERRA

Insert sierra.iso to the sierra VM’s optical driver, and follow the instruction to install Sierra.
Note: In the installer, Go to Utilities > Disk Utility. Select the VirtualBox disk and choose Erase to format it as a Mac OS Extended (Journaled) drive.

STEP 7: REMOVE SIERRA.ISO AND RESTART VM.


------------------------
Oracle VirtualBox 5.1.20 has been released on Apr 18, 2017. Oracle VirtualBox 5.1.14 is the maintenance release of VirtualBox 5.1 which improves stability and fixes regression. See the ChangeLog for more details.

https://tecadmin.net/install-oracle-virtualbox-on-ubuntu/
This article will help you to install Oracle VirtualBox on your Ubuntu 17.04, 16.10, 16.04 LTS, 14.04 LTS, 12.04 LTS and Debian 8/7 systems.

Step 1: Setup Apt Repository

Firstly edit /etc/apt/sources.list file and add one of the following lines according to your distribution to your system. You can find your system distribution codename using “lsb_release -c” command from a terminal.
For Ubuntu 17.04 ("Zesty")
deb http://download.virtualbox.org/virtualbox/debian zesty contrib

For Ubuntu 16.04 ("Xenial")
deb http://download.virtualbox.org/virtualbox/debian xenial contrib

For Ubuntu 14.04 ("Trusty")
deb http://download.virtualbox.org/virtualbox/debian trusty contrib

For Ubuntu 12.04 LTS ("Precise Pangolin")
deb http://download.virtualbox.org/virtualbox/debian precise contrib

For Debian 8 ("Jessie") 
deb http://download.virtualbox.org/virtualbox/debian jessie contrib

For Debian 7 ("Wheezy")
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib

Step 2: Setup Oracle public key

After adding required apt repository in your system, download and import the Oracle public key for apt-secure using following commands.
$ 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 -

Step 3: Install Oracle VirtualBox

After completing above steps, let’s install VirtualBox using following commands. If you have already installed any older version of VirtualBox, Below command will update it automatically.
$ sudo apt-get update
$ sudo apt-get install virtualbox-5.1

Step 4: Start VirtualBox

We can use dashboard shortcuts to start VirtualBox or simply run following command from a terminal.
$ virtualbox
virtualbox-on-ubuntu

Comments

Popular posts from this blog

UISearchController Tutorial: Getting Started

CALayer Tutorial for iOS: Getting Started

Create a gradient color view in iOS using Swift 3 and XCode 8