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

Document how to mount the shared directory on Linux at boot time #793

Merged
merged 2 commits into from Apr 18, 2024

Conversation

edigaryev
Copy link
Collaborator

Resolves #791.

docs/quick-start.md Outdated Show resolved Hide resolved
Co-authored-by: Fedor Korotkov <fedor.korotkov@gmail.com>
@fkorotkov fkorotkov merged commit 8bc2e99 into main Apr 18, 2024
7 checks passed
@fkorotkov fkorotkov deleted the document-etc-fstab-for-virtiofs branch April 18, 2024 03:34
@tschiex
Copy link

tschiex commented Apr 19, 2024

Thanks.

Currently, every file of the mounted APFS folder, as a virtiofs volume, appears as belonging to the root user in the Linux guest.

Would it be possible to preserve the APFS uid of every file in the Linux guest?

@edigaryev
Copy link
Collaborator Author

edigaryev commented Apr 23, 2024

Would it be possible to preserve the APFS uid of every file in the Linux guest?

I'm not sure if this is possible, but you can add the user option to the /etc/fstab entry:

-com.apple.virtio-fs.automount /mnt/shared virtiofs rw,relatime 0 0
+com.apple.virtio-fs.automount /mnt/shared virtiofs rw,relatime,user 0 0

And this will change the ownership of files in /mnt/shared to the currently logged-in user.

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

Successfully merging this pull request may close these issues.

documentation: how to mount a virtiofs (--dir) folder using just /etc/fstab.
3 participants