Skip to content

Commit

Permalink
OSX-KVM - November 2021 Batch Update kholia#1
Browse files Browse the repository at this point in the history
Changes:

- Fixed `mac_hdd_ng.img` name in docs (jturnism)

- Remove `startup.nsh` stuff
  • Loading branch information
kholia committed Nov 17, 2021
1 parent 9e23a98 commit 0bfa025
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,6 @@

- https://github.com/thiagokokada - Makefile to improve usability

- https://github.com/jturnism - doc fixes

Note: Individual files have more specific 'credits' in them.
Binary file modified OpenCore/OpenCore.qcow2
Binary file not shown.
3 changes: 0 additions & 3 deletions OpenCore/opencore-image-ng.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ fish copy-in $WORK/EFI/OC/ACPI /ESP/EFI/OC/
fish copy-in $BASE/../resources/OcBinaryData/Resources /ESP/EFI/OC/
fish copy-in $WORK/EFI/OC/Tools /ESP/EFI/OC/

# Note
fish copy-in startup.nsh /

BASE="$(dirname $0)"
fish copy-in "$WORK/config.plist" /ESP/EFI/OC/

Expand Down
1 change: 0 additions & 1 deletion OpenCore/startup.nsh

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Phenom II X3 720 does not. Ryzen processors work just fine.
To make this change permanent, you may use the following command.

```
sudo cp kvm.conf /etc/modprobe.d/kvm.conf # for intel boxes only
sudo cp kvm.conf /etc/modprobe.d/kvm.conf # for intel boxes only, after cloning the repo below
```

* Install QEMU and other packages.
Expand Down Expand Up @@ -142,7 +142,7 @@ Phenom II X3 720 does not. Ryzen processors work just fine.
```

* Create a virtual HDD image where macOS will be installed. If you change the
name of the disk image from `mac_hdd.img` to something else, the boot scripts
name of the disk image from `mac_hdd_ng.img` to something else, the boot scripts
will need to be updated to point to the new image name.

```
Expand Down
4 changes: 4 additions & 0 deletions References.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@
* https://github.com/ofawx/VmAssetCacheEnable

* https://dortania.github.io/OpenCore-Install-Guide/troubleshooting/extended/post-issues.html

- https://wiki.archlinux.org/title/QEMU#UNIX_socket

- https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF#USB_controller
1 change: 1 addition & 0 deletions boot-passthrough.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ args=(
# 01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] [1002:aaf0]
# Subsystem: Sapphire Technology Limited Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] [1da2:aaf0]
-device vfio-pci,host=01:00.0,multifunction=on
# -device vfio-pci,host=01:00.0,multifunction=on,romfile=gpu_original_bios.bin
-device vfio-pci,host=01:00.1
# ASMedia ASM1142 USB 3.1 Host Controller (comment out as needed)
# 03:00.0 USB controller [0c03]: ASMedia Technology Inc. ASM1142 USB 3.1 Host Controller [1b21:1242]
Expand Down
24 changes: 21 additions & 3 deletions notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,17 @@ AMD RX 570 GPU (May 2021).
* To reuse the keyboard and mouse devices from the host, setup "Automatic
login" in System Preferences in macOS and configure Synergy software.

Note: On `Pop!_OS`, use the `kernelstub` command to change the kernel boot
arguments.

Note 2: Use [AMD VBFlash](https://www.techpowerup.com/download/ati-atiflash/)
to dump the AMD GPU bios, and pass on to QEMU. This is especially required if
your AMD GPU is not starting up properly (resulting in "no signal" on the
monitor).

Tested GPUs: ZOTAC GeForce GT 710 DDR3 (<= Big Sur), Sapphire Radeon RX 570.


UPDATE: Project sponsors get access to the `Private OSX-KVM repository`, and
direct support. This private repository has a playbook to automate 95% of this
work in a rugged, consistent manner.
Expand Down Expand Up @@ -239,16 +250,23 @@ These steps will need to be adapted for your particular setup.

### Virtual Sound Device

*Warning: The OpenCore distribution that comes with OSX-KVM already has
`VoodooHDA OC`. Do NOT mix VoodooHDA with AppleALC. You may want to consider
HDA passthrough if it is practical or use HDMI audio instead*
https://github.com/chris1111/VoodooHDA-OC

This kext can be used on macOS 10.12 to macOS Big Sur 11.2 to get emulated
sound card working. Do NOT mix VoodooHDA with AppleALC. You may want to
consider HDA passthrough or USB sound card passthrough or use HDMI audio
instead.

Note: The emulated sound output can be choppy, and distorted. Use Sound Card /
USB Sound Card passthrough instead.

Note: It seems that playback of Flash videos requires an audio device to be
present.

![USB Sound Card](./screenshots/QHM623_USB_Sound_Card_1.jpg)

This cheap(est) USB sound card works pretty well on macOS.


### Building QEMU from source

Expand Down
Binary file added screenshots/QHM623_USB_Sound_Card_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0bfa025

Please sign in to comment.