foxlet / macOS-Simple-KVM

Tools to set up a quick macOS VM in QEMU, accelerated by KVM.
13.61k stars 1.14k forks source link

trying to run it on macos catalina qemu and stuck at AMF: Only 247/256 slide values are usable! #420

Open jacekkowalczyk82 opened 3 years ago

jacekkowalczyk82 commented 3 years ago

I am trying to create the VM using macos host. I did some small modifications in shell scripts and managed to boot VM but it got stuck at

image

my modified basic.sh script šŸ‘

#!/bin/bash

OSK="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VMDIR=$PWD
OVMF=$VMDIR/firmware
#export QEMU_AUDIO_DRV=pa
#QEMU_AUDIO_DRV=pa

qemu-system-x86_64 \
    -m 4G \
    -machine q35,accel=hvf \
    -smp 4,cores=2 \
    -cpu Nehalem \
    -device isa-applesmc,osk="$OSK" \
    -smbios type=2 \
    -drive if=pflash,format=raw,readonly,file="$OVMF/OVMF_CODE.fd" \
    -drive if=pflash,format=raw,file="$OVMF/OVMF_VARS-1024x768.fd" \
    -vga virtio \
    -device ich9-intel-hda -device hda-output \
    -usb  \
    -netdev user,id=net0 \
    -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:c9:18:27 \
    -device ich9-ahci,id=sata \
    -drive id=ESP,if=none,format=qcow2,file=ESP.qcow2 \
    -device ide-hd,bus=sata.2,drive=ESP \
    -drive id=InstallMedia,format=raw,if=none,file=BaseSystem.img \
    -device ide-hd,bus=sata.3,drive=InstallMedia \
    -drive id=SystemDisk,if=none,file=macos-catalina.qcow2 \
    -device ide-hd,bus=sata.4,drive=SystemDisk \
Rhackam commented 3 years ago

Hello, get same problem. I run this under a Ubuntu server 20.04 (without graphic). I tried to run the vm with the Step 2 and Step 2b, nothing better. the vm is running i get the same "247/256 usable slides" of the UEFI shell procedure but I don't have any prompt I can't type anything. I have to ctrl alt supp reboot to return on the main system. On google I found similar resolved problem but they were running the VM with VirtualBox and get a prompt into the UEFI shell.

radiden commented 3 years ago

I fixed this in virt-manager by setting the CPU cores to 4 (I increased them to 6).

izzetemredemir commented 3 years ago

I faced the same problem, I was changed CPU cores, after giving CPU parameters as a default problem is solved. smp 4,cores=2 \