Atsumi Is based on macOS-Simple-KVM This makes it easy to download and install macOS in a virtual machine (bundled with qemu-virgil, which includes the paravirtual 3D graphics driver virtio-vga). It is not provided with macOS, but downloads the installer image of macOS Catalina.
It is worth noting from the beginning that Apple does not allow macOS to be installed on non-Apple hardware, so to use this feature legally, you must install Linux on Apple hardware.
After using Sosumi on my Ubuntu 20.04 desktop for a few hours, I can tell you that the installation process takes quite a long time (about 50 minutes on my system), and the macOS system may be a bit slow, but it works. Therefore, this may not be suitable for heavy tasks, but it is very suitable for testing.
This snapshot package, by Alan Pope The Canonical/Ubuntu distribution, which can easily install and run macOS in virtual machines on Debian/Ubuntu, Fedora and other Linux distributions (after installing snap), basically provides everything needed to make it work. You can find the source of the snapshot package at the following location GitHub. If you don’t want to use the snap package, you can choose to use macOS-Simple-KVM, This is a set of tools (accelerated by KVM) for setting up fast macOS virtual machines in QEMU.
Before installing this component, I need to pay attention to some important things:
- After installing macOS in the virtual machine, the total size of the Sosumi folder (
~/snap/sosumi) There is about 31.5 GB on my system, but this space may be larger as additional applications are installed in the macOS virtual machine
- Your computer CPU needs to support hardware virtualization. Please refer to the KVM list in the following Here Find out if your CPU supports this feature
- Supports Intel and AMD CPUs, but Ivy Bridge (or higher) Core and Xeon processors, or Ryzen and Threadripper processors (from macOS-Simple-KVM FAQ)
- You can release the mouse focus of the QEMU virtual machine by pressing the following operations
CTRL + Alt + G
- The startup script can be found in the following location, which contains various parameters that you can adjust (for example, available VM memory, number of CPUs, etc.).
How to install macOS in a virtual machine (QEMU) on Linux using the Sosumi snap package
To install Sosumi, you need to be able to install the Snap package on your system. By default, this feature is enabled in Ubuntu, in other Linux distributions, please follow Snapcraft documentation.1. Install Sosumi snap packaging:
sudo snap install sosumi --edge
Why do we need an advantage? In my test, after using the Sosumi stable package, the macOS virtual machine did not start, but it can be used in the edge version. You can skip
--edge Install stable version 2 from the command. Enter the following to run Sosumi for the first time
sosumi In a terminal. Only needed the first time; an application menu shortcut will be created for future launches.[[Edit]]If you encounter a problem saying that it cannot run Sosumi/qemu because it cannot start X11, please add your user to
sudo usermod -aG kvm $USER
Question 3 mentioned by Bob White in the comments below. After the virtual machine starts, press
Boot macOS Install from macOS Base System: 4. Format the hard disk of the macOS virtual machine.
You will be taken to a screen with a file called
macOS Utilities -Click from there
In the Disk Utility dialog, select the first
Apple HDD On the left sidebar (with a capacity of 68.72 GB), then click
Erase, Enter the name of the HDD (such as macOS), and the remaining options remain the same (mac OS extended (journal) file system with GUID partition map):
Erase Button to format partition 5. Install macOS in the virtual machine.
When you finish closing
Disk UtilityAnd you will enter
macOS Utility Talk again. Select from this dialog
Reinstall macOS. Please click
Continue Several times, you will enter a screen where you must select the HDD formatted in step 4:
Install The installation will begin:
The virtual machine will automatically reboot at some point, then continue the installation, and reboot again after completion. 6. Boot to macOS
After the installation is complete, the macOS virtual machine will restart, and in the boot menu, you will see some other options. Use the left/right arrow keys to select
Boot macOS from..., Like this (in
Boot macOS from macOS, The second macOS is the HDD name set in step 4):
When you want to boot to macOS, you need to select this option every time you start the virtual machine.
When you start macOS for the first time, you need to perform the initial settings (as in the screenshot above), select the location, preferred language, and you can also choose to log in with your Apple ID, agree to the terms and conditions, etc., and create your computer account (user name and password). When finished, the macOS Catalina desktop should load.