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:
parent
527588d5a2
commit
efbd8b6078
1 changed files with 9 additions and 3 deletions
12
README.md
12
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
|
||||
|
|
Loading…
Reference in a new issue