Giter VIP home page Giter VIP logo

osx-kvm's Introduction

Host System Details

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.

ISO Creation

  • Download OS X El Capitan or macOS Sierra installer from Apple App Store.

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

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

Installation

See boot.sh file for an alternate to the following virsh method.

virsh --connect qemu:///system define macOS-libvirt.xml
  • Redefine HDD/DVD sources in virt-manager.

  • Start the VM in virt-manager and hit return in the console window.

  • After booting, the initial language selection should show up. screenshot_01

  • After selecting the language, fire-up the Disk Utility ... screenshot_02

  • ... and initialize the new harddisk. screenshot_03 screenshot_04

  • After disk initialization, open a terminal window (in the Utilities menu) and recursively copy the /Extra folder to the newly initialized target volume using

     cp -av /Extra "/Volumes/NewVolumeName"
  • When done, quit Terminal. screenshot_05

  • Now, you can continue with the installation as usual screenshot_06

  • When finished, the VM will reboot automatically and the first time setup continues as usual. screenshot_07

Debugging

Host machine may need the following tweak for this to work,

echo 1 > /sys/module/kvm/parameters/ignore_msrs

Type the following in the bootloader if the guest VM fails to boot (some older ISO images may require this),

"KernelBooter_kexts"="Yes" "CsrActiveConfig"="103"

Credits

  • Fritz Elfert (felfert) - cleanups, better documentation, and nicer ISO creation script

  • Ian McDowell (IMcD23) - more documentation, and better ISO creation script

  • voobscout - libvirt XML file

References

osx-kvm's People

Contributors

kholia avatar

Watchers

 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.