Hi guys. I am using Fedora 33 with virt-manager/qemu/libvirt. I have few Linux guests, but all of them have same issue with sharing the folder on host with the guest. It seems that SELinux is causing these problems. I will write in short the performed steps:
The folder I want to share is located in my $HOME/Downloads.
I add it using virt-manager interface as new filesystem (tried both - mapped and squash). When I try to start VM I get the long error reported. Pastebin link below:
At the same time with this error, SELinux reports an issue and makes proposal of following solution when clicked on Troubleshoot:
You need to change the label on vmshared’
semanage fcontext -a -t virt_image_t ‘vmshared’
restorecon -v ‘vmshared’
I perform it as suggested, but again the same issue remains and SELinux again reports the same.
Permissions: tried them all, including chmod-ing the folder with 777 and putting it in libvirt group.
I read about Samba solution, did not try it and would like to skip it.
Thank you for your effort.