Documentation/GuestOperatingSystems/MacOS10.8: Difference between revisions

From QEMU
Line 71: Line 71:
== Links ==
== Links ==
[https://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/ Information on booting x86 version of Mac OS X in QEMU]<br>
[https://www.contrib.andrew.cmu.edu/~somlo/OSXKVM/ Information on booting x86 version of Mac OS X in QEMU]<br>
[https://sourceforge.net/projects/tenfourfox/files/unstable/contrib/ TenFourFox - an up to date web browser]<br>
[https://sourceforge.net/projects/tenfourfox/files/unstable/contrib/ TenFourFox - an up-to-date web browser]<br>
[https://github.com/macports/macports-base/releases/ MacPorts - a package manager for installing software]<br>
[https://github.com/macports/macports-base/releases/ MacPorts - a package manager for installing software]<br>


== Contact ==
== Contact ==
If you have any issues, concerns, suggestions, or anything else you wish to talk about, please [mailto:programmingkidx@gmail.com contact me]. <br>
If you have any issues, concerns, suggestions, or anything else you wish to talk about, please [mailto:programmingkidx@gmail.com contact me]. <br>

Revision as of 15:20, 28 May 2021

Mac OS 10.8

Description

Mac OS 10.8 otherwise known as Mountain Lion was released in 2012.

Download

The Nirsh version of Mac OS 10.8 is very easy to install in QEMU. You can find this version here:
https://agetintopc.com/niresh-mac-osx-mountain-lion-10-8-5-iso-free-download/

The download button is hard to find. It is near the bottom of the page, blue in color, and has the word "DOWNLOAD" on it.
Download button.png

After you push the button a new tab will appear.
Go to the new tab. After a brief countdown the download button will appear here.
Click it and another tab will appear.
After a short wait the download will begin.
It is 4.55 GB in size.

Installation Directions

Create a new hard drive image file like this:

qemu-img create "Mac OS 10.8.5 HD.qcow2" 80G

Run QEMU so it boots off the iso file:

qemu-system-x86_64 -hda "<path to Mac OS 10.8.5 HD.qcow2>" -cdrom "<path to Niresh Mac OS 10.8 installer.iso>" -boot d -m 8000 -accel tcg,thread=multi -device VGA -rtc base=localtime -usb -device usb-tablet -device usb-kbd -device usb-mouse -M q35 -cpu Nehalem -smp sockets=1,cores=8

Once it starts up I suggest you push the F8 key to print kernel messages.
You can find out if something is wrong by reading what is printed.
This is entirely optional.
On my MacBook Air I have to do this by push the fn key and the F8 key.
Then enter -v at the prompt and push the return key.
Boot options.png

A black screen with white text with print out messages until the installer screen appears.
Language selection.png
Select your language then push the right arrow button.
On the next screen click on the Utilities menu and select "Disk Utility".
Select the hard drive at the top and then click on the Erase tab.
Click on the Erase button to initialize the hard drive.
Quit Disk Utility and push the Continue button.
On the license screen push the "Agree" button.
Install os x.png
Push the Install button

The install process will take a while to complete. For me it took about 33 minutes to complete.
If operating system restarts and it appears to be stuck on a text only screen, quit QEMU and boot from the hard drive.

Use this command to boot from the hard drive:

qemu-system-x86_64 -name "Mac OS 10.8.5" -hda "<path to Mac OS 10.8.5 HD.qcow2>" -boot c -m 8000 -accel tcg,thread=multi -device VGA -rtc base=localtime -usb -device usb-kbd -device usb-mouse -device usb-tablet -M q35 -cpu Nehalem -smp sockets=1,cores=8

Desktop.png

Welcome to Mac OS 10.8!

Notes

The AC97 sound card does not work.
The intel-hda and ich4-intel-hda causes a kernel panic with the VoodooHDA driver.
usb-audio does not work.
Quicktime does not play any audio or video files.
Haven't figured out how to make networking work.

How to transfer files into the virtual machine

This command will use a host folder as an USB flash drive on the guest:

-device usb-storage,drive=fat16 -drive file=fat:rw:fat-type=16:"<full path to host folder>",id=fat16,format=raw,if=none

Just replace <full path to host folder> with the actual path of a host folder.
The easiest way to do this is to drag a folder into the terminal application.
Then copy and paste the path's text.
This method has a limit of about 540 MB of data. Sorry 😞

Links

Information on booting x86 version of Mac OS X in QEMU
TenFourFox - an up-to-date web browser
MacPorts - a package manager for installing software

Contact

If you have any issues, concerns, suggestions, or anything else you wish to talk about, please contact me.