Run macOS on Linux with 1 COMMAND

Run macOS on Linux with 1 COMMAND

Subscribers:
390,000
Published on ● Video Link: https://www.youtube.com/watch?v=6WgjQpm9VWE



Duration: 12:54
464,474 views
16,197


Get your free proof of concept for TuxCare: https://www.tuxcare.com

Most of you probably know that you can only run macOS on hardware that Apple sells, at least if you're not willing to go the hackintosh route, which can be painful and complex. Still, some of us might want, or need to test stuff out on Apple's operating system, fortunately, there is now a simple solution to do just that, with just one command line.

Become a channel member to get access to a weekly patroncast and vote on the next topics I'll cover:
https://www.youtube.com/channel/UC5UAwBUum7CPN5buc-_N1Fw/join

Support the channel on Patreon:
https://www.patreon.com/thelinuxexperiment

Follow me on Twitter : http://twitter.com/thelinuxEXP

My Gaming on Linux Channel: https://www.youtube.com/channel/UCaw_Lz7oifDb-PZCAcZ07kw

Follow me on ODYSEE: https://odysee.com/@TheLinuxExperiment:e
Or join ODYSEE: https://odysee.com/$/invite/@TheLinuxExperiment:e

The Linux Experiment merch: get your goodies there! https://teespring.com/en-GB/stores/the-linux-experiment


Link to SOSUMI: https://snapcraft.io/install/sosumi/ubuntu
How to install snap: https://snapcraft.io/docs/installing-snapd
Mac OS Simple KVM: https://github.com/foxlet/macOS-Simple-KVM

Sosumi is a SNAP package that lets you install a Qemu virtual machine running Mac OS Catalina. It's nothing you couldn't do on your own with a bit more time, but this snap package has the advantage of being just one command line away, and taking care of all the setup for you.

Now be warned that Apple's End User Licence Agreement doesn't allow to run Mac OS in a VM on hardware that isn't made by Apple, so do this at your own risk!

As always with virtual machines, you need to ensure that your CPU supports virtualization in the BIOS.

Once you're all set, you just open a terminal window, and run this command:

sudo snap install sosumi

Let the installation run its course, and you should get a menu entry called, you guessed it, SOSUMI.

Run that to initialize the VM. You should get a terminal window which shows you the download progress for the system image that will let you install macOS.

Click inside the window to focus is, and then press enter to start the installer.
After a while, you should end up in the installer window for Mac OS.

To begin with, you'll have to format the virtual disk that the VM has created for you. Double click on "disk utility", and select the disk called "Apple Inc. VirtIO Block media", with a size of 68Gb.

Then, click on "Erase", and select the format you'd prefer using, I used APFS, as that's the most recent Apple Filesystem, but it will work fine if you use Mac OS Extended.
Click the "Erase" button.

The operation should be pretty fast, and you can then close the disk utility window, and start the installer by double clicking on "Reinstall macOS".

Once the installation is complete, your VM will reboot and let you complete the first-run setup. You'll end up in Clover again.
One last reboot, and you'll be able to select the "Boot mac OS frm Mac HD" option in Clover, the last option on the right.

Once the boot process is complete, you'll have to sift through a few settings screen, and log in using an Apple ID, or create one if you don't already have one.

Close the VM by shutting it down, and open your file manager. Snaps create a folder in your /home directory, to store everything, so head over there, and go to Sosumi, then Common.

Here, you'll find a file called "launch".
First, make a copy, in case something goes wrong, so you can restore the previous version, open the file with your text editor of choice.

In this file, you'll see all the parameters for the Qemu virtual machine.

-m defines the memory usage of the VM, in gigabytes. By default, it's 2, but as I have 32Gb on my device, I'll put 16 in there.

Now, for the window resolution, it's a bit more involved.

Type diskutil list

Grab the identifier for the disk that reads EFI, it should be the same as mine, disk2s1.

Then type
sudo diskutil mount disk2s1

or replace disk2s1 by the correct identifier for your EFI disk.

Now open the Finder, and go to the EFI disk in the sidebar. Open the CLOVER folder, and ediut the config.plist file, using textedit.

Here, you'll find a line that reads screenresolution. Change the default of 1280x720 by what you want to use, in my case, 1920x1080. Save the file.

Now, shut down the VM, and restart it.
Right when you see the terminal window open, hit "escape". You'll see an interface that looks like a BIOS. Select device manager, OVMF Platform Configuration and then "change preferred".

Press the F10 key to save, and then escape until you get back to the main menu, where you'll then select "Continue".

You can also change the CPU core count affected to the VM. By default, you'll get 4 threads for 2 cores, listed in the line "-smp 4,cores=2".
You can change that by putting another number.




Other Videos By The Linux Experiment


2021-06-12Think XFCE looks bad? Think again! - XFCE Customization
2021-06-09KDE Plasma 5.22 - Wayland users are going to be pleased
2021-06-04This thing runs OFFICE and ADOBE APPS like they were NATIVE?
2021-06-01Linux powered Steam handheld, Linux apps on Chrome OS, and then end of GLIMPSE - Linux News May 2021
2021-05-29The BEST Linux distributions for switching from Windows to Linux
2021-05-26XFCE Default apps - How is everything so FAST?
2021-05-23First experience with XFCE - An Air of Nostalgia
2021-05-20FINALLY an affordable LINUX LAPTOP? - Slimbook Essential 14
2021-05-17Audacity backs down on telemetry, System76's mechanical keyboard, elementary OS 6 beta - Linux News
2021-05-15Ubuntu Touch on the Pinephone - is this the best Linux mobile interface?
2021-05-12Run macOS on Linux with 1 COMMAND
2021-05-06If only I needed a new laptop... KDE Slimbook Review
2021-05-01THIS TABLET RUNS LINUX?! Microsoft Won't buy Discord, and GUI Linux apps on Windows - Linux News
2021-04-28The Ultimate DEGOOGLED ANDROID ROM, now even BETTER!
2021-04-22Ubuntu 21.04: Yes, there ARE new features - Review + variants
2021-04-20These guys made me a CUSTOM gaming laptop, running LINUX!
2021-04-16System76 starts their own desktop environment, Arch goes the easy route - Linux & Open Source news
2021-04-13This LINUX DESKTOP is a MONSTER - Slimbook Kymera review
2021-04-10I've used KDE exclusively for a month, here's my opinion - KDE Plasma Review
2021-04-08REPLACING CENTOS - Everything you wanted to know about ALMA LINUX - Interview with Jack Aboutboul
2021-04-03What I use, where I live, and Q&A - 100K Subscriber Special



Tags:
linux
elementary os
open source
distribution
linux distro
linux help
linux 2021
macos virtual machine
run macos in a vm
macos virtualization
macos virtual machine on linux
sosumi
simple kvm mac os
run macos with qemu
macos qemu virtual machine
how to run a mac os virtual machine
mac os x vm
mac os x
mac os x virtualization
mac os x virtual machine
how to mac os vm
how to macos virtual machine
mac os x quemu
mac os kvm
mcos kvm
kvm
qemu
mac os x qemu