dockur / dockur/macos

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

Open
#381 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
21.6k
Forks
1.1k
Avg merge
1h 8m
Merged PRs (30d)
7

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the report with the supplied Docker Compose configuration, Windows 11/WSL2 environment, and custom image mounted at /boot.dmg. Start by tracing how /boot.dmg becomes /storage/14/base.dmg and compare the QEMU error with the referenced DMG-building workflow; done means identifying whether the image or mount path is unsupported and recording a verified resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose
Domain
infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.