The default OS is NetBSD/amd64. But whereas Mini vMac is primarily aimed at emulating the Mac Plus, Basilisk can either emulate a Mac Classic or a Mac II series model (hence Basilisk II there never was a Basilisk I), depending on the configuration/build and ROM file used.With -i the script will download the relevant installation ISO, make a 10G filesystem image and boot Qemu into the installer. Recommended: Mac System 7.x through Mac OS 8.1 Performa ROM Basilisk II is another well-maintained Motorola 68000 series emulator.
Qemu Emulator Full Sourcecode OnYou also need a real Mac available in order to fetch the OSK key.Install KVM (QEMU) on CentOS 7 - Guest Installation command Line Virt Viewer Graphical Mode. Apple Silicon arch-x8664 brew install qemu x86 Intel Macs brew install qemu Step 2: Create a disk imageI’ll assume you already have Proxmox 6 installed. You'll need to install the x86 version of QEMU for the Apple silicon macs first. This is the only step where Apple Silicon and Intel Macs differ. Requirementsxcode-select (CLI Tools) xcode-select -install Homebrew Step 1: Install QEMU. You can get the full sourcecode on my GitHub here.Once done, shut down the emulated system. If you don't have Homebrew yet, Matthew Broberg's introduction to Homebrew will help you install and configure it.This will take a minute to restore. If you're using a Mac, you can use Homebrew to install QEMU. If you're not using macOS, visit QEMU's download page to install it for your operating system.Although we’re putting it in the ISO directory so that we can use it with Proxmox’s ISO picker later, this a raw disk image rather than a true ISO.If you’re building the installer on macOS, you can build a full installer instead of just a recovery, which will mean that macOS won’t have to download Big Sur files during installation, and so won’t require an Internet connection. Upload this file to your Proxmox’s ISO store directory (typically /var/lib/vz/template/iso). If you will be building the installer ISO on macOS, open up the Terminal and run this command to install the commandline tools: xcode-select -installIf you’re building the ISO on Linux, you instead need to run this command (these are the package names for Ubuntu or similar distributions, they may need adjustment on other distributions): sudo apt install qemu-utils makeNow in the Terminal, from the root of OSX-KVM, run: cd scripts/bigsurThis will download the Big Sur installer from Apple’s software distribution servers and build a BigSur-recovery.img file for you. Older CPUs will cause the finder to repeatedly crash after installation completes (with an Illegal Instruction exception in the graphics code).Modern AMD CPUs also support SSE 4.2 and will work with this guide.Download my copy of the OSX-KVM repository using the download button, and unzip it:First we need to install some build requirements. ![]() Make a note of it.Every Mac uses the same OSK, so don’t be surprised that it doesn’t look like a random string! Create the VMFrom the Proxmox web UI, create a new virtual machine as shown below. In a command prompt, change into the same directory as that file and run: xcode-select -install # If you don't already have gccGcc -o smc_read smc_read.c -framework IOKitIt’ll print out the 64 character OSK for you. Save the first block of C code from this page as smc_read.c. Enable discard to support TRIM. Set the size of the hard disk (64GB or greater, 32GB is too small). Set graphics to “VMWare Compatible”, set BIOS to OVMF (UEFI), set Machine to Q35, tick QEMU Agent, tick Add EFI Disk and pick storage for it ![]() This will treat these as hard disks rather than DVD drives.Save your changes, return to the Options tab, and change the boot order to put IDE2 (the OpenCore image) first. Add “,cache=unsafe” in its place. Features that your host CPU doesn’t support will be ignored (a warning will be printed to the console during launch with qm start 1xx), but note that macOS won’t work without SSE4.2 support.Now find the lines that define the two “ISOs” (ide0 and ide2), and remove the “,media=cdrom” part from them. It will not be selected for you automatically:If your keyboard isn’t responding on this screen, exit the Console tab in Proxmox and re-enter it. Avoid “Encrypted” at this stage because I have not tested that scenarioAfter the first stage of installation, the VM will reboot 3 or 4 times in quick succession, and each time you must pick the “macOS Installer” entry (the second one here, with the hard disk icon) to continue installation. Erase the main disk (it’ll appear as VirtIO Block Media). Follow the steps below to format the disk: OpenCore’s “OpenCanopy” boot pickerIf you built a recovery installer, the icon will instead be an image of a hard disk and be labelled “MacOS Base System”.Our virtual hard drive needs to be erased/formatted before we can install to it, so select the Disk Utility option. To make this change persist across Proxmox reboots, run: echo "options kvm ignore_msrs=Y" > /etc/modprobe.d/kvm.conf & update-initramfs -k all -u Install Big SurNow start up your VM, it should boot to the OpenCore boot picker:Press enter to boot the “Install macOS Beta” entry and the installer should appear. Android emulator for mac memuOn the Options tab, edit the boot order to place your virtio0 disk as the first disk. The OpenCore CD is the small disk (~150MB) that only has an EFI partition on it, and the main hard disk is the one with the large (>30GB) Apple_APFS “Container” partition on it.In my case these EFI partitions ended up being called disk2s1 and disk0s1 respectively, so I ran “sudo dd if=/dev/disk2s1 of=/dev/disk0s1” (note that if you get these names wrong, you will overwrite the wrong disk and you’ll have to start the installation over again!).Now shut down the VM, and remove both the OpenCore and the Big Sur installer drives from the Hardware tab. Pop open Terminal and run “diskutil list” to see what drives we have available.Use “sudo dd if= of=” to copy the “EFI” partition from the OpenCore CD and overwrite the EFI partition on the hard disk. Let’s install that to the hard drive instead. Make the OpenCore install permanentWe’re currently booting using OpenCore from the attached OpenCore ISO. It works!Note that it will be really sluggish for a few minutes after the first boot while the system performs housekeeping tasks.
0 Comments
Leave a Reply. |
AuthorStephanie ArchivesCategories |