arindas / mac-on-linux-with-qemu

Runs macOS on linux with qemu.
MIT License
196 stars 18 forks source link

qemu-system-x86_64: Display 'sdl' is not available. #31

Closed Alg0v closed 2 years ago

Alg0v commented 2 years ago

I ran the run.sh script but it shows an error. The output is :

*** Checking for firmware files
*** Checking for Base System files
*** Check if dmg2img is available
/usr/bin/dmg2img
*** Check if BaseSystem dmg is downloaded. If downloaded convert to img
*** BaseSystem dmg available.
*** Check if BaseSystem dmg has been converted to img before.
*** BaseSystem img available.
*** Checking for disk image
*** Check if installer has been run
*** Looks like the install hasn't been done yet, lets install
*** Install!
qemu-system-x86_64: Display 'sdl' is not available.

I am a beginner with linux so don't be too rude.

arindas commented 2 years ago

Change:

-display sdl,gl=on \

to

-display gtk,gl=on \

This worked for some folks having this issue.

Alg0v commented 2 years ago

Hello arindas, thanks for the answer ! I did this but I have another error that I fixed by changing -device virtio-vga-gl by -virtio-gpu-pci but it shows a QEMU black window.

Alg0v commented 2 years ago

I get this output :

UEFI Interactive Shell v2.2
EDK II
UEFI v2.70 (EDK II, 0x00010000)
Mapping table
      FS0: Alias(s):HD1b:;BLK2:
          PciRoot(0x0)/Pci(0x6,0x0)/HD(1,GPT,516DDB9A-2E91-476D-B07E-394437BCAADF,0x800,0x48BE1)
      FS1: Alias(s):HD1c:;BLK3:
          PciRoot(0x0)/Pci(0x6,0x0)/HD(2,GPT,7CF3FB80-B159-4DDD-84DA-6B9AB44106A9,0x49BE0,0x75C21)
     BLK1: Alias(s):
          PciRoot(0x0)/Pci(0x6,0x0)
     BLK4: Alias(s):
          PciRoot(0x0)/Pci(0x7,0x0)
     BLK5: Alias(s):
          PciRoot(0x0)/Pci(0x7,0x0)/HD(1,GPT,7942A2B2-1242-4744-9961-FACCD8E50919,0x28,0x3BF3B0)
     BLK6: Alias(s):
          PciRoot(0x0)/Pci(0x8,0x0)
     BLK0: Alias(s):
          PciRoot(0x0)/Pci(0x1F,0x2)/Sata(0x2,0xFFFF,0x0)

Press ESC in 1 seconds to skip startup.nsh or any other key to continue.
Shell> fs0:\EFI\BOOT\BOOTx64.efi
BS: Starting OpenCore application...
BS: Booter path - \EFI\BOOT\BOOTx64.efi
OCFS: Trying to locate filesystem on 7F35E998 7EB1EF98
OCFS: Filesystem DP - \EFI\BOOT\BOOTx64.efi
BS: Trying to load OpenCore image...
BS: Relative path - EFI
BS: Startup path - EFI\OpenCore.efi (0)
BS: Fallback to absolute path - EFI\OC\OpenCore.efi
BS: Read OpenCore image of 892928 bytes
OCM: Loaded image at 7EB2C618 handle
OCM: Loaded image has DeviceHandle 7F35E998 FilePath 7EB26F98 ours DevicePath 7EB2C018
OC: Starting OpenCore...
OC: Booter path - EFI\OC\OpenCore.efi
OCFS: Trying to locate filesystem on 7F35E998 7EB26F98
OCFS: Filesystem DP - EFI\OC\OpenCore.efi
OC: Absolute booter path - EFI\OC\OpenCore.efi
OC: Storage root EFI\OC\OpenCore.efi
OCST: Missing vault data, ignoring...
OC: OcMiscEarlyInit...
OC: Loaded configuration of 26045 bytes
OCS: Missing key Patch, context <Booter>!
OCS: Missing key Arch, context <Add>!
OCS: Missing key Arch, context <Add>!
OCS: Missing key ReservedMemory, context <UEFI>!
OC: Watchdog status is 1
arindas commented 2 years ago

What happens after this?

Alg0v commented 2 years ago

I get a black QEMU window.

Alg0v commented 2 years ago

Also, im on Debian 11 with a Ryzen CPU.

arindas commented 2 years ago

Try removing this flag once and run.

Qemu installations are not uniform across all Linux distributions. From what I have observed, some flags are not properly supported in all distributions.

Alg0v commented 2 years ago

You're talking about -virtio-gpu-pci or -display gtk,gl=on \ ?

arindas commented 2 years ago

virtio-gpu-pci

Alg0v commented 2 years ago

I also get a black screen. I removed both -virtio-gpu-pci and -display gtk,gl=on \ and it works ! Thank you so much for your help ! Have a nice day !