knazarov / homebrew-qemu-virgl

A homebrew tap for qemu with support for 3d accelerated guests
414 stars 67 forks source link

Host doesn't support requested feature #59

Closed asdfghjkl403622 closed 2 years ago

asdfghjkl403622 commented 2 years ago

qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.invpcid [bit 10] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EDX.spec-ctrl [bit 26] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:EDX.rdtscp [bit 27] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.x2apic [bit 21] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.tsc-deadline [bit 24] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.invpcid [bit 10] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EDX.spec-ctrl [bit 26] qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:EDX.rdtscp [bit 27] Couldn't open libEGL.dylib: dlopen(libEGL.dylib, 5): image not found zsh: abort qemu-system-x86_64 -machine accel=hvf -cpu Haswell-v4 -smp 2 -m 4G -device

DUOLabs333 commented 2 years ago

Try -M virt,accel=hvf,highmem=off -cpu cortex-a57

asdfghjkl403622 commented 2 years ago

qemu-system-x86_64: unsupported machine type

DUOLabs333 commented 2 years ago

Have you tried removing the cpu and machine type? Is there a reason why it has to be Haswell?

asdfghjkl403622 commented 2 years ago

it's just the default, I don't know, I'll try it without identifying it

asdfghjkl403622 commented 2 years ago

`qemu-system-x86_64 \ -device intel-hda -device hda-output \ -device qemu-xhci \ -device virtio-vga-gl \ -device usb-kbd \ -device virtio-net-pci,netdev=net \ -device virtio-mouse-pci \ -display cocoa,gl=es \ -netdev user,id=net,ipv6=off \ -drive "if=virtio,format=raw,file=hdd.raw,discard=on" \ -cdrom Fedora-Workstation-Live-x86_64-34-1.2.iso \ -boot d

Couldn't open libEGL.dylib: dlopen(libEGL.dylib, 5): image not found zsh: abort qemu-system-x86_64 -device intel-hda -device hda-output -device qemu-xhci`

asdfghjkl403622 commented 2 years ago

what should I change?

DUOLabs333 commented 2 years ago

Try -device virtio-gpu-gl-pci instead of virtio-vga-gl

asdfghjkl403622 commented 2 years ago

qemu-system-x86_64 \ -device intel-hda -device hda-output \ -device qemu-xhci \ -device virtio-gpu-gl-pci \ -device usb-kbd \ -device virtio-net-pci,netdev=net \ -device virtio-mouse-pci \ -display cocoa,gl=es \ -netdev user,id=net,ipv6=off \ -drive "if=virtio,format=raw,file=hdd.raw,discard=on" \ -cdrom Fedora-Workstation-Live-x86_64-34-1.2.iso \ -boot d

Couldn't open libEGL.dylib: dlopen(libEGL.dylib, 5): image not found zsh: abort qemu-system-x86_64 -device intel-hda -device hda-output -device qemu-xhci

DUOLabs333 commented 2 years ago

Ok, go back to you're original setup (without the machine specified), then do brew tap --force-auto-update knazarov/qemu-virgl, then brew reinstall -s libepoxy-angle

asdfghjkl403622 commented 2 years ago

The original setup is with the machine identified

DUOLabs333 commented 2 years ago

Ok, but go to your setup after I told you to remove -M and -cpu.

asdfghjkl403622 commented 2 years ago

it's doing something

asdfghjkl403622 commented 2 years ago

[end of kernel panic] system is deadlocked on memory

asdfghjkl403622 commented 2 years ago

does it need more ram?

DUOLabs333 commented 2 years ago

Yes, by default it only uses 500 MB. Give it at least 3G.

asdfghjkl403622 commented 2 years ago

should I also give it more threads with -smp $(nproc)?

DUOLabs333 commented 2 years ago

-smp 4

asdfghjkl403622 commented 2 years ago

okay

asdfghjkl403622 commented 2 years ago

I got past that part, but it's starting gnome right now, I'll give updates

asdfghjkl403622 commented 2 years ago

it works!

asdfghjkl403622 commented 2 years ago

qemu-system-x86_64 \ -device intel-hda -device hda-output \ -device qemu-xhci \ -device virtio-vga-gl \ -device usb-kbd \ -device virtio-net-pci,netdev=net \ -device virtio-mouse-pci \ -display cocoa,gl=es \ -netdev user,id=net,ipv6=off \ -drive "if=virtio,format=raw,file=hdd.raw,discard=on" \ -cdrom Fedora-Workstation-Live-x86_64-34-1.2.iso \ -boot d \ -m 4G \ -smp 4

asdfghjkl403622 commented 2 years ago

command I used for people in the future

DUOLabs333 commented 2 years ago

You should close this now.

jonathancross commented 2 years ago

@asdfghjkl403622

You should close this now.