containers / podman

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

libkrun machine start stucks if cpus greater than available on the machine #23194

Open jeffmaury opened 1 week ago

jeffmaury commented 1 week ago

Issue Description

On my Mac M2Pro I tried to run podman machine init --cpus 12 --memory 16384 --now and the process is stuck

I noticed that the limit on my machine is 8 and system info reports I have 8 cpus for performance and 4 for efficiency

Steps to reproduce the issue

Steps to reproduce the issue

  1. Enable libkrun
  2. podman machine init --cpus 12 --memory 16384

Describe the results you received

Process never returns

Describe the results you expected

Podman machine should start

podman info output

N/A

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

No

Additional environment details

Using podman from main branch

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

slemeur commented 1 week ago

I faced the same issue. It also affect resizing an existing machine I was expecting a timeout at the creation of the podman machine.

In order to get things sorted out, I did: killall qemu-system-aarch64 gvproxy podman krunkit

jakecorrenti commented 1 week ago

I can take a look at this