1
edit
Changes
→NFS and Automount
==NFS and Automount==
In this lab you'll set up a Fedora 16 host as an NFS (Network File System) server. Then you'll set up a Fedora 16 guest VM (Virtual Machine) that will import its /home directory from this host.
{{Admon/important|Prerequisites|Before you begin make sure your Fedora 16 host machine software is and virtual machines are up to date (yum update).<br />After you build your VM, ensure its updated as well (yum update).<br />Ensure both host and VM 's have firewalls set up according to prior labs.And ensure you are using your learnid account (the first user created) }}
===Part A: Setting up the Guest VM===
#Ensure the VM guest network is functioning properly. You can use the "host cbc.ca" command to see if DNS queries are being answered.
#Start firefox on vm01 and ensure Ensure you can surf have full connectivity to the web with itinternet.
#Be sure to set the firewall on both your VM and host according to prior labs. Use the command iptables-save to verify.
#Once your VM guest network is working use the ifconfig command and record the IP adddress of your VM guest. The address should be something like 192.168.122.yyy.
===Part B: Setting up the NFS Server on the Host===
*On your Fedora host machine edit /etc/exports so that it contains ONLY the following line (where 192.168.122.yyy is the IP address of your guest VM):
/home 192.168.122x.yyy4(rw,root_squash)#Start your nfs server with the command 'service systemctl start nfs start'. NOTE: You'll have to adjust your firewall on the host to get NFS to work, so do this before you go on to the next step.
#Start up vm01 and login as joker and run and record the output of the 'df -Th' command.
#Back on your host PC run and record the output of the 'exportfs' and 'showmount -e' commands.