NFS with Virtualbox shared folder

Issues related to configuring your network
Post Reply
BrutalGrinder
Posts: 1
Joined: 2016/12/29 09:40:37

NFS with Virtualbox shared folder

Post by BrutalGrinder » 2016/12/29 10:42:16

Hello,
I have a workstation with Win7 and Virtualbox installed, and a Centos 6.4 as guest. I shared a folder ("sharedFolder") by Virtualbox to share some data between host and guest; In the Centos guest I configured NFS server to share a folder (the VirtualBox "sharedFolder") with other workstations with only installed Centos 6.4. The problem is I can shared any folder except for the "shared folder"... this is the output:

mount.nfs: access denied by server while mounting 171.30.1.212:/media/sharedFolder

this is the /etc/exports

/media/sharedFolder *(rw,sync,insecure)


WHY?!

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: NFS with Virtualbox shared folder

Post by TrevorH » 2016/12/29 11:08:46

Try running setenforce 0 and then seeing if it works. If it does then look at your audit log and use the instructions in the wiki to make a policy file to allow the access - http://wiki.centos.org/HowTos/SELinux

Also, 6.4 is positively ancient and absolutely riddled with high severity security vulnerabilities. You need to yum update ASAP to get to 6.8.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply