Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podman machine start hangs on macOS (x86_64) #25121

Open
crahan opened this issue Jan 25, 2025 · 33 comments
Open

podman machine start hangs on macOS (x86_64) #25121

crahan opened this issue Jan 25, 2025 · 33 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. machine macos MacOS (OSX) related

Comments

@crahan
Copy link

crahan commented Jan 25, 2025

Issue Description

Starting the podman machine VM on macOS Intel Sequoia hangs right after the bootloader screen with the message Booting 'Fedora CoreOS 41.20250105.3.0 (ostree:0). I tried the same on an Apple Silicon device and the VM boots fine, showing EFI statements, then going through its normal boot process.

I tried the Podman version in Homebrew, the offical CLI installer, and installing through Podman Desktop. In all cases it halted immediately after the bootloader screen.

Below are screenshots of the podman machine start --log-level debug output and the VM itself showing where it hangs. Console debug output does not contain any errors.

Image
Image

Steps to reproduce the issue

Steps to reproduce the issue

  1. Run podman machine init.
  2. Run podman machine start --log-level debug.
  3. VM boot process halts right after the bootloader screen.

Describe the results you received

The Podman Machine VM bootup process hangs.

Describe the results you expected

The Podman Machine VM boots.

podman info output

No `podman info` output due to no VM.
Tested with Podman versions 5.3.2 and 5.3.1 with similar results.

Podman in a container

No

Privileged Or Rootless

Rootless

Upstream Latest Release

Yes

Additional environment details

macOS Sequoia on a Macbook Pro Intel device.

Additional information

No response

@crahan crahan added the kind/bug Categorizes issue or PR as related to a bug. label Jan 25, 2025
@szymon3
Copy link

szymon3 commented Jan 27, 2025

Same issue here, same OS and hardware

$ podman info
OS: darwin/amd64
provider: applehv
version: 5.3.2

Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM
Error: unable to connect to Podman socket: Get "http://d/v5.3.2/libpod/_ping": dial unix /var/folders/wt/fy6rz4y53l5dz9b0s4w5wnv80000gn/T/storage-run-501/podman/podman.sock: connect: no such file or directory

EDIT: I did some testing and the latest working release for me was 5.2.5.

@Luap99 Luap99 added macos MacOS (OSX) related machine labels Jan 27, 2025
@Luap99 Luap99 changed the title podman machine start hangs on macOS podman machine start hangs on macOS (x86_64) Jan 27, 2025
@lielfr
Copy link

lielfr commented Jan 27, 2025

I have the issue on an Intel Mac as well. It seems to work ok on an ARM mac though

@baude
Copy link
Member

baude commented Jan 28, 2025

thank you for the reports, we are trying to find someone with an intel mac and see if we can reproduce and fix. otherwise, i may be asking lots of questions here ;)

@benoitf
Copy link
Contributor

benoitf commented Jan 28, 2025

I'm able to start a podman machine on macOS/Intel but using 14.6.1 (23G93) version (Sonoma)

will try to upgrade the OS

@benoitf
Copy link
Contributor

benoitf commented Jan 28, 2025

uname -a
Darwin fbenoit-mac 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:00 PDT 2024; root:xnu-10063.141.2~1/RELEASE_X86_64 x86_64
$ podman version 
Client:       Podman Engine
Version:      5.3.2
API Version:  5.3.2
Go Version:   go1.23.5
Git Commit:   85043bb1a3818102194afa82845cb63841067c9c
Built:        Wed Jan 22 14:40:10 2025
OS/Arch:      darwin/amd64

Server:       Podman Engine
Version:      5.3.2
API Version:  5.3.2
Go Version:   go1.23.4
Built:        Wed Jan 22 01:00:00 2025
OS/Arch:      linux/amd64

@k-paz
Copy link

k-paz commented Jan 28, 2025

you might also check your binaries

file /opt/podman/bin/krunkit - gives me WRONG/arm version:
/opt/podman/bin/krunkit: Mach-O 64-bit executable arm64

while I think it also should be the x86_64/AMD64 version,
so I've just opened a separate case for that issue:
#25145

if you agree then please support the case resolution.

@benoitf
Copy link
Contributor

benoitf commented Jan 28, 2025

upgraded the system to latest macOS (Sequoia 15.3)

podman machine init
Looking up Podman Machine image at quay.io/podman/machine-os:5.3 to create VM
Extracting compressed file: podman-machine-default-amd64.raw: done
Machine init complete
To start your machine run:

	podman machine start

 ~  podman machine start
Starting machine "podman-machine-default"

This machine is currently configured in rootless mode. If your containers
require root permissions (e.g. ports < 1024), or if you run into compatibility
issues with non-podman clients, you can switch using the following command:

	podman machine set --rootful

API forwarding listening on: /var/run/docker.sock
Docker API clients default to this address. You do not need to set DOCKER_HOST.

Machine "podman-machine-default" started successfully
 ~  podman run quay.io/podman/hello 
Trying to pull quay.io/podman/hello:latest...
Getting image source signatures
Copying blob sha256:81df7ff16254ed9756e27c8de9ceb02a9568228fccadbf080f41cc5eb5118a44
Copying config sha256:5dd467fce50b56951185da365b5feee75409968cbab5767b9b59e325fb2ecbc0
Writing manifest to image destination
!... Hello Podman World ...!

         .--"--.
       / -     - \
      / (O)   (O) \
   ~~~| -=(,Y,)=- |
    .---. /`  \   |~~
 ~/  o  o \~~~~.----. ~~
  | =(X)= |~  / (O (O) \
   ~~~~~~~  ~| =(Y_)=-  |
  ~~~~    ~~~|   U      |~~

Project:   https://github.com/containers/podman
Website:   https://podman.io
Desktop:   https://podman-desktop.io
Documents: https://docs.podman.io
YouTube:   https://youtube.com/@Podman
X/Twitter: @Podman_io
Mastodon:  @[email protected]

@benoitf
Copy link
Contributor

benoitf commented Jan 28, 2025

I'm using vfkit there, are you using krunkit ?

@benoitf
Copy link
Contributor

benoitf commented Jan 28, 2025

$ podman machine ls
NAME                     VM TYPE     CREATED        LAST UP            CPUS        MEMORY      DISK SIZE
podman-machine-default*  applehv     3 minutes ago  Currently running  6           2GiB        100GiB
```

@crahan
Copy link
Author

crahan commented Jan 28, 2025

I'm using vfkit there, are you using krunkit ?

Happy to test. How can I verify or force vfkit vs krunkit?

@crahan
Copy link
Author

crahan commented Jan 28, 2025

Output from my screenshots above seem to indicate I'm using vfkit.

@benoitf
Copy link
Contributor

benoitf commented Jan 28, 2025

CONTAINERS_MACHINE_PROVIDER=applehv podman machine init foo
CONTAINERS_MACHINE_PROVIDER=applehv podman machine start foo

@benoitf
Copy link
Contributor

benoitf commented Jan 28, 2025

using libkrun I have expected

CONTAINERS_MACHINE_PROVIDER=libkrun podman machine start kr
Starting machine "kr"
ERRO[0000] process 2253 has not ended
Error: fork/exec /opt/podman/bin/krunkit: bad CPU type in executable

@benoitf
Copy link
Contributor

benoitf commented Jan 28, 2025

can you try podman machine reset before trying again init/start

@crahan
Copy link
Author

crahan commented Jan 28, 2025

Here's the output

❯ podman --version
podman version 5.3.2

~
❯ which podman
/opt/podman/bin/podman

~
❯ CONTAINERS_MACHINE_PROVIDER=vfkit podman machine init foo
Error: unknown VMType `vfkit`

@benoitf
Copy link
Contributor

benoitf commented Jan 28, 2025

yes sorry, it's applehv not vfkit

@benoitf
Copy link
Contributor

benoitf commented Jan 28, 2025

but try podman machine reset, first

@crahan
Copy link
Author

crahan commented Jan 28, 2025

UPDATE: this is the output after running podman machine reset.

❯ CONTAINERS_MACHINE_PROVIDER=applehv podman machine init foo
Looking up Podman Machine image at quay.io/podman/machine-os:5.3 to create VM
Getting image source signatures
Copying blob c81785cd451b done   |
Copying config 44136fa355 done   |
Writing manifest to image destination
c81785cd451baeab0f16dce777a70f050caa74f8868bb80e74df10940b0093f6
Extracting compressed file: foo-amd64.raw: done
Machine init complete
To start your machine run:

        podman machine start foo


~ took 30s
❯ podman machine list
NAME        VM TYPE     CREATED         LAST UP     CPUS        MEMORY      DISK SIZE
foo*        applehv     42 seconds ago  Never       4           2GiB        100GiB

~
❯ CONTAINERS_MACHINE_PROVIDER=applehv podman machine start foo --log-level debug
INFO[0000] podman filtering at log level debug
DEBU[0000] Using Podman machine with `applehv` virtualization provider
...
INFO[0000] Exposing vsock port 1025 on /var/folders/lh/z0pqwz5918z836csbnx5w32w0000gn/T/podman/foo.sock (listening)
INFO[0000] Exposing vsock port 1024 on /Users/crahan/.local/share/containers/podman/machine/applehv/foo-ignition.sock (listening)
INFO[0000] waiting for VM to stop
2025-01-28 19:17:32.798 vfkit[24977:2192211] +[IMKClient subclass]: chose IMKClient_Modern
2025-01-28 19:17:32.798 vfkit[24977:2192211] +[IMKInputSession subclass]: chose IMKInputSession_Modern

Image

@benoitf
Copy link
Contributor

benoitf commented Jan 28, 2025

Screen.Recording.2025-01-28.at.19.22.50.mov

@crahan
Copy link
Author

crahan commented Jan 28, 2025

In my case the VM window doesn't go past the Booting... message. Even now, several minutes later, it's still at that same spot.

When I try on Apple Silicon instead, it works as expected.

@speedbunny
Copy link

speedbunny commented Jan 28, 2025

Same issue here. Not really a podman user. Only commands I use are podman machine init and podman machine start.

podman machine start now hangs whereas it worked just fine and dandy for the last three months.

Tried fresh install / uninstall via Homebrew and also installed from the amd64 dmg after that. Downloaded desktop to try and troubleshoot.

podman --version
podman version 5.3.2

podman info
OS: darwin/amd64
provider: applehv
version: 5.3.2

which podman
/opt/podman/bin/podman

CONTAINERS_MACHINE_PROVIDER=applehv podman machine init foo
podman machine start foo also hung (as suggested above)

As a basic user, I just want to be able to spin up a pod and network. Having to use Docker for now.

@baude
Copy link
Member

baude commented Jan 28, 2025

i can also report it worked here ... let's take homebrew out of the equation and only use the released installers? i downloaded the amd64 installer. Are folks that are failing using the universal installer?

@benoitf
Copy link
Contributor

benoitf commented Jan 28, 2025

for the record, I tried using a macbook pro 2018

Image

@crahan
Copy link
Author

crahan commented Jan 28, 2025

@baude I can confirm my testing and ouput are from the official Podman CLI installer.

2020 Macbook Pro here (although I just noticed I'm on Sequia 15.2).

Image

@baude
Copy link
Member

baude commented Jan 28, 2025

with everyone being so active, would you be willing to join a gmeet to see if we can get to the bottom of this?

@crahan
Copy link
Author

crahan commented Jan 28, 2025

with everyone being so active, would you be willing to join a gmeet to see if we can get to the bottom of this?

Yeah, that would make sense!

@baude
Copy link
Member

baude commented Jan 28, 2025

meet.google.com/aga-rrwq-qrn

@speedbunny
Copy link

with everyone being so active, would you be willing to join a gmeet to see if we can get to the bottom of this?

sure, not as if I'll be much help - currently updating to 15.3 to see if that helps.

@crahan
Copy link
Author

crahan commented Jan 28, 2025

Update to 15.3 finished, but unfortunately the issue remains for me.

@baude
Copy link
Member

baude commented Jan 28, 2025

@crahan can you humor us and remove the current installation, install amd64 only binaries, podman machine reset, and try again ?

@crahan
Copy link
Author

crahan commented Jan 28, 2025

@crahan can you humor us and remove the current installation, install amd64 only binaries, podman machine reset, and try again ?

Tested with the amd64-only CLI installer as well, and getting the same result.

@cfergeau
Copy link
Contributor

cfergeau commented Jan 29, 2025

podman machine start worked for me both on macOS 13 and 15 on my intel macbook. However, when I tried podman --debug machine start on macOS 15/intel, then it got stuck at "Booting 'Fedora CoreOS ....'"

EDIT: I could only reproduce once :-/

@russcook
Copy link

russcook commented Jan 31, 2025

I am having this same issue. Yesterday I removed Docker Desktop and installed podman from the universal DMG and I am seeing the exact results being described above.
System: Macbook Pro 2020, 4 Thunderbolt ports (Intel)

I also tried installing with the podman-installer-macos-amd64.pkg from Github which did not resolve the issue. Rebooted multiple times, with no success.

Help would be appreciated

Edit:
I upgraded from Sanoma to Sequoia 15.3 in between troubleshooting. The upgrade solved nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. machine macos MacOS (OSX) related
Projects
None yet
Development

No branches or pull requests

10 participants