Coder Social home page Coder Social logo

osx-kvm's Introduction

Host

Ubuntu 15.10 running on i5-6500 CPU.

Fedora 24 running on i5-6500 CPU.

Tested with QEMU 2.4.1 and QEMU 2.5.

Notes

  • Type the following after boot, "KernelBooter_kexts"="Yes" "CsrActiveConfig"="103"

Kernel Extraction

  • Install Pacifist on OS X.

  • Mount "InstallESD.dmg" file.

  • With Pacifist browse to the above volume (use the "Open Apple Installers" menu option) and then open "Essentials.pkg". Extract the folder & file (Kernels/kernel) located at /System/Library/Kernels/kernel location.

ISO Creation

  • After extracting the Kernels folder, place it in the same directory as the iso creation script.

  • Run the ISO creation script, making sure to use 'sudo' if possible.

  • Copy the ISO from your Mac to your KVM machine.

Enoch Bootloader

  • Download Enoch bootloader from http://www.insanelymac.com/forum/ (requires registration).

  • Using Pacifist open the “Enoch-rev.####.pkg” file and extract the file called "boot" from Core.pkg/usr/standalone/i386/boot

  • Rename boot to enoch_rev####_boot.

Installation

virsh --connect qemu:///system define osx-libvirt.xml

Redefine HDD/DVD sources in virt-manager

Post Installation

Put "org.chameleon.boot.plist" in /Extra folder.

sudo modprobe nbd
sudo qemu-nbd -c /dev/nbd0 /some/image.qcow2
sudo mkdir -p /mnt/osx-kvm
sudo mount -t hfsplus -o force,rw /dev/nbd0p2 /mnt/osx-kvm
sudo mkdir /mnt/osx-kvm/Extra
sudo cp org.chameleon.boot.plist /mnt/osx-kvm/Extra
sudo umount /mnt/osx-kvm
sudo qemu-nbd -d /dev/nbd0

InstallESD.dmg

Name: Mac OS X El Capitan
Version: 10.11.1 (15B42) InstallESD
Mac Platform: Intel

Untouched InstallESD.dmg file from the full 10.11.1 (Build 15B42) installer.
"Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg"
MD5: 3332a4e05713366343e03ee6777c3374
Release Date: October 21, 2015

jar -xf <zipfile> is pretty neat.

Move 'InstallESD.dmg' to '/Applications/Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg' location.

References

osx-kvm's People

Contributors

kholia avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.