lima-vm / lima-vm/lima

macos-14 guest: `mount_apfs: volume could not be mounted: Illegal byte sequence`

Open
#4,665 1 comment 0 reactions 0 assignees View on GitHub
enhancement guest/macOS
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

Creating an instance with macOS 14 guest fails as follows:

```console
$ limactl start ./macos-14.yaml
? Creating an instance "macos-14" Proceed with the current configuration
INFO[0001] Starting the instance "macos-14" with internal VM driver "vz"
INFO[0001] Attempting to download the image arch=aarch64 digest="sha256:e387251e63387150ba76cf784bdb97d2016e5d43c6f809c90a115eb067a097b8" location="https://updates.cdn-apple.com/2024SummerFCS/fullrestores/062-52859/932E0A8F-6644-4759-82DA-F8FA8DEA806A/UniversalMac_14.6.1_23G93_Restore.ipsw"
INFO[0001] Using cache "/Users/suda/Library/Caches/lima/download/by-url-sha256/c7d964fb776125f15ea85a6088319c1fbd2b270b1e839f2d5614afdd50e8f342/data"
INFO[0001] Running macOS installer (takes a few minutes)
90 B / 100 B [---------------------------------------------->_____] 90.00% 1 B/s
INFO[0152] macOS installer exited error=""
INFO[0152] Patching macOS disk "/Users/suda/.lima/macos-14/disk"
FATA[0156] failed to mount "/dev/disk8s5" on "/Users/suda/.lima/_mnt/0": exit status 65 (output="mount_apfs: volume could not be mounted: Illegal byte sequence\nmount: /Users/suda/.lima/_mnt/0 failed with 65\n")
```

macos-14.yaml

```yaml
minimumLimaVersion: 2.1.0
# Apple Software License Agreements: https://www.apple.com/legal/sla/
# (macOS users should have already accepted the agreements on their host machines)
images:
- location: "https://updates.cdn-apple.com/2024SummerFCS/fullrestores/062-52859/932E0A8F-6644-4759-82DA-F8FA8DEA806A/UniversalMac_14.6.1_23G93_Restore.ipsw"
arch: "aarch64"
digest: "sha256:e387251e63387150ba76cf784bdb97d2016e5d43c6f809c90a115eb067a097b8"
os: Darwin
arch: aarch64
# vz is the only supported VM type for macOS guests
vmType: vz
ssh:
overVsock: false
mounts:
- location: "~"
# The installer seems to require the display device to be present.
video:
display: "default"
message: |
The user password for GUI session is stored in the `~/password` file in the guest.
Consider changing it after the first login.
```

Lima v2.1.0-beta.1, macOS 26.3 host

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.