containers / podman

Podman: A tool for managing OCI containers and pods.
https://podman.io
Apache License 2.0
23.74k stars 2.41k forks source link

Podman Desktop Mac M2 qemu error on machine start #20915

Closed savagematt closed 7 months ago

savagematt commented 1 year ago

Bug description

When I start podman-machine-default from a clean install of Podman Desktop 1.4.0 I get an error related to qemu

Operating system

macOS Ventura 13.5.1, Apple M2

Installation Method

Installer from website/GitHub releases

Version

1.4.0

Steps to reproduce

Steps to reproduce the issue

  1. Install Podman Desktop 1.4.0 on M2 MBP
  2. Start Podman machine
  3. View logs

Relevant log output

Logs show:

Starting machine "podman-machine-default"
Waiting for VM ...
Error: qemu exited unexpectedly with exit code 1, stderr: qemu-system-aarch64: -accel hvf: invalid accelerator hvf
qemu-system-aarch64: falling back to tcg
qemu-system-aarch64: unable to find CPU model 'host'


### Additional context

I tried creating a new machine, with the same result
benoitf commented 1 year ago

@savagematt could you check your qemu's version ?

using command line qemu-system-aarch64 --version

and from where comes from qemu using which qemu-system-aarch64

mairin commented 11 months ago

@savagematt wondering if you had a chance to check this. did you end up getting Podman Desktop working on your M2 Mac? I have one here so I can try to reproduce with more info. Can you check the qemu version? (copy/pasta-ing below for your convenience):

using command line qemu-system-aarch64 --version

and from where comes from qemu using which qemu-system-aarch64

github-actions[bot] commented 10 months ago

A friendly reminder that this issue had no activity for 30 days.

xakraz commented 10 months ago

Looks similar to this issue: https://github.com/containers/podman/issues/20776

Is it a duplicate?

Luap99 commented 7 months ago

Podman 5.0 no longer support qemu on macos, we now use the apple hypervisor