1
0
Fork 0
mirror of https://github.com/foxlet/macOS-Simple-KVM.git synced 2024-11-23 03:29:41 +01:00

Update README.md

This commit is contained in:
Eren Erturk 2023-06-27 15:43:21 +07:00 committed by GitHub
parent 527588d5a2
commit efbd8b6078
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,13 +18,19 @@ sudo emerge -a qemu python:3.4 pip # for Gentoo
``` ```
## Step 1 ## 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: 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 ./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. > 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: Create an empty hard disk using `qemu-img`, changing the name and size to preference:
``` ```
qemu-img create -f qcow2 MyDisk.qcow2 64G 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! 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`. 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. 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. 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 HEADLESS=1 MEM=1G CPUS=2 SYSTEM_DISK=MyDisk.qcow2 ./headless.sh