
With the base image in place, you can now create the virtual disk image in which you will install macOS. The command, given below, downloads the macOS Catalina installation image./jumpstart Run the following script from within the macOS folder that will host your virtual machine. You will now create a virtual hard disk inside the macOS folder that you have recently renamed. mv ~/Downloads/macOS-Simple-KVM-master/ ~/KVM/macOS Creating a Virtual Disk You can now move the extracted folder from your Downloads folder, and rename it to macOS to have a shorter name to work with. To ease the management of virtual machines, you can create a folder in your home directory, which will house all virtual disks or other related content for your virtual machines. Creating a Folder for Your Virtual Machines The newly unzipped folder will have the name macOS-Simple-KVM-master. wget Įxtract the downloaded package using the unzip command-line utility as follows. Use the wget utility to download the macOS base image and other required tools.

To easily get started, this guide will use the macOS-Simple-KVM open-source project on GitHub to ease the management of the virtual machine.Ĭd to your /Downloads folder to make it your current working directory.

sudo apt-get install qemu-system qemu-utils python3 python3-pip Downloading the macOS Base Image and Scripts In addition, you will install some Python tools.

You can install it using the command below. This guide uses the QEMU/KVM, a lightweight emulator, and virtualizer for running virtual machines. If you’re using another Linux distro, I have provided a link on how to install QEMU/KVM at the bottom of this article. This guide will show you how to install macOS on Ubuntu Linux so that you can test and run your macOS native apps. Virtual machines provide you with the opportunity to run and test other operating systems without the need for extra hardware.
