I shared a folder from my host to guest using this guide https://www.linux-kvm.org/page/9p_virtio In example they are using old GUI version and now you cant set Type Passthrough and Squash. You need to Choose Driver: Handle or Path and Mode: Mapped, Passthrough and Squash. I set Driver Default and Mode: Passthrough and did not click Export files as readonly mount. When I start my guest I typed

 mkdir /tmp/host_files
sudo mount -t 9p -o trans=virtio,version=9p2000.L /hostshare /tmp/host_files

When I try to copy a file from my guest to guest /tmp/host_files (host) I get error "You can't write here" How to fix this ?

Host machine folder

ls -ld test
drwxrwxrwx 2 user user 4096 

Guest folder

ls -ld /tmp/host_files
drwxrwxrwx 2 user user 4096

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.