I'm running Fedora 17 with KVM and the virtual machine runs okay. I tried to follow this to get access to a file on the host system but SELinux prevents the VM from accessing any files other than those in /var/lib/libvirt/images
. This is the message the host gives when running ls
inside the VM on the shared path.
SELinux is preventing /usr/bin/qemu-kvm from read access on the
directory share.
How can I get around this? The purpose of my VM is to test binaries on multiple Linux distributions so a shared path would be easiest. Is there a way to make /tmp/share absolutely accessible by everyone?
audit2allow
which will automatically generate the SELinux policy changes that will allow the operations currently being denied.