Howto macOS ventura kvm: Difference between revisions

From Vidalinux Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
create qemu hard drive for osx installation:
create qemu hard drive for osx installation:
  qemu-img create -f qcow2 mac_hdd_ng.img 128G
  qemu-img create -f qcow2 mac_hdd_ng.img 128G
edit OpenCore-Boot.sh and change the following:
edit OpenCore-Boot.sh and change OVMF_VARS.fd archive:
# change OVMF_VARS.fd archive:
  -drive if=pflash,format=raw,file="$REPO_PATH/$OVMF_DIR/OVMF_VARS.fd"
  -drive if=pflash,format=raw,file="$REPO_PATH/$OVMF_DIR/OVMF_VARS.fd"
# change sata for virtio in the following line:
edit OpenCore-Boot.sh and change sata for virtio in the following line:
  -drive id=MacHDD,if=none,file="$REPO_PATH/mac_hdd_ng.img",if=virtio,format=qcow2
  -drive id=MacHDD,if=none,file="$REPO_PATH/mac_hdd_ng.img",if=virtio,format=qcow2

Revision as of 20:15, 23 January 2023

install packages:

pacman -S git virt-manager dmg2img base-devel --noconfirm

download osx-kvm git repo:

git clone --depth 1 --recursive https://github.com/kholia/OSX-KVM.git

fetch osx ventura baseimg:

cd OSX-KVM
./fetch-macOS-v2.py

select number six to download ventura:

1. High Sierra (10.13)
2. Mojave (10.14)
3. Catalina (10.15)
4. Big Sur (11.7) - RECOMMENDED
5. Monterey (12.6)
6. Ventura (13)

convert basesystem dmg to img:

dmg2img -i BaseSystem.dmg BaseSystem.img

create qemu hard drive for osx installation:

qemu-img create -f qcow2 mac_hdd_ng.img 128G

edit OpenCore-Boot.sh and change OVMF_VARS.fd archive:

-drive if=pflash,format=raw,file="$REPO_PATH/$OVMF_DIR/OVMF_VARS.fd"

edit OpenCore-Boot.sh and change sata for virtio in the following line:

-drive id=MacHDD,if=none,file="$REPO_PATH/mac_hdd_ng.img",if=virtio,format=qcow2