knazarov / homebrew-qemu-virgl

A homebrew tap for qemu with support for 3d accelerated guests
420 stars 68 forks source link

Invalid accelerator hvf #63

Open LukasM937 opened 2 years ago

LukasM937 commented 2 years ago

Hey people, tried your "script" from the start for x86

qemu-system-x86_64 \
         -machine accel=hvf \
         -cpu Haswell-v4 -smp 2 -m 4G \
         -device intel-hda -device hda-output \
         -device qemu-xhci \
         -device virtio-vga \   
         -device usb-kbd \
         -device virtio-net-pci,netdev=net \
         -device virtio-mouse-pci \
         -display cocoa,gl=off \
         -netdev user,id=net,ipv6=off \
         -drive "if=virtio,format=raw,file=ubuntu.raw,discard=on" \
         -cdrom ubuntu-20.04.3-live-server-amd64.iso \
         -boot d

It states "qemu-system-x86_64: invalid accelerator hvf"

I used ubuntu-server as iso but it was the same for fedora.

My qemu version is 6.1.0.

At the start I had issues with open GL and followed the advises from here: https://github.com/knazarov/homebrew-qemu-virgl/issues/39

Maybe you could help me there..

If this is relevant, I use a M1Pro processor but I need to emulate an x86 System...

LukasM937 commented 2 years ago

Note, I have changed the subject, and main post, since the original issue (that OpenGL is disabled where addressed via other posts

smerrill commented 2 years ago

You can't use Hypervisor.framework to virtualize different architectures (aarch64 host and x86_64 guest) - you will have to emulate by removing that parameter.