Gentoo: emerge --ask app-emulation/qemu. RHEL/CentOS: yum install qemu-kvm. SUSE: zypper install qemu. QEMU can be installed from Homebrew: brew install qemu. QEMU can be installed from MacPorts: sudo port install qemu. QEMU requires Mac OS X 10.5 or later, but it is recommended to use Mac OS X 10.7 or later. Qemu PPC for OSX Installing Qemu system ppc for OSX This guide covers installing and running qemu-system-ppc with Mac OS and OSX PPC guests on OSX hosts. Qemu-system-ppc can run PPC Mac OS 9.0 to 9.2 and PPC OSX 10.0 to 10.5 Requirements * Qemu program. The latest Qemu for OSX builds emulate a network device that is supported out of the box.
I’m not a fan of Mac or OSX by any means however, there comes a time where I need to test either using their native Safari browser or some other native Mac environment. To solve this issue, I set out to install OSX into QEMU. It wasn’t very straight forward but I figured it out so hopefully you won’t have to go through the same issues I had to.
Please make sure to follow along exactly with the steps provided, any missed or skipped step could easily lead to a failed install. Prerequisites Make sure you already have QEMU installed on your system. Also ensure you have cfdisk installed on your system, or something comparible that you’re comfortable using. We’ll be using this later to create a GPT partition. You’ll also need to get a hold of an OSX High Sierra ISO.
At the time of this publication I was able to located a download of OSX High Sierra 10.13.1 at. If for some reason the provided link is unavailable simply do a search or use an actual OSX install disc. I found the best luck using the enochrev2902boot BIOS.
![Qemu For Mac Qemu For Mac](/uploads/1/2/5/6/125616065/691294214.png)
At the time of this publication I was able to located a download at. If this specific version is no longer available a later version may work as well. Create The OSX QEMU Image First we need to create the OSX QEMU image. Issue the following command: qemu-img create -f raw osx 32g Replace the 32g with the actual hard disk size you want to use (ie. 64g, 128g, 256g, etc.). Next, let’s create a GPT partition on the “osx” image. Issue the following command: cfdisk osx.
Cfdisk write After the partition has been created, we’ll need to write it back to disk and quit. Select the “Write” option and hit enter, then when prompted enter “yes” to confirm the writing of the partition to disk and hit enter. Next, select “Quit” and hit enter. At this point we’ve created the osx disk image which we’ll be using with QEMU, next we’ll need to configure a boot script for QEMU to load the installer ISO. Install Mac OSX High Sierra To make life easy on ourselves, let’s create a start-mac.sh script so that we don’t have to type out a ton of information each and every time we want to launch the qemu image. Apple Black Start This screen will take a little bit at first too, once again, just be patient it will eventually load. Eventually you will be presented with the language selection screen.
Go ahead and select your choice of language and hit the next arrow. DO NOT SELECT “Install macOS” YET, OR IT WILL FAIL!
First we’ll need to drop down into a terminal and format the disk image “osx” we created to be of the proper Apple type. All the work we did up until this point was just getting it so the Apple installer would recognize it. Also, don’t try and using the graphical Disk Utility either, it will fail and complain about the the disk saying: Operation failed. Running operation 1 of 1: Erase 'MacOS'. Unmounting disk MediaKit reports nout enough space on device for requested operation.
Operation failed. Re-partition The OSX Disk Once you reach the macOS Utilities screen, click on the Utilities drop down at the top of the screen and select the “Terminal”. MacOS Install Complete BIOS Post Install Tweaks The follow are some final tweaks to make the overall experience a little better.
Screen Resolution If you see your OSX resolution stuck at something you don’t like say 1024×768, there’s a simple fix that can be applied to change this. Do the following: First, apply any Apple updates to the OS currently outstanding or available. Next, open your “Finder” application, select “Applications” and go to the root of your drive by using Apple/Metakey + Option/Alt + Up arrow. Org.chameleon.Boot.plist Finally, shutdown fully using the “(Apple Icon) - Shutdown” and start the instance again using:./start-mac.sh Now your resolution should be set and you’re good to go.