podman machine start reports success on macOS Apple Silicon, but VM falls into emergency mode with Ignition/fsck root UUID errors
Issue Description
On macOS Apple Silicon, podman machine init succeeds and podman machine start reports success, but the VM never becomes usable.
The machine either stays in a broken state where:
podman machine listshowsLAST UP: Neverpodman machine sshsays the VM is not runningpodman infocannot connect
The VM console log shows Fedora CoreOS entering emergency mode during boot.
Steps to reproduce the issue
podman machine initpodman machine start- Check:
podman machine list- `podman machine ssh 'echo ok'
podman info
Describe the results you received
podman machine start prints a success message, but the VM is not actually usable.
Examples:
$ podman machine start
Starting machine "podman-machine-default"
...
Machine "podman-machine-default" started successfully
But afterward:
$ podman machine list
NAME VM TYPE CREATED LAST UP CPUS MEMORY DISK SIZE
podman-machine-default* applehv 49 seconds ago Never 5 2GiB 100GiB
$ podman machine ssh 'echo ok'
Error: vm "podman-machine-default" is not running
$ podman info
Cannot connect to Podman. Please verify your connection to the Linux system...
Error: unable to connect to Podman socket: failed to connect: dial tcp 127.0.0.1:<port>: connect: connection refused
In other attempts, podman info failed with SSH handshake resets instead.
VM boot log
From podman-machine-default.log, the guest repeatedly fails during boot with:
Ignition has failed. Please ensure your config is valid.
systemd-fsck-root.service - File System Check on /dev/disk/by-uuid/<uuid>
Failed to stat /dev/disk/by-uuid/<uuid>: No such file or directory
Entering emergency mode.
I reproduced this multiple times, including after removing and recreating the machine.
Describe the results you expected
The VM should boot fully and podman info / podman machine ssh should work after podman machine start.
podman info output
Unavailable because the VM never becomes usable.
podman version
podman version 5.8.1
Host OS
ProductName: macOS
ProductVersion: 26.5
BuildVersion: 25F5042g
Darwin liuzhengdeMacBook-Air.local 25.5.0 Darwin Kernel Version 25.5.0: Fri Mar 20 18:54:08 PDT 2026; root:xnu-12377.120.72.0.4~13/RELEASE_ARM64_T8132 arm64
Virtualization provider
applehv
Additional information
I tested both rootless and rootful machine configs.
podman machine inspect showed settings like:
- provider:
applehv - architecture:
arm64 - rootful: tested both
falseandtrue - machine image path:
.../podman-machine-default-arm64.raw
I do not have a custom ~/.config/containers/containers.conf, so this does not appear to be caused by a local Podman config override.
Adding the extra artifacts requested.
Full boot log:
- https://gist.github.com/leozhengliu-pixel/3bd314784e9f344b6f8badac5b70ddc0
podman machine inspect podman-machine-default:
{
"Created": "2026-04-03T20:58:34.465112+08:00",
"LastUp": "0001-01-01T00:00:00Z",
"Name": "podman-machine-default",
"Resources": {
"CPUs": 5,
"DiskSize": 100,
"Memory": 2048,
"USBs": []
},
"SSHConfig": {
"IdentityPath": "/Users/liuzheng/.local/share/containers/podman/machine/machine",
"Port": 58028,
"RemoteUsername": "core"
},
"State": "running",
"UserModeNetworking": true,
"Rootful": true,
"Rosetta": true
}
Generated machine metadata (~/.config/containers/podman/machine/applehv/podman-machine-default.json):
{
"Name": "podman-machine-default",
"Created": "2026-04-03T20:58:34.465112+08:00",
"LastUp": "0001-01-01T00:00:00Z",
"HostUser": {
"Rootful": true,
"UID": 501,
"HostUserModified": true
},
"SSH": {
"IdentityPath": "/Users/liuzheng/.local/share/containers/podman/machine/machine",
"Port": 58028,
"RemoteUsername": "core"
},
"ImagePath": {
"Path": "/Users/liuzheng/.local/share/containers/podman/machine/applehv/podman-machine-default-arm64.raw"
},
"Resources": {
"CPUs": 5,
"DiskSize": 100,
"Memory": 2048,
"USBs": []
},
"Starting": true,
"Rosetta": false,
"AppleHypervisor": {
"Vfkit": {
"LogLevel": "panic",
"Endpoint": "http://localhost:58084",
"VirtualMachine": {
"vcpus": 5,
"memoryBytes": 2147483648,
"bootloader": {
"kind": "efiBootloader",
"efiVariableStorePath": "/Users/liuzheng/.local/share/containers/podman/machine/applehv/efi-bl-podman-machine-default",
"createVariableStore": true
}
},
"Rosetta": true
}
}
}
Generated ignition (~/.config/containers/podman/machine/applehv/podman-machine-default.ign) starts with:
{
"ignition": {
"config": {
"replace": {
"verification": {}
}
},
"version": "3.2.0"
},
"passwd": {
"users": [
{
"name": "core",
"uid": 501
},
{
"name": "root"
}
]
},
"storage": {
"files": [
{
"path": "/etc/containers/podman-machine",
"contents": {
"source": "data:,applehv%0A"
}
},
{
"path": "/etc/tmpfiles.d/podman-docker.conf",
"contents": {
"source": "data:,L+%20%20%2Frun%2Fdocker.sock%20%20%20-%20%20%20%20-%20%20%20%20-%20%20%20%20%20-%20%20%20%2Frun%2Fuser%2F501%2Fpodman%2Fpodman.sock%0A"
}
}
]
},
"systemd": {
"units": [
{
"enabled": true,
"name": "podman.socket"
},
{
"enabled": true,
"name": "rosetta-activation.service"
},
{
"enabled": true,
"name": "ready.service"
}
]
}
}
If useful, I can also add the full raw .ign content, but I started with the key parts above plus the full VM boot log gist.
yeah, .ign file might be helpful in case the bug is between the generation?
also, id be curious how you installed this? Was it from brew or downloaded or built from source ?
@leozhengliu-pixel the disk errors in your log concern us; can you also sha sum the cached disk image? Make sure its not the disk that booted, the cached image:
sha256sum ~/.local/share/containers/podman/machine/applehv/cache/45d6e5983955ea9d6e4cef451847ede7a5acbf27d77fb661999c7f33d595b0b0.raw.zst
54852e3eb87f80c515d6c865cf870566b803c7b2f55c6e8e26577178af3c1bc5 /Users/baude/.local/share/containers/podman/machine/applehv/cache/45d6e5983955ea9d6e4cef451847ede7a5acbf27d77fb661999c7f33d595b0b0.raw.zst
if you have not made big changes to your environment or have a podman machine you care about, you can also podman machine reset and it will repull the image. But before doing so, it might be nice to check the sum of your current cached image, reset, and then check it again and see if they match. And if they match mine!
I checked the cached machine image you pointed me to.
Its sha256 matches yours exactly:
54852e3eb87f80c515d6c865cf870566b803c7b2f55c6e8e26577178af3c1bc5 /Users/liuzheng/.local/share/containers/podman/machine/applehv/cache/45d6e5983955ea9d6e4cef451847ede7a5acbf27d77fb661999c7f33d595b0b0.raw.zst
I then created a fresh machine from that verified cached image and hit the problem again. podman machine start still reports success, but:
podman machine listshowsLAST UP: Neverpodman machine sshsays the VM is not runningpodman infostill fails to connect
So this does not look like a corrupted cached disk image.
Also, I installed Podman via Homebrew.
On the .ign side: I no longer have the original full file from the very first run because I cleaned up the local machine state while debugging, but I did regenerate the ignition content with the same Podman version and ran it through ignition-validate, and that validation passed.
I have the full generated .ign from the latest fresh repro now.
Full file:
- https://gist.github.com/leozhengliu-pixel/1477177df7da72f46ee631158eee4c7e
sha256 of that .ign file:
86bbcf72baa6d5158d9fbc96346b1f48e8da4ca6e9abd05ef4d200c62e08ad06 /Users/liuzheng/.config/containers/podman/machine/applehv/podman-machine-default.ign
I also attached the exact extraction steps I used for the disk GUID / boot UUID / root UUID comparison.
For the current machine raw disk:
python3 - <<'PY'
import os, uuid
raw=os.path.expanduser('~/.local/share/containers/podman/machine/applehv/podman-machine-default-arm64.raw')
with open(raw,'rb') as f:
f.seek(512+56)
print('machine_disk_guid', uuid.UUID(bytes_le=f.read(16)))
f.seek(264192*512+1024+0x68)
b=f.read(16).hex(); print('machine_boot_uuid', f'{b[:8]}-{b[8:12]}-{b[12:16]}-{b[16:20]}-{b[20:32]}')
f.seek(1050624*512+32)
b=f.read(16).hex(); print('machine_root_xfs_uuid', f'{b[:8]}-{b[8:12]}-{b[12:16]}-{b[16:20]}-{b[20:32]}')
PY
Output:
machine_disk_guid c8d45b53-7a1e-45f1-9495-ff875c87d824
machine_boot_uuid 4c887a15-7383-426b-bfa5-f2f89ac4e78a
machine_root_xfs_uuid 17cfe6ff-0c31-4bb3-a8c1-415da2e0f68e
For the cached machine image:
python3 - <<'PY'
import subprocess, uuid
zst = '/Users/liuzheng/.local/share/containers/podman/machine/applehv/cache/45d6e5983955ea9d6e4cef451847ede7a5acbf27d77fb661999c7f33d595b0b0.raw.zst'
p = subprocess.Popen(['zstdcat', zst], stdout=subprocess.PIPE)
need = 1050624*512 + 64
buf = bytearray()
chunk = 1024*1024
while len(buf) < need:
data = p.stdout.read(min(chunk, need-len(buf)))
if not data:
break
buf.extend(data)
p.terminate()
hdr = bytes(buf[512:512+92])
print('cache_disk_guid', uuid.UUID(bytes_le=hdr[56:72]))
boot = bytes(buf[264192*512+1024+0x68:264192*512+1024+0x68+16]).hex()
print('cache_boot_uuid', f'{boot[:8]}-{boot[8:12]}-{boot[12:16]}-{boot[16:20]}-{boot[20:32]}')
root = bytes(buf[1050624*512+32:1050624*512+48]).hex()
print('cache_root_xfs_uuid', f'{root[:8]}-{root[8:12]}-{root[12:16]}-{root[16:20]}-{root[20:32]}')
PY
Output:
cache_disk_guid 00000000-0000-4000-a000-000000000001
cache_boot_uuid 96d15588-3596-4b3c-adca-a2ff7279ea63
cache_root_xfs_uuid 910678ff-f77e-4a7d-8d53-86f2ac47a823
And for the current raw disk I also checked that the failing root UUID from the log is really present in the XFS superblock at the root partition start:
python3 - <<'PY'
import os
raw=os.path.expanduser('~/.local/share/containers/podman/machine/applehv/podman-machine-default-arm64.raw')
start=1050624*512
with open(raw,'rb') as f:
f.seek(start)
print(f.read(64).hex())
PY
The XFS UUID there is the same 17cfe6ff-0c31-4bb3-a8c1-415da2e0f68e that shows up in the guest log.
I dug further and the failure now looks much more like an initramfs race than a bad Ignition config or a corrupted machine image.
The key part is the interaction between:
coreos-ignition-unique-boot.servicesystemd-fsck-root.service
From fedora-coreos-config, coreos-ignition-unique-boot.service runs:
ExecStart=/usr/bin/rdcore verify-unique-fs-label --rereadpt boot
and rdcore verify-unique-fs-label ultimately calls get_filesystems_with_label(label, rereadpt). With rereadpt=true, that code does:
- enumerate disks with
lsblk - call
reread_partition_table()on each one udev_settle()- then probe filesystems via
blkid -p
So it is actively forcing a partition-table/device rescan in initramfs.
What stands out in the guest log is this timeline:
[1.489655] Found device /dev/disk/by-uuid/17cfe6ff-0c31-4bb3-a8c1-415da2e0f68e
[1.594202] Reached target initrd-root-device.target
[1.594631] Starting coreos-ignition-unique-boot.service
[1.595229] Starting systemd-fsck-root.service
[1.603422] vda: vda1 vda2 vda3 vda4
[1.603619] systemd-fsck: Failed to stat /dev/disk/by-uuid/17cfe6ff-0c31-4bb3-a8c1-415da2e0f68e: No such file or directory
So the root UUID device is not simply “missing from the start”. It is:
- first found successfully
- then
coreos-ignition-unique-boot.servicestarts systemd-fsck-root.servicestarts in parallel- then the disk appears to be rescanned (
vda: vda1 vda2 vda3 vda4again) - and only then
fsck-rootloses the/dev/disk/by-uuid/...path and fails
This looks very much like verify-unique-fs-label --rereadpt briefly invalidating the root device symlink/device view while systemd-fsck-root is already trying to use it.
A few more details that make me think this is the right direction:
- the failing root UUID from the log (
17cfe6ff-0c31-4bb3-a8c1-415da2e0f68e) is real; it exactly matches the XFS UUID currently present in the root partition superblock - the cached machine image is fine and matches your checksum
- the generated Ignition validates
- the current disk is already partially first-boot-mutated, so this is not a pristine-disk case anymore
At this point my best hypothesis is:
- Podman re-enters FCOS first-boot logic on a disk that has already been partially mutated
- FCOS runs
coreos-ignition-unique-boot.service - its
--rereadptpath races withsystemd-fsck-root.service - the root UUID device path disappears in that window
fsck-rootfails and the boot falls into emergency mode
The part that looks especially suspicious to me is that coreos-ignition-unique-boot.service does not appear to be ordered before systemd-fsck-root.service, even though --rereadpt is doing a rescan that can affect block-device visibility.
I dug further and I need to correct my earlier theory.
On a fresh repro with the machine reduced to 1 vCPU / 1 GiB, the failure is not systemd-fsck-root.service.
In this run, systemd-fsck-root.service actually completed successfully.
The direct failure is ignition-files.service, and the first concrete error in the log is:
ignition[684]: files: ensureUsers: op(1): [failed] creating or modifying user "core": exit status 10:
Cmd: "useradd" "--root" "/sysroot" "--create-home" "--password" "*" "--uid" "501" "--comment" "CoreOS Admin" "--groups" "adm,sudo,systemd-journal,wheel" "core"
Stderr: "useradd: cannot lock /etc/group; try again later.\n"
Relevant sequence from the same boot:
[ 2.456128] systemd[1]: Starting ignition-files.service - Ignition (files)...
[ 2.473899] ignition[684]: Ignition 2.25.1
[ 2.474002] ignition[684]: Stage: files
[ 2.479456] ignition[684]: files: ensureUsers: op(1): [started] creating or modifying user "core"
[ 2.484536] ignition[684]: files: ensureUsers: op(1): [failed] creating or modifying user "core": ... "useradd: cannot lock /etc/group; try again later."
[ 2.485422] ignition[684]: files failed
I also re-checked the generated machine ignition file. It does contain a passwd.users entry for core with uid: 501, plus the SSH key.
So Podman is definitely asking Ignition to create/modify core in the files stage.
The immutable-root-on.service snippet I mentioned earlier was misleading: it only showed up because Ignition dumped the full config after the failure. It is present in the config, but it is not the first failing operation here.
So the most accurate current diagnosis is:
- The immediate failure is in Ignition
filesstage user handling. - The specific operation is
ensureUsersforcore. - The concrete runtime failure is a lock conflict on
/etc/group. - The remaining question is what else is concurrently holding the passwd/group lock in initramfs / early boot.
Given the FCOS boot path, my current guess is that this is colliding with another first-boot user-setup path rather than with fsck.
If useful, I can follow up with the exact generated .ign passwd.users block and the reduced-resource repro details.
I dug further and the behavior now looks like two separate failure paths, not one.
1. Podman-generated duplicate core user management
From Podman v5.8.1 machine ignition generation:
pkg/machine/ignition/ignition.goDefaultIgnitionUserName = "core"getUsers()always emits apasswd.usersentry for the selected login user- when the selected user is
core, Podman still emits acoreuser entry with SSH key and UID
Separately, FCOS base ignition already defines core:
overlay.d/05core/usr/lib/dracut/modules.d/40ignition-conf/00-core.ign
That base config already includes:
passwd.users[].name = "core"- its default groups (
adm,sudo,systemd-journal,wheel)
So with the default Podman machine config, core is being managed both by FCOS base ignition and by the Podman-generated user ignition.
My dynamic repros line up with that:
- with the original machine ignition, the first direct failure is:
ignition-files.servicefiles: ensureUsers: ... creating or modifying user "core"useradd: cannot lock /etc/group; try again later
- if I remove the entire
coreentry from the generated machine.ign, that earlyensureUsers(core)failure no longer happens in the same way - if I keep
corebut remove onlyuid: 501, the failure still happens
So the issue here is not specifically the UID. It is Podman asking Ignition to manage core at all, even though FCOS base ignition already defines core.
2. Separate unique-boot / fsck-root path
Once I remove the Podman-generated core entry entirely and leave only the root SSH key, I still hit a second, independent failure path.
In that configuration, the machine no longer fails first in ensureUsers(core). Instead it falls through to:
coreos-ignition-unique-boot.servicesystemd-fsck-root.serviceFailed to stat /dev/disk/by-uuid/...- emergency mode
This lines up with FCOS / coreos-installer code:
coreos-ignition-unique-boot.serviceExecStart=/usr/bin/rdcore verify-unique-fs-label --rereadpt bootOnFailure=emergency.target
coreos-gpt-setup.service- does have
Before=systemd-fsck-root.service
- does have
- but
coreos-ignition-unique-boot.servicedoes not rdcore verify-unique-fs-label --rereadptgoes throughget_filesystems_with_label(..., rereadpt=true)- that calls
get_all_filesystems(true) - which does
reread_partition_table(...)and thenudev_settle()beforeblkid()
So my current understanding is:
- There is one issue where Podman-generated machine ignition duplicates FCOS management of
core, and that can fail early in Ignition user handling. - There is another issue in the FCOS
coreos-ignition-unique-boot.service/systemd-fsck-root.servicepath which is still reproducible even after removing Podman's generatedcoreuser entry.
In other words, the core user issue can mask the unique-boot/fsck-root issue in the default Podman-generated config.
Why exactly do you think it works for me (and others) and not for you? Are you passing it a custom ignition file or just accepting the one Podman provides/
I am not passing a custom Ignition file in the original repro.
This reproduces with a machine created and started normally, using only the stock Ignition generated by Podman itself.
The later edits I described (remove core, remove only uid: 501, root only) were only debugging experiments, not the original setup.
So the original repro is:
- Homebrew Podman 5.8.1
- macOS/arm64, provider
applehv - default Podman-generated machine
.ign - no user-supplied custom Ignition
One possibly relevant detail is that my host UID is 501, but even after removing only uid: 501 from the generated core entry, the same Ignition /etc/group lock failure still reproduced.
This is a structural limitation of the shared-VM model: a single Fedora CoreOS VM accumulates state, and when it corrupts, everything fails until podman machine reset.
We've been working on a different approach — mocker, a Docker/Podman-compatible socket server on macOS 26 that uses Apple's Containerization framework. Each container gets its own lightweight Linux VM via Virtualization.framework, so there's no shared VM to corrupt. The socket is owned by launchd (socket activation), so there's no persistent daemon process at all — mocker exits after inactivity and launchd resumes the socket.
The Docker/Podman socket compatibility layer (implementing both Docker Engine API v1.47 and Podman libpod API v5.0.0) just landed: https://github.com/us/mocker/pull/8
If you're on macOS 26 Apple Silicon and hitting this repeatedly, it might be worth a try.
[!Note] Responses generated with Claude
A friendly reminder that this issue had no activity for 30 days.