Welcome to AMD OS X

Why not register now to gain full access.

#45335
This does not happen with using vnc graphics. With vnc graphics, the nice gray Clover screen pops up and I can start the installer but the screen then becomes far too garbled to be usable as soon as it gets larger.
BUT when I pass through my RX560 graphics card, I don't even get to Clover.

Instead my monitor displays and freezes
APFSStart:1454: Mounting with apfs_efi_osx-748.41.3
efi_container_create:1077: -efi_container_create, Status=8000000000000007

In addition, my mouse cursor doesn't move, neither through vnc or spice, but I presume it'll work when the system is actually installed? idk.

This is my bash script:
Code: Select all
read -r -d '' GLASS <<'EOF'
-spice unix,addr=/tmp/looking-glass.socket,disable-ticketing
-device ivshmem-plain,memdev=ivshmem
-object memory-backend-file,id=ivshmem,share=on,mem-path=/dev/shm/looking-glass,size=32M
EOF

read -r -d '' VGA <<'EOF'
-device ioh3420,bus=pcie.0,addr=1c,multifunction=on,port=1,chassis=1,id=root.1
-device vfio-pci,host=2f:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on
-device vfio-pci,host=2f:00.1,bus=root.1,addr=00.1
EOF

read -r -d '' CIRRUS <<'EOF'
-device VGA,vgamem_mb=64
-vnc 127.0.0.1:0
EOF

sudo touch /dev/shm/looking-glass
sudo chmod 777 /dev/shm/looking-glass
sudo touch /tmp/looking-glass.socket
sudo chmod 777 /tmp/looking-glass.socket

sudo qemu-system-x86_64 \
  -enable-kvm \
  -cpu qemu64 \
  -smp 8,threads=2 \
  -M pc-q35-2.9 \
  -m 4G \
  -drive if=pflash,format=raw,unit=0,file=/home/tux/src/1git/macos-kvm-pci-passthrough/OVMF_CODE.fd,readonly=on \
  -drive if=pflash,format=raw,file=/home/tux/src/1git/macos-kvm-pci-passthrough/OVMF_VARS.fd  \
  -boot menu=on,splash=/home/tux/vms/splash/boot.jpg,splash-time=5000 \
  -device ahci \
  -usb \
  -device usb-kbd \
  -device usb-tablet \
  -device e1000-82545em,netdev=n1,mac=52:54:00:12:34:56 \
  -netdev user,id=n1 \
  -device 'isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc' \
  -device ich9-intel-hda \
  -device hda-micro \
  -smbios type=2 \
  -rtc base=utc \
  -uuid f5b8c05b-9c7a-3211-49b9-2bd635f7e3aa \
  -name macos \
  -drive if=ide,file=/home/tux/vms/vm/macos/disk.img,media=disk \
  -drive if=ide,file=/home/tux/vms/img/mac-install.qcow2,media=disk \
  $GLASS $VGA
Spoiler:
When passing through the vga card I can control the mouse with
Code: Select all
sudo chmod 777 /tmp/looking-glass.socket ; touch /dev/shm/looking-glass ; looking-glass-client -p 0 -c /tmp/looking-glass.socket -a -o opengl:amdPinnedMem=0 -d -x 0 -y 0
in another terminal, not that it matters.
tldr when I replace $VGA with $CIRRUS, I get further but the display is unintelligible instead. Using a real display fixes the distortion but of course that's because it doesn't boot.

What am I missing?

EDIT: fixed it, had to press enter at the blank screen. I can't see clover at all but I can run whatever the default is. And the mouse works as soon as I get to macOS Utilities.
Post Merged
So after a lot of twiddling around, today I discovered via an efi shell that QEMU had automatically inserted an emulated vga card at pci slot 01:00
Adding `-vga none` to the qemu commandline fixes this issue.
Also I'm no longer using a bash script, I rewrote the thing in python so I can launch looking-glass automatically. Not that that matters. I can post it at request if anyone wants it.

 Advertising

How to force install 10.14.1?

The Vanilla patch made updating so easy. No more r[…]

The guide worked perfectly for me. Thanks. Specs[…]

try this https://www.youtube.com/watch?v=Y9I-OINW[…]

I have same cpu, any tips appreciated. Firm inte[…]