Skip to content

Bug]: VirtualizationFramework fails to start any containers on macOS 26.3 (ARM64) #1254

Open

Description

@gsiener

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

  1. Install Apple Container 0.9.0 on macOS 26.3 (25D125, ARM64 M4 Mac Mini)
  2. Install Kata kernel:

bash
curl -L https://github.com/kata-containers/kata-containers/releases/download/3.26.0/kata-static-3.26.0-arm64.tar.zst -o /tmp/kata-kernel.tar.zst
container system kernel set --tar /tmp/kata-kernel.tar.zst --binary ./opt/kata/share/kata-containers/vmlinuz.container --force

  1. Enable IP forwarding and NAT (per Add Apple Container Networking Setup documentation nanocoai/nanoclaw#178):

bash
sudo sysctl -w net.inet.ip.forwarding=1
echo "nat on en1 from 192.168.64.0/24 to any -> (en1)" | sudo pfctl -ef -

  1. Start container system: container system start
  2. Try any build: container build -t test -f Dockerfile .
  3. Or even simple run: container run --rm alpine:latest echo test

Current behavior

Every container operation fails with VirtualizationFramework error:

Error: internalError: "failed to bootstrap container" (cause: "internalError: "failed to bootstrap container buildkit (cause: "unknown: "Error Domain=VZErrorDomain Code=1 "The virtual machine failed to start." UserInfo={NSLocalizedFailure=Internal Virtualization error., NSLocalizedFailureReason=The virtual machine failed to start.}"")"")
This affects:

  • container build (buildkit container won't start)
  • container run (any container image)
  • Even minimal Alpine images fail

Expected behavior

Containers should start successfully. The buildkit VM and any runtime containers should bootstrap using the Virtualization.framework.

Additional context

This appears to be a macOS Virtualization.framework bug affecting macOS Sequoia 26.x on ARM64.
Identical issue reported elsewhere:

  • containers/podman#28017 - Podman + vfkit hitting same VZErrorDomain Code=1 on macOS 26.2 ARM64
  • Quote from that issue: "vfkit crashes with trace trap when attempting to start the VM via the macOS Virtualization.framework"

What I've verified:

  • ✅ Kernel installed correctly (vmlinuz.container from Kata 3.26.0)
  • ✅ Rosetta 2 installed
  • ✅ IP forwarding enabled (net.inet.ip.forwarding: 1)
  • ✅ NAT rules configured (pfctl -s nat shows rules)
  • ✅ API server running
  • ❌ Any VM fails to start (even minimal configs)

Impact: This blocks all Apple Container usage on macOS 26.3 ARM64. No workaround found.

Related issues:

This needs OS-level fixes from Apple or workaround guidance from the Apple Container team.

Environment

- **OS**: macOS 26.3 (25D125)
- **Architecture**: ARM64 (M4 Mac Mini)
- **Xcode**: Not installed
- **Container**: container CLI version 0.9.0 (build: release, commit: 3e49dce)
- **Rosetta**: Installed (`softwareupdate --install-rosetta` succeeded)
- **SIP**: Enabled (`csrutil status` shows System Integrity Protection status: enabled)

Relevant log output

$ container system status
apiserver is running
application data root: /Users/pinch/Library/Application Support/com.apple.container/
application install root: /usr/local/
container-apiserver version: container-apiserver version 0.9.0 (build: release, commit: 3e49dce)
container-apiserver commit: 3e49dcef4e48121fb26a7e41f8730d7a81f5c3be

$ container build -t test -f Dockerfile .
Error: internalError: "failed to bootstrap container" (cause: "internalError: "failed to bootstrap container buildkit (cause: "unknown: "Error Domain=VZErrorDomain Code=1 "The virtual machine failed to start." UserInfo={NSLocalizedFailure=Internal Virtualization error., NSLocalizedFailureReason=The virtual machine failed to start.}"")"")

$ container run --rm alpine:latest echo test
Error: internalError: "failed to bootstrap container" (cause: "internalError: "failed to bootstrap container 80971e12-1dd1-4f4d-9bf0-34308484c490 (cause: "unknown: "Error Domain=VZErrorDomain Code=1 "The virtual machine failed to start." UserInfo={NSLocalizedFailure=Internal Virtualization error., NSLocalizedFailureReason=The virtual machine failed to start.}"")"")

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added theissue type on Feb 23, 2026
  2. finagolfin commented on Feb 24, 2026

    @finagolfin

    Can you install container 0.8.0 instead and see if that works for your usecase? That earlier release has worked well and been very stable for me.

  3. gsiener commented on Feb 24, 2026

    @gsiener
    Author

    Update: Tested 0.8.0 rollback - does NOT resolve issue on macOS 26.3

    Steps taken:
    Uninstalled 0.9.0 with /usr/local/bin/uninstall-container.sh -k
    Installed 0.8.0 from release package
    Verified versions:
    CLI: container --version → 0.8.0 (commit a18df81) ✅
    API server: 0.8.0 after restart ✅

    Test results:
    $ container run --rm alpine:latest echo "test"
    Error: internalError: "failed to bootstrap container" (cause: "internalError: "failed to bootstrap container 6c8e35dd-8ba3-4b09-9789-113f40abe40c (cause: "unknown: "Error Domain=VZErrorDomain Code=1 "The virtual machine failed to start." UserInfo={NSLocalizedFailure=Internal Virtualization error., NSLocalizedFailureReason=The virtual machine failed to start.}"")"")

    Identical VZErrorDomain Code=1 error persists on 0.8.0.

    Conclusion:
    This confirms the bug is in macOS 26.3's VirtualizationFramework itself, not in Apple Container. The 0.8.0 rollback likely works for users on earlier macOS versions (26.0-26.2), but on 26.3 (build 25D125) the OS-level bug blocks all versions of Apple Container.

    Workaround:
    Docker Desktop works (uses different virtualization backend: HyperKit/QEMU instead of VirtualizationFramework).

    Environment:
    macOS: 26.3 (25D125)
    Architecture: ARM64 (M4 Mac Mini)
    Apple Container: 0.8.0 (tested) and 0.9.0 (original report)

  4. finagolfin commented on Feb 24, 2026

    @finagolfin

    No, I am running on macOS 26.3 on a m4 with 0.8.0 myself, works fine for me. Can you try re-installing 0.8.0, but ditch your old containers with uninstall-container.sh -d instead this time? I have seen the default "buildkit" container get screwed up before, which a full uninstall may have fixed.

    Otherwise, it may be the Rosetta or networking config options you added, as I haven't messed with any of those either. I suggest you start from scratch and don't enable those and see if 0.8.0 works. If it does, add those additional features back one by one and see if you can reproduce the problem, then you'll know what caused it.

  5. gsiener commented on Feb 24, 2026

    @gsiener
    Author

    Okay, will try later tonight. thanks

  6. Ronitsabhaya75 commented on Feb 25, 2026

    @Ronitsabhaya75
    Contributor

    Hey, thanks for reporting this! I've looked into it, and this is actually an OS-level bug in macOS 26.3 ARM64. The macOS Virtualization.framework is failing to start any VMs right now (Podman is hitting this too). I think we'll have to wait for Apple to patch this in a future macOS update, as I think's theres no workaround we can do from the container side at the moment.

    hopefuly does make sense :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions