mirror of
https://github.com/foxlet/macOS-Simple-KVM.git
synced 2024-11-30 06:59:42 +01:00
simplify instructions with basic.sh
This commit is contained in:
parent
6ff1d948cf
commit
3413bce435
2 changed files with 3 additions and 5 deletions
|
@ -28,12 +28,8 @@ Create an empty hard disk using `qemu-img`, changing the name and size to prefer
|
||||||
```
|
```
|
||||||
qemu-img create -f qcow2 MyDisk.qcow2 64G
|
qemu-img create -f qcow2 MyDisk.qcow2 64G
|
||||||
```
|
```
|
||||||
|
> Note: If you use a name other than MyDisk.qcow2, you will need to update `basic.sh` (e.g. `sed -i 's/MyDisk.qcow2/Master.qcow2/' basic.sh`)
|
||||||
|
|
||||||
and add it to the end of `basic.sh`:
|
|
||||||
```
|
|
||||||
-drive id=SystemDisk,if=none,file=MyDisk.qcow2 \
|
|
||||||
-device ide-hd,bus=sata.4,drive=SystemDisk \
|
|
||||||
```
|
|
||||||
> 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.
|
> 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 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!
|
||||||
|
|
2
basic.sh
2
basic.sh
|
@ -26,3 +26,5 @@ qemu-system-x86_64 \
|
||||||
-device ide-hd,bus=sata.2,drive=ESP \
|
-device ide-hd,bus=sata.2,drive=ESP \
|
||||||
-drive id=InstallMedia,format=raw,if=none,file=BaseSystem.img \
|
-drive id=InstallMedia,format=raw,if=none,file=BaseSystem.img \
|
||||||
-device ide-hd,bus=sata.3,drive=InstallMedia \
|
-device ide-hd,bus=sata.3,drive=InstallMedia \
|
||||||
|
-drive id=SystemDisk,if=none,file=MyDisk.qcow2 \
|
||||||
|
-device ide-hd,bus=sata.4,drive=SystemDisk \
|
||||||
|
|
Loading…
Reference in a new issue