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

Unable to test podman on mac with provider applehv due to vfkit missing #21064

Closed
adrianriobo opened this issue Dec 20, 2023 · 13 comments
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@adrianriobo
Copy link

adrianriobo commented Dec 20, 2023

Issue Description

Trying to start a podman machine on macos with applehv it ends up on error due to missing vfkit binary

Steps to reproduce the issue

Steps to reproduce the issue

  1. export CONTAINERS_MACHINE_PROVIDER= applehv
  2. podman machine init
  3. podman machine start

Describe the results you received

Got an error:

Error: could not find "vfkit" in one of {[/opt/podman/qemu/bin $BINDIR/../libexec/podman /usr/local/opt/podman/libexec/podman /opt/homebrew/opt/podman/libexec/podman /opt/homebrew/bin /usr/local/bin /usr/local/libexec/podman /usr/local/lib/podman /usr/libexec/podman /usr/lib/podman] {<nil>}}.  To resolve this error, set the helper_binaries_dir key in the `[engine]` section of containers.conf to the directory containing your helper binaries.

Describe the results you expected

Podman machine running successfully with applehv provider

podman info output

podman v4.8.2 installed from pkg

Podman in a container

No

Privileged Or Rootless

Rootless

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

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

@adrianriobo adrianriobo added the kind/bug Categorizes issue or PR as related to a bug. label Dec 20, 2023
@benoitf
Copy link
Contributor

benoitf commented Dec 20, 2023

hello, for now the podman installer is not installing vfkit

you need to install it on your own using https://github.com/crc-org/vfkit/releases

@rhatdan
Copy link
Member

rhatdan commented Dec 20, 2023

@gbraad @baude @ashley-cui PTAL

@gbraad
Copy link
Member

gbraad commented Dec 20, 2023

@rhatdan I also noticed this; but it is more a question if when this becomes the default. Adding this to the installer is an easy step.

Note: also need to be signed:
https://github.com/crc-org/crc/blob/c7fcb5a417a3bcf8b3ba312482165b0ea507c853/packaging/darwin/macos-pkg-build-and-sign.sh#L53C1-L53C26

@adrianriobo adrianriobo changed the title Unable to test podman on mac with provider applehv Unable to test podman on mac with provider applehv due to vfkit missing Dec 20, 2023
@rhatdan
Copy link
Member

rhatdan commented Dec 22, 2023

I think the goal is podman 5.0

@jfrantzius
Copy link

@rhatdan following your advice from #20776 (comment) , I erased anything podman-related from brew (because I also had the frozen applehv machine startup), and used the Podman Desktop .dmg installer.

Does your comment above mean applehv without manually installing vfkit will work only with Podman 5.0 upwards?

@rhatdan
Copy link
Member

rhatdan commented Jan 12, 2024

Yes, that is my understanding.

@jfrantzius
Copy link

I'm worrying a bit when applehv will be easily consumable for our developers, as 5.0 sounds a bit far off... Is there perhaps some release planning happening in the open that you are aware of? Maybe 5.0 will then have applehv as default?

On the other hand, I hope brew will still be supported (maybe less appropriate for early testing). Is vfkit then a brew dependency of Podman? I'm asking because I got applehv to start and say hello via brew (before it broke down)

@rhatdan
Copy link
Member

rhatdan commented Jan 12, 2024

podman 5.0 is scheduled for February. There are fixes comming soon for the QEMU issues, I have been told.

@gbraad
Copy link
Member

gbraad commented Jan 12, 2024

Right, a fix for qemu is on it's way. But for vfkit, we are currently looking at how to handle the inclusion of the vfkit driver binary. @cfergeau and @baude might have more information on how to handle this.

@ashley-cui
Copy link
Member

I can take a look at including it in the pkginstaller

@jfrantzius
Copy link

Hi @ashley-cui , is vfkit per chance now included in the 4.9 .pkg installer?

@ashley-cui
Copy link
Member

@jfrantzius Haven't gotten to it yet, I'll try to get to it asap. In the meantime, VKFit can be installed via

brew tap cfergeau/crc
brew install vfkit

@Luap99
Copy link
Member

Luap99 commented Apr 4, 2024

This is fixed with the 5.0 installers I assume

@Luap99 Luap99 closed this as completed Apr 4, 2024
@stale-locking-app stale-locking-app bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Jul 5, 2024
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators Jul 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

7 participants