![]() In my case I called it auto.projects because I shared projects that I worked on to the Ubuntu VM. In order to do this, we need a autofs mount file in /etc/ folder, you can call this folder with a easy to recognisable name. If all of the above steps has worked for you now it is the time to setup a config file for autofs to mount the above NFS share on demand. Once ssh’ed in run the following command to validate the export.Ībove command should show the exported directory, if not try running the same on the OSX for validating that NFS has started to share the directory. Remember that the IP address defined in the export above should allow the Ubuntu server IP for it to access it. ![]() SSH into your Ubuntu server and install autofs for mounting the above export. Run the following command in your OS X terminal, which will restart nfsd daemon and trigger above export (may not require). Indicate that when reading/writing operations will be done under this user. Is subnet mask, which indicates all IPs from 10.11.1.1 to 10.11.1.255 will be allowed. ![]() Is the network subnet that will be allowed to access the share. Is the directory we export as a NFS share. So assume you need to export the directory in /Volumes/Disk 2/ProjectsĮdit the /etc/exports file in your favourite editor as root (ex: sudo vim /etc/exports), paste the below command and change it to fit your requirement. The gist of it is OSX knows how to handle(export) NFS shares as long as you write the instructions correctly in /etc/exports file. ![]() I will discuss very few steps involved in getting a NFS directory shared from OSX and mounting it on an Ubuntu VM. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |