NixOS/nixpkgs

Podman 5.0.2 on aarch64-darwin fails on `podman machine start`

msgilligan opened this issue · 1 comments

Describe the bug

podman machine start fails on macOS (aarch64-darwin) when using the current unstable Nix pkgs podman (5.0.2)

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix profile install podman
  2. podman machine init
  3. podman machine start

Result of podman machine start is:

ERRO[0000] process 22471 has not ended                  
Error: exec: "vfkit": executable file not found in $PATH

Expected behavior

Starting machine "podman-machine-default"
API forwarding listening on: /var/folders/6d/12xt4b4m8xjf3t0059_w18bh0000gn/T/podman/podman-machine-default-api.sock
You can still connect Docker API clients by setting DOCKER_HOST using the
following command in your terminal session:

        export DOCKER_HOST='unix:///var/folders/6d/12xt4b4m8xjf3t0059_w18bh0000gn/T/podman/podman-machine-default-api.sock'

Machine "podman-machine-default" started successfully

Additional context

https://github.com/crc-org/vfkit seems to be missing.

If you install vfkit with Homebrew as follows:

brew tap cfergeau/crc
brew install vfkit

and then run podman machine start using Nixpgks Podman 5.0.2, the VM starts as expected.

A possible solution would be to:

  1. Create a Nix package for vfkit
  2. Configure the podman package so that it automatically installs vfkit on macOS

Notify maintainers

@zowoq @marsam

Metadata

 - system: `"aarch64-darwin"`
 - host os: `Darwin 22.6.0, macOS 13.6.6`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

I opened a separate Packaging Request for vfkit: #306179