-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Error when using --volume
on podman machine init
on Mac
#13001
Comments
@baude PTAL |
You need a custom patched version of QEMU, unfortunately the support for Mac is not available upstream yet. See NixOS/nixpkgs#122420 for patches
Maybe the error message could be better ? The workaround is to skip the -v flag to init, and then use something else ( A similar error can happen if it is missing
But otherwise, it is supposed to mount OK. $ ./bin/podman machine init --now --volume ~/src:/src
Extracting compressed file
Image resized.
Machine init complete
INFO[0000] waiting for clients...
INFO[0000] new connection from @ to /run/user/1000/podman/qemu_podman-machine-default.sock
Waiting for VM ...
Mounting volume... /home/anders/src:/src
Machine "podman-machine-default" started successfully
$ uname
Linux |
Thanks for the pointers, guess we'll just need to wait for the qemu change to be merged. May be worth adding to the podman docs that for the -v option the host must be Linux. I'm sure there are lots of folks waiting for this support on MacOS to get rid of Docker Desktop so it would be good to make that clear in the release notes. I'll also give sshocker a try. |
It's not really true, though. But it could be worth documenting that "virtfs" support is needed. |
This seems to be working for me now. #13256 (comment) |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I am trying to use the new --volume option added as part of 4.0.0 in
podman machine init
. I'm am getting this error from qemuvirtfs support is disabled
.Steps to reproduce the issue:
On my 2019 Macbook Pro running MacOS 11.6.2
brew install --HEAD podman
podman machine init --now --volume ~/src:/src
Describe the results you received:
The machine init command shows this output
Describe the results you expected:
I expect the machine to start successfully with the ~/src dir mounted inside the VM.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:The VM was not started so no machine output
Package info (e.g. output of
rpm -q podman
orapt list podman
):N/A
Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
2019 Macbook Pro running MacOS 11.6.2
Qemu version installed via brew:
The text was updated successfully, but these errors were encountered: