NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.39k stars 14.34k forks source link

podman: add qemu as runtime dependency on macOS #272354

Open Endle opened 12 months ago

Endle commented 12 months ago

Describe the bug

$ podman machine init
Error: exec: "qemu-system-aarch64": executable file not found in $PATH

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix-shell -p podman
  2. podman machine init

Additional context

If I execute the following, then podman would work well on mac M1

Podman supports mac now via QEMU: https://www.redhat.com/sysadmin/run-containers-mac-podman

Notify maintainers

@marsam @cyrillzadra

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

~ $ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.1.0, macOS 14.1.2`
 - 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`

Add a :+1: reaction to issues you find important.

Endle commented 12 months ago

@zowoq had written such comment in the podman package:

# do not add qemu to this wrapper, store paths get written to the podman vm config and break when GCed

https://github.com/NixOS/nixpkgs/commit/48642c634e51b949d3ea01f09c28c83f9aa824d9#diff-e9abaf0b11bcba1f41344004fb7cec8941d995fc78a6b883079f9ea6715c0973R36

If qemu is excluded from this package by purpose, then it should be considered as feature instead of bug?