libvirt-qemu cannot access files in my home directory
I'm trying to add a shared folder to one of my guests but libvirt cannot access any directory or file inside my home directory, it works if the directory is anywhere else. Changing permissions doesn't work, changing ownership of files doesn't work either. Anyone knows how I can alter this behavior?
About this post
- Posted
- Archived
- Score
- 0 · 50% up
- Kind
- Text
- ID
- vt5inc
3 comments
You can change the user that the QEMU process will be run as in
/etc/libvirt/qemu.confto your own user, which appears to be enough to make this work, however, this might not be desirable or may have unintended side effects. YMMV.Permissions do work if you set them right. (namei is handy to check if you did), but I would keep this out oh $HOME and make a symlink in instead.(anything other than 700 on ~ can easily lead to accidents)
Deleted before we saved it.