From 8bc2e99f63c8f3b3ef1ecdc6d9aecd4ff74082c1 Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Thu, 18 Apr 2024 07:34:01 +0400 Subject: [PATCH] Document how to mount the shared directory on Linux at boot time (#793) * Document how to mount the shared directory on Linux at boot time * Use admonition Co-authored-by: Fedor Korotkov --------- Co-authored-by: Fedor Korotkov --- docs/quick-start.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/quick-start.md b/docs/quick-start.md index 2b6c96f..d4a95be 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -143,7 +143,15 @@ Note: to use the directory mounting feature, the guest VM needs to run macOS 13. To be able to access the shared directories from the Linux guest, you need to manually mount the virtual filesystem first: ```bash +mkdir /mnt/shared mount -t virtiofs com.apple.virtio-fs.automount /mnt/shared ``` The directory we've mounted above will be accessible from the `/mnt/shared/project` path inside a guest VM. + +??? info "Auto-mount at boot time" + To automatically mount this directory at boot time, add the following line to the `/etc/fstab` file: + + ```shell + com.apple.virtio-fs.automount /mnt/shared virtiofs rw,relatime 0 0 + ```