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

macOS fails to boot #67

Open
zymsbgt opened this issue Aug 28, 2024 · 13 comments
Open

macOS fails to boot #67

zymsbgt opened this issue Aug 28, 2024 · 13 comments

Comments

@zymsbgt
Copy link

zymsbgt commented Aug 28, 2024

Operating system

VanillaOS 2 (Orchid)

Description

I am trying to run this image through Podman on my system, using podman-compose. When I try to run it, it crashes instantly. This same error occurs on both macOS Ventura and Monterey

Docker compose

services:
macos:
image: ghcr.io/dockur/macos
container_name: macos
environment:
VERSION: "monterey"
devices:
- /dev/kvm
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 5900:5900/tcp
- 5900:5900/udp
stop_grace_period: 2m

Docker log

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. ========
qemu-system-x86_64: terminating on signal 2 from pid 1 (/usr/bin/tini)

Screenshots (optional)

No response

@dajix350
Copy link

I got this same error on Arch using docker-compose on both Ventura and Monterey.

@cristianpenteado
Copy link

I got the same error running on Fedora 40

@drkx
Copy link

drkx commented Sep 2, 2024

What kind of partition did you create? I'm not sure if it has something to do with it, but when I selected case sensitive with partitioning my installation didn't work. Since I also changed the OS version from Sonoma to Montery I'm not sure if this was the issue though.

@dajix350
Copy link

dajix350 commented Sep 2, 2024

I get this error before reaching the macOS partitioning stage, the VM never starts. My host system uses BTRFS

@GitHanter
Copy link

Same issue

services:
  osx:
    image: dockurr/macos
    container_name: macos
    environment:
      VERSION: "sequoia"
      DISK_SIZE: "64G"
      RAM_SIZE: "16G"
      CPU_CORES: "4"
    devices:
      - /dev/kvm
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 5900:5900/tcp
      - 5900:5900/udp
    stop_grace_period: 2m

Failed to boot

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

neofetch of my ubuntu 24.10 system

OS: Ubuntu 24.10 x86_64 
    .ossssssssssssssssssdMMMNysssso.       Host: 80YX Lenovo Y920-17IKB 
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 6.11.0-8-generic 
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 1 hour, 11 mins 
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 3594 (dpkg), 138 (brew), 158 (flatpak), 46 (snap) 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: zsh 5.9 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 1920x1080, 1920x1080 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: GNOME 47.0 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Adwaita 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Mojave-dark [GTK2/3] 
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: WhiteSur [GTK2/3] 
  +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: terminator 
   /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: Intel i7-7820HK (8) @ 3.900GHz 
    .ossssssssssssssssssdMMMNysssso.       GPU: NVIDIA GeForce GTX 1070 Mobile 
      -+sssssssssssssssssyyyssss+-         Memory: 20691MiB / 61937MiB 

@QYG2297248353
Copy link

compose.yml

networks:
    1panel-network:
        external: true
services:
    macos:
        cap_add:
            - NET_ADMIN
        container_name: ${CONTAINER_NAME}
        deploy:
            resources:
                limits:
                    cpus: ${CPUS}
                    memory: ${MEMORY_LIMIT}
        devices:
            - /dev/kvm:/dev/kvm
            - /dev/dri:/dev/dri
        env_file:
            - /etc/1panel/envs/global.env
            - ${ENV_FILE:-/etc/1panel/envs/default.env}
        environment:
            - VERSION=${VERSION}
        image: dockurr/macos:1.14
        labels:
            createdBy: Apps
        networks:
            - 1panel-network
        ports:
            - ${HOST_IP}:${PANEL_APP_PORT_HTTP}:8006
            - ${HOST_IP}:${PANEL_APP_PORT_REMOTE}:5900/tcp
            - ${HOST_IP}:${PANEL_APP_PORT_REMOTE}:5900/udp
        restart: always
        stop_grace_period: 2m
        volumes:
            - ${MACOS_STORAGE_ROOT_PATH}/storage:/storage

env

CONTAINER_NAME="macos-ms"
CPUS=0
CPU_CORES=4
DISK_SIZE="64G"
HOST_IP=""
MACOS_STORAGE_ROOT_PATH="/home/data/macos"
MEMORY_LIMIT=0
PANEL_APP_PORT_HTTP=8122
PANEL_APP_PORT_REMOTE=5900
RAM_SIZE="8G"
VERSION=15
ENV_FILE=/opt/1panel/apps/local/macos/macos/.env

日志

macos-ms  | ======== End of efiboot serial output. ========
macos-ms  | �[2J�[01;01H�[=3h�[2J�[01;01H�[2J�[01;01H�[=3h�[2J�[01;01H�[2J�[01;01H�[=3h�[2J�[01;01HBdsDxe: failed to load Boot0080 "Mac OS X" from PciRoot(0x0)/Pci(0xA,0x0)/VenMedia(BE74FCF7-0B7C-49F3-9147-01F4042E6842,471F93308231524A95328E3E6A1889E8)/\9F4330E7-AE1E-4144-8069-E5A69EECA87C\System\Library\CoreServices\boot.efi: Not Found
macos-ms  | BdsDxe: failed to load Boot0001 "UEFI Misc Device" from PciRoot(0x0)/Pci(0xA,0x0): Not Found
macos-ms  | BdsDxe: loading Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x5,0x0)
macos-ms  | BdsDxe: starting Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x5,0x0)
macos-ms  | #[EB|LOG:EXITBS:END] _
macos-ms  | #[EB.BST.FBS|-]
macos-ms  | #[EB|B:BOOT]
macos-ms  | #[EB|LOG:HANDOFF TO XNU] _

@markuman
Copy link

same here

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

@QYG2297248353
Copy link

After uninstalling, pull the mirror again and reinstall it. It was successful, but iCloud can't log in.

@kroese
Copy link
Contributor

kroese commented Nov 16, 2024

@QYG2297248353 I created a new version 1.16 that generates unique machine serials when creating a fresh installation. I think that should solve your problem with iCloud.

@kroese
Copy link
Contributor

kroese commented Nov 16, 2024

For all others: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.

@roadkingvrod
Copy link

In my case, the log ends there, but NOVNC never connects to anything. Just says failed to connect to server.

@QYG2297248353
Copy link

@QYG2297248353 I created a new version 1.16 that generates unique machine serials when creating a fresh installation. I think that should solve your problem with iCloud.

OK, I'll upgrade right away.

@QYG2297248353
Copy link

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.

This is the only thing in the log that looks like a wrong error

After installation, this error occurs, and the remote desktop will restart in an infinite loop of "Five Languages"

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

9 participants