-
Notifications
You must be signed in to change notification settings - Fork 624
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
vz: podman "Permission denied" on bind mounts #1882
Comments
So besides all the cosmetic changes and the writable home directory, you changed two lines vmType: "vz"
mountType: "virtiofs" So it seems indeed to be a difference either from the the vmType, or from the mountType... Does it make a difference if you use the mounted home directory only, and not all of |
Since this is Fedora, you might also want to see if there is any difference coming from SELinux
|
Looks like its related to SELinux policy and also a limitation from virtiofs As mentioned in this thread i could confirm it works when using I can confirm sshfs working fine (without security-opt) with vz driver |
Thanks both for your comments. Yes it is linked to SELinux so I can close this ticket which is not related to Lima. |
This should be reported to https://github.com/containers/container-selinux/issues ? |
Or Podman "known issues" ? |
We need to mount the host volumes with context parameter when using virtiofs, Something similar to this we need to perform. If you all agree, shall we reopen this issue. I can take a look. |
I have gone though the code flow and seems the mount points for these are set through the userdata instead of script(incase of rosetta). So it is impossible to know the correct distro before hand, we cant set the secontext parameters. Though this can be worked around by maintaining a list of selinux supported distros, it wont come very handy as we need to update the file whenever a new distro comes up.!!! One possible workaround is we can unmount and remount those mountpoints using the secontext options. This wont be a straight fix but get the job done. Looking for suggestions It should look like this
|
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Fixes lima-vm#1882 Signed-off-by: T K Chandra Hasan <[email protected]>
Description
Hello,
I did some tests to run podman against a VM spinned by lima with Apple hypervisor On my M1 machine MacOs Ventura 13.6.
I took the podman template model and adapted it to use
vz
and mounted everything withvirtiofs
:Then, starting this and opening a shell inside this VM:
I tried to mount
/Users
inside a container:When I do exact same with the official template works fine:
I spent a couple of hours on this and was wondering whether I missed something obvious or if it was a bug.
Thanks in advance for your help and kudo for lima.
The text was updated successfully, but these errors were encountered: