H2J9j

    Not so profound now! People who post inspirational quotes .. 
    have lower levels of intelligence.

    http://www.dailymail.co.uk/sciencetech
         /article-3344712/Not-profound-People-wisdom-inspirational-
         quotes-tend-lower-levels-intelligence.html

Prepare NFS server hardware in VirtualBox
-----------------------------------------

We'll use PXenial machine (Linux, Ubuntu 64-bit)

  RAM:  1024MB
  NIC1: Intel PRO/1000 MT Desktop (NAT Network: NatNetwork)
  NIC2: PCnet-FAST III (Am79C973)

Prepare NFS server software
---------------------------

  # apt-get update
  # apt-get upgrade
  # apt-get install nfs-kernel-server 
  # systemctl status sshd.service
  # mkdir -p /var/nfs/main
  # chown nobody:nogroup /var/nfs/main

Configure static interface for enp0s3
-------------------------------------

  # systemctl stop networking.service
  # cp /etc/network/interface /etc/network/interface.before

  # vi /etc/network/interfaces

  iface enp0s3 inet static
  address 10.0.2.100
  netmask 255.255.255.0
  gateway 10.0.2.2
  dns-nameservers 8.8.8.8

Configure /etc/exports
----------------------

  # vi /etc/exports

  ..
  # hack server address to subnet address/mask
  /var/nfs/main 10.0.2.0/24(rw,sync,no_subtree_check)
  /home         10.0.2.0/24(rw,sync,no_root_squash,no_subtree_check)

  # systemctl restart nfs-kernel-server.service

  # showmount -e 10.0.2.100

  Export list for 10.0.2.100:
  /home         10.0.2.0/24
  /var/nfs/main 10.0.2.0/24

Configure firewall :)
---------------------

  # service ufw stop

Client machine
--------------

If you have trouble mounting an NFS share, make sure the nfs-common package is installed on your client. [1]

Install
.......

  apt-get install nfs-common
  
Mount and use
.............

  # mkdir -p /nfs/main
  # mkdir -p /nfs/home

  # mount 10.0.2.100:/var/nfs/main /nfs/main
  # mount 10.0.2.100:/home /nfs/home

  # root@U-GNOME:~# df
  Filesystem              1K-blocks    Used Available Use Mounted on
  udev                      2003468       0   2003468  0% /dev
  tmpfs                      404680    6284    398396  2% /run
  /dev/sda1                14318640 4201784   9366472 31% /
  tmpfs                     2023384     528   2022856  1% /dev/shm
  tmpfs                        5120       4      5116  1% /run/lock
  tmpfs                     2023384       0   2023384  0% /sys/fs/cgroup
  tmpfs                      404680      20    404660  1% /run/user/1000
  10.0.2.100:/home         17414016 1467904  15038592  9% /nfs/home
  10.0.2.100:/var/nfs/main 17414016 1467904  15038592  9% /nfs/main

Links
-----

1. https://help.ubuntu.com/14.04/serverguide/network-file-system.html

2. https://help.ubuntu.com/community/SettingUpNFSHowTo