From efbd8b6078876a93f140de45af167a84c5b72615 Mon Sep 17 00:00:00 2001 From: Eren Erturk <61586104+erenerturk1@users.noreply.github.com> Date: Tue, 27 Jun 2023 15:43:21 +0700 Subject: [PATCH] Update README.md --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index aee29a5..fd72b7f 100644 --- a/README.md +++ b/README.md @@ -18,13 +18,19 @@ sudo emerge -a qemu python:3.4 pip # for Gentoo ``` ## Step 1 +Clone this repo. +``` +git clone https://github.com/foxlet/macOS-Simple-KVM +``` + +## Step 2 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: ``` ./jumpstart.sh --mojave ``` > 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. -## Step 2 +## Step 3 Create an empty hard disk using `qemu-img`, changing the name and size to preference: ``` qemu-img create -f qcow2 MyDisk.qcow2 64G @@ -39,11 +45,11 @@ and add it to the end of `basic.sh`: Then run `basic.sh` to start the machine and install macOS. Remember to partition in Disk Utility first! -## Step 2a (Virtual Machine Manager) +## Step 3a (Virtual Machine Manager) 1. If instead of QEMU, you'd like to import the setup into Virt-Manager for further configuration, just run `sudo ./make.sh --add`. 2. After running the above command, add `MyDisk.qcow2` as storage in the properties of the newly added entry for VM. -## Step 2b (Headless Systems) +## Step 3b (Headless Systems) If you're using a cloud-based/headless system, you can use `headless.sh` to set up a quick VNC instance. Settings are defined through variables as seen in the following example. VNC will start on port `5900` by default. ``` HEADLESS=1 MEM=1G CPUS=2 SYSTEM_DISK=MyDisk.qcow2 ./headless.sh