Skip to content

QEMU error "Could not locate UDIF trailer" when using custom boot.dmg (Windows/AMD) #381

@LSXAxeller

Description

@LSXAxeller

Operating system

Windows 11

Description

I am trying to install macOS 14 (Sonoma) on a Windows 11 machine with an AMD Ryzen processor. I am attempting to use a local installation image by mounting it as /boot.dmg as described in the documentation, but QEMU fails to read the file structure.

The DMG image used in the installation was built from the GitHub Actions run at https://github.com/LSXAxeller/macos-iso-builder/actions/runs/19634577669, using the workflow available at https://github.com/LongQT-sea/macos-iso-builder.

Environment:

  • Host OS: Windows 11 (24H2)
  • Backend: Docker Desktop (WSL2)
  • CPU: AMD Ryzen 5 7600

Docker compose

services:
  macos:
    image: dockurr/macos
    container_name: macos
    environment:
      VERSION: "14"
      RAM_SIZE: "24G"
      CPU_CORES: "1"
      DISK_SIZE: "64G"
    devices:
      - /dev/kvm
      - /dev/net/tun
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 5900:5900/tcp
      - 5900:5900/udp
    volumes:
      - ./macos:/storage
      - "D:\\Programs\\Pro\\ISO\\macOS_Sonoma_14.8.2.dmg:/boot.dmg" 
    restart: always
    stop_grace_period: 2m

Docker log

❯ Starting macOS for Docker v2.29...

❯ For support visit https://github.com/dockur/macos⁠

❯ CPU: AMD Ryzen 5 7600 | RAM: 30/31 GB | DISK: 26 GB (v9fs) | KERNEL: 6.6.87.2-microsoft-standard-WSL2...


❯ Building boot image...

❯ 

❯ Model: iMacPro1,1

❯ Rom: 0016cb3c9171

❯ Serial: C02G5SYYHX87

❯ Board: C02131270CDJG361M

❯ 

❯ Booting macOS using QEMU v10.0.6...

qemu-system-x86_64: -drive file=/storage/14/base.dmg,id=InstallMedia,format=dmg,cache=unsafe,readonly=on,if=none: Could not locate UDIF trailer in dmg file

Screenshots (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions