A summary of the research on installing MAC OS system on a Linux KVM virtual machine
I. Source of information:
On the net found two methods, one is a video on the tutorial, one is the web information.
Second, the video material method content:
1.install QEMU
sudo apt-get install Qemu
2,creating a blank img
QEMU-IMG Create X.img 20G
3,setting Up MAC Installation
Qemu-system-x86_64-hda PATHTOIMG-VGA std-m 2048-SOUNDHW ac97-cdrom pathtoiso-boot D
4,restart
Qemu-system-x86_64-boot C-VGA std-m 2048-hda Imgpath
Summary: After multiple mirror production and replacement attempts, the IPC system is eventually found to be able to see the installation interface (Black Apple system). The system installed by this method has an infinite restart problem and the installation fails, and the system cannot upgrade the system version even if the installation is successful.
Third, the content of the website information
URL 1:http://www.vpsee.com/2014/06/install-and-run-os-x-mavericks-with-kvm-under-linux/
URL 2:http://www.contrib.andrew.cmu.edu/~somlo/osxkvm/
URL 3:http://www.bonashen.com/post/artifice/running-mac-os-x-as-a-qemu-kvm-guest
This is a complex approach and is said to enable version upgrades and the use of genuine systems.
Steps:
1, Linux distribution comes with Kvm/qemu not support OS X as guest system, so you need to compile KVM, Kvm-kmod, QEMU plus OS X support.
2, a bootable Mavericks ISO file is generated on the MAC with a script.
3, compile smc_read.c This file on Mac and run it to get SMC.
4, make the initiator (boot file) of the Chameleon system.
5, Boot code:
Qemu-system-x86_64-enable-kvm-m 2048-cpu core2duo \
-SMP 2 \
-VGA std \
-device ahci,id=ide \
-usbdevice Keyboard-usbdevice mouse \
-device isa-applesmc,osk= "Ourhardworkbythesewordsguardedpleasedontsteal (c) applecomputerinc" \
-kernel/home/tang/desktop/chamele/usr/standalone/i386/boot \
-smbios type=2 \
-device IDE-DRIVE,BUS=IDE.2,DRIVE=MACHDD \
-drive id=machdd,if=none,cache=none,file=/home/tang/x.img \
-vnc 0.0.0.0:1 \
-device ide-drive,bus=ide.0,drive=macdvd \
-drive Id=macdvd,if=none,snapshot=on,file=/home/tang/volumes.iso-boot Once=d
Summarize:
Step 1 Download is slow, there will be a problem that can not be found after downloading.
Step 2 There are many path problems in the production project.
Step 3 may be one of the reasons for the failure, to obtain the Apple's SMC serial number, compiled with the C language code in the tutorial, the final result is: Urhardworkbythesewordsguardedpleasedontsteal (c) Applecomputerinc, not sure if this is the required serial number.
Step 4 Download the Chameleon boot file.
Step 5 does not run past,-smbios type=2 will have problems, if you remove this sentence, the system will not start.
Final Summary:
The system of Method 1 cannot be upgraded and does not meet our requirements. There are three reasons why Method 2 fails and cannot proceed: 1, try this method to download and install: git, ' development Tools ', Kvm.git, Kvm-kmod.git, KVM, zlib, Zlib-devel, Glib2-devel, Pixman-devel, Chameleon and so on. 2,SMC Sequence number is not determined correctly. 3,-smbios type=2 execution does not pass.