Macos Vm On Linux



We love Linux, we love Open Source, we avoid all the stress caused by macOS or Windows. However, there will come a time when you need to use software for work and that software runs only on macOS or on Windows. If for Windows we don’t have big problems and we can find solutions in all the sauces, macOS things get a little complicated.

LBRY and Support Me: https://lbry.tv/$/invite/@LinuxLounge:b. Insert sierra.iso to the sierra VM’s optical driver, and follow the instruction to install Sierra. Note: In the installer, Go to Utilities Disk Utility. Select the VirtualBox disk and choose Erase to format it as a Mac OS Extended (Journaled) drive. Step 7: Remove sierra.iso and restart VM. See also: macOS VirtualBox VM Instructions. Hi, is it possible to run MAC Os in VMWare that runs on Linux? Searching for this i read a remark that somewhere there is a patch available that makes MAC Os install on non-MAC hardware, is that right? Regards, Torsten.

When the friend you forced to switch to Linux a while ago comes to you and asks you how to use Adobe’s corporate macOS suite on his PC, what do you do?

Some time ago it would have been very complicated and you would have convinced him to use a Windows VM to take advantage of the Adobe suite, but today things have changed.

A simple macOS VM in QEMU, accelerated by KVM

Obviously we are talking about a simple procedure that implies the use of huge hardware resources: already a Mac in itself uses powerful hardware let alone virtualize it what computing power we need. Nothing transcendental since today’s computers are thousands of times as powerful as Apollo 11 on the Moon, so let’s not worry too much.

As we said, there is a minimum CPU requirement for macOS itself: both Intel and AMD CPUs are supported, but the recommendations are Ivy Bridge (or later) Core and Xeon processors, or AMD Ryzen, AMD Threadripper, and AMD Epyc processors. You also need some disk space and the bare minimum virtual disk size would be around 20GB, but you’ll find it hard to get any apps installed. Adobe Photoshop Elements 2020, one of the most simple Adobe applications, needs 6.5GB of available hard-disk space to install and additional 2.5GB to download all optional content. So, take a look at the space you need.

You’ll need a Linux system with QEMU, python3, pip, and the KVM modules enabled. A Mac is not required.

sudo dnf install qemu qemu-img python3 python3-pip # for Fedora

Gibmacos linux

sudo zypper in qemu-tools qemu-kvm qemu-x86 qemu-audio-pa python3-pip # for openSUSE

sudo apt-get install qemu-system qemu-utils python3 python3-pip # for Ubuntu

Virtual kvm mac

Run jumpstart.sh to download installation media for macOS (internet required). The default installation uses Catalina, but you can choose which version to get by adding either --high-sierra, --mojave, or --catalina. For example:

Note: You can skip this if you already have BaseSystem.img downloaded. If you have BaseSystem.dmg, you will need to convert it with the dmg2img tool.

Create an empty hard disk using qemu-img, changing the name and size to preference:

and add it to the end of basic.sh:

Note: If you’re running on a headless system (such as on Cloud providers), you will need -nographic and -vnc :0 -k en-us for VNC support.

Then run basic.sh to start the machine, first, use Disk Utility to partition the virtual disk and then install macOS.

To fine-tune the system and improve performance, look in the docs folder for more information on adding memory, setting up bridged networking, adding passthrough hardware (for GPUs), tweaking screen resolution, and enabling sound features.

For all the additional info, for the solved and opened issues and to contribute to the project, you can find all at the GitHub page: https://github.com/foxlet/macOS-Simple-KVM/.

Also, if you like simple things and SNAP, you can also use SOSUMI, the snap version of this package. Just launch SOSUMI from the terminal to monitor the initial launch setup (subsequent launches can be done via the desktop icon) and this will boot to the macOS recovery system. It’s available on snapcraft.io (https://snapcraft.io/sosumi) snap archive.

A quick tutorial on how set up a simple macOS VM in QEMU, accelerated by KVM. Jump over the break to learn more…

WHAT IS KVM?

Kernel-based Virtual Machine (KVM) is a virtualization module in the Linux kernel that allows the kernel to function as a hypervisor.

KVM converts Linux into a type-1 (bare-metal) hypervisor and requires a processor with hardware virtualization extensions, such as Intel VT or AMD-V.

More info.

  • ALSO READHOW TO: Dual Boot macOS and Linux
  • ALSO READHOW TO: Install macOS Catalina in a Docker Container on Linux
  • ALSO READHOW TO: Install macOS Big Sur With OpenCore on Linux

DEPENDENCIES

  • Qemu 3.1 or later
  • python3
  • pip
  • KVM modules enabled
  • A Mac computer is NOT required

INSTALL

Mac Os On Linux

1. Install dependencies. You might also want to install git (not shown in the screenshot ). Depending on your distro:

  • For Ubuntu, Debian, Mint, and PopOS: sudo apt-get install qemu-system qemu-utils python3 python3-pip
  • For Arch and Arch based distros: sudo pacman -S qemu python python-pip
  • For Void: sudo xbps-install -Su qemu python3 python3-pip
  • For openSUSE Tumbleweed: sudo zypper in qemu-tools qemu-kvm qemu-x86 qemu-audio-pa python3-pip
  • For Fedora: sudo dnf install qemu qemu-img python3 python3-pip

2. Clone this git https://github.com/foxlet/macOS-Simple-KVM.git and cd to path.

3. Run jumpstart.sh to download installation media for macOS (internet connection required). The default installation uses macOS Catalina, but you can choose which version to get by adding either --high-sierra, --mojave, or --catalina. For example: ./jumpstart.sh --mojave

4. Create an empty hard disk using qemu-img, changing the name and size to preference: qemu-img create -f qcow2 MyDisk.qcow2 64G

NOTE: Change “MyDisk” to your preffered disk name. Change “64G” to your prefered disk size ( min. 20G )

5. Edit basic.sh with sudo nano basic.sh and add this at the end:

-drive id=SystemDisk,if=none,file=MyDisk.qcow2
-device ide-hd,bus=sata.4,drive=SystemDisk

Macos Vm On Linux

Save the changes and exit.

NOTE: change “MyDisk” to your disk name set in previous step.

6. Run ./basic.sh

7. Boot into macOS Catalina Installer

Install Mac Apps On Linux

Linux

8. Go to “Disk Utility” and format your disk

9. Once your disk is ready, you can install macOS Catalina. From now on, it’s your typical macOS install. No extra steps required.

10. You’re done! To fine-tune the system and improve performance, look in the docs folder for more information on adding memory, setting up bridged networking, adding passthrough hardware (for GPUs), tweaking screen resolution, and enabling sound features. For further support, check out the official github page.