dockur / macos

OSX (macOS) inside a Docker container.
MIT License
8.92k stars 323 forks source link

warning: host doesn't support requested feature #108

Open Siscos06 opened 1 week ago

Siscos06 commented 1 week ago

Operating system

Debian GNU/Linux 12 (bookworm)

Description

I'm trying to install macOS (any version) and when I get to the step where the Apple logo appears, it gets stucked there. I've tried changing the version and, since I'm quite a newbie, I've tried changing the privileges as it was explained in the FAQ. I don't know how to proceed or what should I do and, for this reason, I would greatly appreciate any kind of help.

btw, I'm trying to intall it in Portainer in a OMV server.

Docker compose

services: macos: privileged: true image: dockurr/macos container_name: macos environment: VERSION: "ventura" RAM_SIZE: "3G" CPU_CORES: "2" devices:

Docker log

3h3h3hBdsDxe: failed to load Boot0080 "Mac OS X" from PciRoot(0x0)/Pci(0xA,0x0)/VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,27776AB23966434AACAAA104B2C47C29)/\A40729E7-EDFE-4969-914B-FD913615B5CE\com.apple.installer\boot.efi: Not Found

BdsDxe: failed to load Boot0001 "UEFI Misc Device" from PciRoot(0x0)/Pci(0xA,0x0): Not Found

BdsDxe: loading Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x5,0x0)

BdsDxe: starting Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x5,0x0)

[EB|LOG:EXITBS:END] _

[EB.BST.FBS|-]

[EB|B:BOOT]

[EB|LOG:HANDOFF TO XNU] _

======== End of efiboot serial output. ========

Screenshots (optional)

Screenshot 2024-11-09 203259 _macos_logs.txt

kroese commented 1 week ago

From the logs it seems your CPU, the Intel Pentium G3220, is missing a lot of CPU instructions that macOS needs.

So my best guess as to why it freezes is that you need a more recent CPU. You can try to set VERSION: "catalina" to use an even older version of macOS, but if that also doesnt work then there is not much we can do.

Siscos06 commented 1 week ago

Okay, thanks for your help. I will try to do that or if it still doesn't work I will refresh my computer.

foxhunt72 commented 1 week ago

i have the same issue with a 12th Gen Intel(R) Core(TM) i7-12800H

gregkorossy commented 1 week ago

Same problem with i9-14900HX on Windows 11.

Gonzalo-Bruna commented 1 week ago

Same issue with AMD Ryzen 5 5600G on Windows 11

uforia commented 1 week ago

Same issue with an AMD Ryzen 7 5700U on Gentoo Linux, Kernel 6.11.8, Docker 27.3.1.

After image verification, these are the errors:

macos  | ❯ Booting macOS 1920x1080 using QEMU v9.1.0...
macos  | qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
macos  | qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.erms [bit 9]
macos  | qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.07H:EBX.invpcid [bit 10]
BdsDxe: failed to load Boot0001 "UEFI Misc Device" from PciRoot(0x0)/Pci(0xA,0x0): Not Found
macos  | BdsDxe: loading Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x5,0x0)
macos  | BdsDxe: starting Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x5,0x0)
macos  | #[EB|LOG:EXITBS:END] _
macos  | #[EB.BST.FBS|-]
macos  | #[EB|B:BOOT]
macos  | #[EB|LOG:HANDOFF TO XNU] _
macos  | ======== End of efiboot serial output. ========
madmax2012 commented 1 week ago

Same Issue, Arch Linux, Kernel 6.11.7, Docker 27.3.1, AMD 5900X

macos | qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17] macos | qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]

kroese commented 1 week ago

To be clear, failed to load Boot0001 is not an error. A perfectly working boot looks like this:

❯ Booting macOS using QEMU v9.1.1...
3h3h3hBdsDxe: failed to load Boot0080 "Mac OS X" from PciRoot(0x0)/Pci(0xA,0x0)/VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,68949502815D1D40B0499297B2E9DE09)/\6DD0A636-8112-4971-9160-E1D3BB8A8428\com.apple.installer\boot.efi: Not Found
BdsDxe: failed to load Boot0001 "UEFI Misc Device" from PciRoot(0x0)/Pci(0xA,0x0): Not Found
BdsDxe: loading Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x5,0x0)
BdsDxe: starting Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x5,0x0)
#[EB|LOG:EXITBS:END] _
#[EB.BST.FBS|-]
#[EB|B:BOOT]
#[EB|LOG:HANDOFF TO XNU] _
======== End of efiboot serial output. ========

If it freezes at the Apple Logo and you see a lot of host doesn't support requested feature messages, it seems like your CPU is missing certain instructions that macOS needs.

uforia commented 6 days ago

It's not freezing at the Apple logo. It gives me an unexpected error (MacOS X text error) after the Apple logo w/ progress bar fills up.

kroese commented 6 days ago

@uforia Can you try if it works when you set:

environment:
  CPU_CORES: "1"
uforia commented 6 days ago

That seems to be a viable workaround solve the booting and installation. After installation, I switched back to 4 cores and it seems to work now.