foxlet / macOS-Simple-KVM

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

GPU is being passed through, but not being used by MacOS? #510

Open nmcain opened 2 years ago

nmcain commented 2 years ago

I have a GT710, that is recognized by High Sierra, but the system is not accelerating with it. I have installed the Web Driver and even enabled NVIDIA in Clover, but the Display 3MB is the only card being used. Is there any way to remove that display card? What is going on?

Screenshot-20210919132839-1263x706

Heres my current configuration, (headless mode)

#!/bin/bash

OSK="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VMDIR=$PWD
OVMF=$VMDIR/firmware

[[ -z "$MEM" ]] && {
        MEM="1G"
}

[[ -z "$CPUS" ]] && {
        CPUS=4
}

[[ -z "$SYSTEM_DISK" ]] && {
    echo "Please set the SYSTEM_DISK environment variable"
    exit 1
}

[[ -r "$SYSTEM_DISK" ]] || {
    echo "Can't read system disk image: $SYSTEM_DISK"
    exit 1
}

MOREARGS=()

[[ "$HEADLESS" = "1" ]] && {
    MOREARGS+=(-nographic -vnc :0 -k en-us)
}
qemu-system-x86_64 \
    -enable-kvm \
    -m $MEM \
    -machine q35,accel=kvm \
    -smp $CPUS \
    -cpu Penryn,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+i>
    -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 none \
-device pcie-root-port,bus=pcie.0,multifunction=on,port=1,chassis=1,id=port.1 \
    -device vfio-pci,host=82:00.0,bus=port.1,multifunction=on\
    -device vfio-pci,host=82:00.1,bus=port.1 \
    -usb -device usb-kbd -device usb-tablet \
    -netdev user,id=net0 \
    -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:0e:0d:20 \
    -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="${SYSTEM_DISK}" \
    -device ide-hd,bus=sata.4,drive=SystemDisk \
    "${MOREARGS[@]}"

image

Masamune3210 commented 2 years ago

Is the 710 even supported still in High Sierra? That card is pretty old

nmcain commented 2 years ago

According to various sources, the 710 is supported even under Big Sur for some reason

On Sun, Sep 19, 2021, 6:47 PM Masamune3210 @.***> wrote:

Is the 710 even supported still in High Sierra? That card is pretty old

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/foxlet/macOS-Simple-KVM/issues/510#issuecomment-922590672, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEOTEHHFY2IN6V35EYNOEZTUC2HBZANCNFSM5EKWGONA .

msonowal commented 2 years ago

I also have a gt 710 waiting for your update then I will proceed

tarbaII commented 2 years ago

@Masamune3210 Kepler-based cards (like the GT 710) are supported up to macOS Monterey beta 6.

tarbaII commented 2 years ago

@nmcain Web drivers are only needed for Pascal and Maxwell cards, Kepler cards should work out of the box, try uninstalling them.