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

Adding support for non-top-level directories when setting up a volume #23

Open
c3d opened this issue Aug 4, 2022 · 1 comment
Open

Comments

@c3d
Copy link

c3d commented Aug 4, 2022

The following message is a bit puzzling:

% krunvm  changevm f35 -v /Users/ddd:/home/ddd
Invalid volume, only single direct root children are supported as guest_path

With podman, it is perfectly fine to pass a directory like this. This can be worked around using a bind mount from a top-level directory, but I'm curious about the reason for that restriction to start with.

@slp
Copy link
Collaborator

slp commented Aug 4, 2022

On macOS, libkrun implements volume sharing by extending virtio-fs to have special nodes on top of the root inode. While it's technically possible to extend this to allow those special nodes to reside anywhere in the filesystem, I'm not sure if the benefits justify the increase in complexity (krunvm doesn't intend to be a podman replacement).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants