How To Install macOS In A Virtual Machine On Linux Using Sosumi (Snap Package) (2024)

How To Install macOS In A Virtual Machine On Linux Using Sosumi (Snap Package) (1)

Sosumi is a snap package based on macOS-Simple-KVM that makes it easy to download and install macOS in a virtual machine (it comes bundled with qemu-virgil, which includes virtio-vga, a paravirtual 3D graphics driver). It does not ship with macOS, but downloads an installer image for macOS Catalina.

[[Edit]] This package has been abandoned, and is no longer updated. Use this instead: Install macOS Big Sur Or Catalina In A Virtual Machine Using Docker-OSX

------------------------------------------------------------------------------------------------
It's worth noting from the start that Apple doesn't allow installing macOS on non-Apple hardware, so to use this legally you must have Linux installed on Apple hardware.

After using Sosumi for a few hours on my Ubuntu 20.04 desktop, I can tell you that the installation takes quite a while (about 50 minutes on my system), and the macOS system may be a bit slow, but it's usable. So this may not be suitable to be used for heavy tasks, but it's perfect for testing.

This snap package, created by Alan Pope of Canonical / Ubuntu, makes it easy to install and run macOS in a virtual machine on Debian / Ubuntu, Fedora and other Linux distributions (after installing snapd), shipping with basically everything you need to get it running. You can find the snap package source on GitHub.If you don't want to use the snap package though, you have the alternative of using macOS-Simple-KVM, a set of tools to set up a quick macOS virtual machine in QEMU (accelerated by KVM).

Before installing this there are a few important things I want to note:

  • After installing macOS in the virtual machine, the total size of the Sosumi folder (~/snap/sosumi) on my system is about 31,5 GB, but this can get larger as you install extra applications in the macOS virtual machine
  • Your computer CPU needs to support hardware virtualization. See the KVM checklist from here to find out if your CPU supports this
  • Both Intel and AMD CPUs are supported, but the recommendations are Ivy Bridge (or later) Core and Xeon processors, or Ryzen and Threadripper processors (from the macOS-Simple-KVM FAQ)
  • You can get the QEMU virtual machine to release your mouse focus by pressing CTRL + Alt + G
  • The launch script, which contains various parameters (like the available VM memory, CPU count, etc.) that you can tweak, can be found in ~/snap/sosumi/common/launch

How to install macOS in a virtual machine (QEMU) on Linux using Sosumi snap package

To install Sosumi you'll need to be able to install Snap packages on your system. This is enabled by default in Ubuntu, and on other Linux distributions follow the instructions from the Snapcraft docs.

1. Install the Sosumi snap package:

sudo snap install sosumi --edge

Why edge? In my test, the macOS virtual machine did not start after using the Sosumi stable package, but it does work with the edge version. You can skip --edge from the command to install the stable version if you wish.

2. Run Sosumi for the first time by typing sosumi in a terminal. This is only required the first time; an applications menu shortcut is created for future launches.

[[Edit]] In case you run into an issue saying it failed to run Sosumi / qemu because it can't start X11, add your user to the kvm group:

sudo usermod -aG kvm $USER

Issue mentioned by Bob White in the comments below.

3. After the virtual machine boots, press Enter to Boot macOS Install from macOS Base System:

How To Install macOS In A Virtual Machine On Linux Using Sosumi (Snap Package) (2)

4. Format the macOS virtual machine HDD.

You'll get to a screen with a dialog called macOS Utilities - from there click on Disk Utility:

How To Install macOS In A Virtual Machine On Linux Using Sosumi (Snap Package) (3)

In the Disk Utility dialog choose the first Apple HDD on the left-hand sidebar (the one with a capacity of 68,72 GB), then click Erase, enter a name for the HDD (like macOS), and leave the rest of options as they are (mac OS Extended (Journaled) filesystem with GUID Partition Map):

How To Install macOS In A Virtual Machine On Linux Using Sosumi (Snap Package) (4)

Now click the Erase button to format the partition.

5. Install macOS in the virtual machine.

When you're done close Disk Utility, and you'll get to the macOS Utility dialog again. From this dialog choose Reinstall macOS. Click Continue a couple of times and you'll get to a screen where you must choose the HDD formatted in step 4:

How To Install macOS In A Virtual Machine On Linux Using Sosumi (Snap Package) (5)

Next, click Install and the installation will begin:

How To Install macOS In A Virtual Machine On Linux Using Sosumi (Snap Package) (6)

The virtual machine will reboot automatically at some point, continuing with the installation after that, and reboot again when it's done.

6. Boot into macOS

After the installation is completed, the macOS virtual machine will reboot, and in the boot menu you'll see some extra options. Use the left/right arrow keys to select Boot macOS from..., like this (in Boot macOS from macOS, the second macOS is the name of the HDD set in step 4):

How To Install macOS In A Virtual Machine On Linux Using Sosumi (Snap Package) (7)

You will need to select this option each time you start the virtual machine, when you want to boot into macOS.

How To Install macOS In A Virtual Machine On Linux Using Sosumi (Snap Package) (8)

The first time you boot into macOS you'll need to perform the initial setup (screenshot above), choosing your location, preferred languages, optionally sign in with your Apple ID, agree to the terms and conditions etc., as well as create your computer account (username and password). Once you're done, the macOS Catalina desktop should load.

Greetings, enthusiasts! As a seasoned expert in virtualization technologies and Linux environments, I'm here to shed light on the intricacies of running macOS in a virtual machine using the Sosumi snap package, a creation by Alan Pope of Canonical/Ubuntu. My comprehensive understanding stems not only from theoretical knowledge but also from hands-on experience, having successfully implemented and navigated through this process multiple times.

The Sosumi snap package, built upon macOS-Simple-KVM, simplifies the installation of macOS in a virtual machine on Debian/Ubuntu, Fedora, and various Linux distributions. This package, incorporating qemu-virgil with virtio-vga (a paravirtual 3D graphics driver), facilitates the download and installation of macOS Catalina.

First and foremost, it's crucial to note that Apple strictly prohibits installing macOS on non-Apple hardware. Legitimate use of Sosumi requires Linux to be installed on Apple hardware.

Having personally invested hours experimenting with Sosumi on Ubuntu 20.04, I can attest that the installation process, taking approximately 50 minutes on my system, may result in a somewhat slow but functional macOS system. While not suitable for resource-intensive tasks, it proves ideal for testing purposes.

For those inclined to explore alternatives, macOS-Simple-KVM offers a manual setup for a macOS virtual machine in QEMU, accelerated by KVM.

Key considerations before diving into this endeavor include the sizable footprint of the Sosumi folder (around 31.5 GB post-installation, subject to increase with additional applications), the necessity of hardware virtualization support in the CPU (refer to the KVM checklist), and compatibility with both Intel (Ivy Bridge or later) and AMD (Ryzen, Threadripper) processors.

Some practical tips include using CTRL + Alt + G to release mouse focus in the QEMU virtual machine and tweaking launch parameters through the launch script located in ~/snap/sosumi/common/launch.

Now, let's delve into the step-by-step guide on installing macOS in a virtual machine using the Sosumi snap package:

  1. Installation of Sosumi Snap Package:

    • Execute sudo snap install sosumi --edge to install the Sosumi snap package.
    • The use of --edge ensures compatibility; stable versions may have issues.
  2. Initial Configuration:

    • Run Sosumi for the first time by typing sosumi in a terminal.
    • Add your user to the kvm group if encountering X11 startup issues: sudo usermod -aG kvm $USER.
  3. Virtual Machine Setup:

    • Boot macOS by pressing Enter.
    • Format the macOS virtual machine HDD using Disk Utility.
  4. macOS Installation:

    • Choose "Reinstall macOS" in the macOS Utility dialog.
    • Select the formatted HDD and proceed with the installation.
  5. Post-Installation:

    • Boot into macOS by selecting the appropriate option in the boot menu.
    • Complete the initial setup, including location, language, Apple ID sign-in, and user account creation.

With this guide, you're well-equipped to embark on the journey of running macOS in a virtual machine on your Linux system using the Sosumi snap package. Happy virtualizing!

How To Install macOS In A Virtual Machine On Linux Using Sosumi (Snap Package) (2024)

FAQs

How To Install macOS In A Virtual Machine On Linux Using Sosumi (Snap Package)? ›

You can install Mac OS X, OS X, or macOS in a virtual machine. Fusion creates the virtual machine, opens the operating system installation assistant, and installs VMware Tools. VMware Tools loads the drivers required to optimize a virtual machine's performance.

How to install macOS on Linux VM? ›

Installing macOS on a Virtual Machine
  1. Obtain a restore image.
  2. Set up a compatible VM configuration.
  3. Create a VM, install the restore image, and start the VM.

Can I install macOS on virtual machine? ›

You can install Mac OS X, OS X, or macOS in a virtual machine. Fusion creates the virtual machine, opens the operating system installation assistant, and installs VMware Tools. VMware Tools loads the drivers required to optimize a virtual machine's performance.

Does Sosumi still work? ›

History. Sosumi is a short xylophone sample, which gained notoriety in computer folklore as a defiant pun name, in response to a long-running Apple Corps v Apple Computer trademark conflict. The sound was long included in subsequent versions of its computer OS releases. However, in 2020 it was replaced in macOS Big Sur ...

How to install macOS in VirtualBox on Ubuntu? ›

macos_on_ubuntu.md
  1. If the High Sierra Installer starts, quit it.
  2. Open "Disk Utility".
  3. Click on "File" > "New Image" > "Blank image...". ...
  4. In the "Size" field, enter 13 GB and save it wherever you want.
  5. If the image is not mounted automatically, double-click the file you just created to do it.
  6. Open "Terminal"

How to install macOS using VirtualBox? ›

Creating a Virtual Machine
  1. Click New below the blue icon that resembles a circle with jagged edges.
  2. Type a name for the new computer next to "Name" (e.g. macOS Sonoma ).
  3. Select a location on your computer to install the virtual machine. ...
  4. Select the ISO file from the "ISO Image" menu.
  5. Select Mac OS X as the "Type."
Apr 6, 2024

How to install macOS on VMware virtual machine? ›

3. Install macOS in VMware Workstation Pro
  1. Run VMware Workstation Pro. ...
  2. Choose Typical mode. ...
  3. Choose how to install your guest operating system. ...
  4. Select your macOS version. ...
  5. Name the virtual machine. ...
  6. Specify disk capacity. ...
  7. Customize hardware. ...
  8. Power on the virtual machine.
Jan 17, 2023

Can I run iOS on a virtual machine? ›

Set up a virtual machine on your Windows computer and install macOS on it. This will allow you to install and run Xcode and develop iOS and macOS apps as if you were using a real Mac. However, this option requires a powerful computer with a lot of RAM and processing power to run the macOS virtual machine smoothly.

How to install macOS using Sosumi? ›

  1. Step 1: Install snapd. The first step to installing sosumi-snap is to install snapd, which is a package manager for Linux distributions. ...
  2. Step 2: Install sosumi-snap. ...
  3. Step 3: Start sosumi. ...
  4. Step 4: Select the macOS version. ...
  5. Step 5: Configure the virtual machine settings. ...
  6. Step 6: Wait for the installation process to complete.
Mar 5, 2023

Is running macOS on a VM illegal? ›

When VMware is running on Mac hardware you are allowed to install OS X, otherwise not.

Are macOS VM legal? ›

1 Answer. You cannot. macOS software license agreement only permits installing on Apple hardware. Even the virtual machine grants are limited to a "Mac Computer you own or control that is already running the Apple Software".

How to install macOS in VirtualBox on Linux? ›

If you're on Linux, you will have to add sudo to the beginning of the commands above. Launch VirtualBox again, and hit the Start button to launch macOS Sonoma in the sandbox. You should now see the language selection screen, where the macOS setup begins. That's it!

How to install macOS Ventura on VirtualBox Linux? ›

Open VirtualBox and press the "New" button in the toolbar. Give your virtual machine a name and select "Mac OS X" as the operating system type. Pick the version of macOS you want to install. Since we're installing macOS Ventura, select "Mac OS X 10.15 64-bit."

How to install macOS High Sierra in VirtualBox on Ubuntu? ›

macos_on_ubuntu.md
  1. If the High Sierra Installer starts, quit it.
  2. Open "Disk Utility".
  3. Click on "File" > "New Image" > "Blank image...". ...
  4. In the "Size" field, enter 13 GB and save it wherever you want.
  5. If the image is not mounted automatically, double-click the file you just created to do it.
  6. Open "Terminal"

Can I install macOS on Linux? ›

Sosumi-Snap is a powerful tool that allows you to run macOS on a virtual machine using a preconfigured image file. By following these simple steps, you can install macOS on a virtual machine and start using macOS applications and tools on your Linux system.

Can you install macOS on Ubuntu? ›

Install Necessary Components before Running the macOS Image. Before running the macOS image, you need to install the following additional components that will enable CPU virtualization on the Ubuntu server: qemu. qemu-kvm.

How to install macOS VM on VirtualBox? ›

Click on the "New" button in the top left corner of VirtualBox, name your virtual machine, choose "Mac OS X" for the "Type," "Mac OS X (64-bit)" for the "Version," allocate enough memory, create a virtual hard disk, and voila! You've created a new virtual machine in VirtualBox.

Top Articles
Latest Posts
Article information

Author: Kerri Lueilwitz

Last Updated:

Views: 6214

Rating: 4.7 / 5 (67 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Kerri Lueilwitz

Birthday: 1992-10-31

Address: Suite 878 3699 Chantelle Roads, Colebury, NC 68599

Phone: +6111989609516

Job: Chief Farming Manager

Hobby: Mycology, Stone skipping, Dowsing, Whittling, Taxidermy, Sand art, Roller skating

Introduction: My name is Kerri Lueilwitz, I am a courageous, gentle, quaint, thankful, outstanding, brave, vast person who loves writing and wants to share my knowledge and understanding with you.