Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean install of macOS ventura does not boot #93

Open
HabaneroGabe opened this issue Oct 10, 2024 · 9 comments
Open

Clean install of macOS ventura does not boot #93

HabaneroGabe opened this issue Oct 10, 2024 · 9 comments

Comments

@HabaneroGabe
Copy link

Operating system

qnap QTS 5.1.8.2823

Description

Got this far:
Start the container and connect to port 8006 using your web browser.

Choose Disk Utility and then select the largest Apple Inc. VirtIO Block Media disk.

Click the Erase button to format the disk, and give it any recognizable name you like.

Close the current window and proceed the installation by clicking Reinstall macOS.

When prompted where you want to install it, select the disk you just created previously.

After this, macOS reboot and then fails to boot.

Docker compose

services:
macos:
image: dockurr/macos
container_name: macos
environment:
VERSION: "ventura"
DISK_SIZE: "256G"
devices:
- /dev/kvm
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 5900:5900/tcp
- 5900:5900/udp
stop_grace_period: 2m
volumes:
- /Docker/macos:/storage

Docker log

3h3h3hBdsDxe: failed to load Boot0080 "Mac OS X" from PciRoot(0x0)/Pci(0xA,0x0)/VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,73000BF5A000AF4981E0DC65C47DA08D)/\0FACE32B-8D7C-4441-AA96-4636CD07E251\System\Library\CoreServices\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)

No response

@kroese
Copy link
Contributor

kroese commented Oct 12, 2024

Can you see if it makes a difference if you add:

environment:
  CPU_CORES: "1"

@HabaneroGabe
Copy link
Author

HabaneroGabe commented Oct 14, 2024 via email

@kroese
Copy link
Contributor

kroese commented Oct 14, 2024

The QNAP version of Docker works really strange with permissions for volumes. Did you create the folder /Docker/macos yourself? Because it must be created by container manager otherwise you will get issues. Does it work when you specify no volumes at all?

@HabaneroGabe
Copy link
Author

I created the path myself like did with my other dockers. Not sure why this one would be different. But i can try it to see if it makes a difference.
Initially i accidently created the docker without volumes. The setup booted, but had no room to or volumes to download image too.

@kroese
Copy link
Contributor

kroese commented Oct 17, 2024

I know from other issues of my containers (like this one: )vdsm/virtual-dsm#224 (comment) that if you create the path yourself on QNAP it will not work:

"The way this works on qnap is exposing a volume through qnap container station. That volume has the right permissions set for docker to be able to read/write from the container. Connecting that specific volume to the /storage directory in the container solves the permission problems."

So that is why I am bit suspicious when I hear the name QNAP in combination with this container.

@HabaneroGabe
Copy link
Author

HabaneroGabe commented Oct 24, 2024 via email

@Taxicletter
Copy link

Taxicletter commented Oct 26, 2024

I think I have the same error. I don't have any volumes in the compose file (as I didn't saw it mentioned as necessary in the example file)
I can install, after installation it boots with an error like you restarted because of a crash.

BdsDxe: failed to load Boot0080 "Mac OS X" from PciRoot(0x0)/Pci(0xA,0x0)/VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,8A9FE3F8E5257C4DA0B6F82B166AA2BD)/\3055B17D-C0C0-487B-949F-6E4542C17156\System\Library\CoreServices\boot.efi: Not Found
macos  | 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. ========
macos  | 

I added the USB-drive that is a Time Machine disk, so maybe that crashes the system? I'm reinstalling now, I will let you know if it works this time.

services:
  macos:
    image: dockurr/macos
    container_name: macos
    environment:
      VERSION: "ventura"
      DISK_SIZE: "100G"
      CPU_CORES: "12"
      ARGUMENTS: "-device usb-host,vendorid=0x1058,productid=0x2621"
    devices:
      - /dev/kvm
      - /dev/bus/usb
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 5900:5900/tcp
      - 5900:5900/udp
    stop_grace_period: 2m

@munabedan
Copy link

I am also facing the same error

BdsDxe: failed to load Boot0080 "Mac OS X" from PciRoot(0x0)/Pci(0xA,0x0)/VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,D2FEA3E3F5DB824DA65A00053B6D90A9)/\4DA32AB2-B86D-47DB-875B-A216296EF75C\System\Library\CoreServices\boot.efi: Not Found
macos  | 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. ========

Here are the contents of my compose file

version: "3"
services:
  macos:
    image: dockurr/macos
    container_name: macos
    environment:
      VERSION: "13"
      DISK_SIZE: "150G"
    devices:
      - /dev/kvm
    cap_add:
      - NET_ADMIN
    ports:
      - "8006:8006"
      - "5900:5900/tcp"
      - "5900:5900/udp"
    volumes:
      - /media/muna/HDD/osx:/storage
    stop_grace_period: 2m

@kroese
Copy link
Contributor

kroese commented Nov 16, 2024

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. ========

So everyone is talking about "I have the same error" but I dont see any errors in your logs? If something else goes wrong please post a screenshot or a description? But the logs looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants