KVM:NFS Permission denied

A NFS storage is configured for saving the VM disks.When start the VM on the hosts, the terminal promote an error that  no permitttion to access the NFS storage.The error seems like this:

“internal error Process exited while reading console log output: char device redirected to /dev/pts/4     qemu-kvm: -drive file=/var/lib/libvirt/images/nfs/CentOS-7.6.qcow2,format=qcow2: could not open disk image /var/lib/libvirt/images/nfs/CentOS-7.6.qcow2: Permission denied

In fact ,we found the root cause .The linux selinux policy does not allow the qemu-kvm software to use the resource of NFS.Therefore if we need to connecte with NFS storage,we have to change the selinux setting to be”disabled”


vi /etc/selinux/config

SELINUX = disabled


save and reboot the system, it will be fine.