13,420
edits
Changes
no edit summary
{{Admon/important|Prerequistites|Due to the changes made in lab3, '''you will now need your vm1 running (as the DNS server)''' in order for any of your virtual machines to be able to use the internet.}}
===Setting up the NFS Server(VM2)===
'''Perform the following tasks:'''
#You will have to adjust your firewall settings on your VM2 machine to allow NFS to work.<br>Run the '''netstat''' command in order to determine the ports needed and issue the appropriate ''iptables'' command(s).
===Setting up & Testing the NFS Client(VM3)===
'''Perform the following tasks:'''
<ol><li value="5">Run the following command to avoid an error that would be caused by logging in while root_squash is active:<br>'''setsebool -P'''<br>'''use_nfs_home_dirs 1'''</li><li>Logout of vm03 and shut it down.</li><li>Restart vm03 and login using your learnid.</li><li>Check that the home directory is mounted:<br>'''mount | grep /home'''</li><li>If it is not, try running 'mount /home' as root and observe any errors.</li><li>On vm03, create an empty file by issuing the following command:<br>'''touch empty_file_created_on_vm03'''</li><li>Now shutdown vm03.</li><li>Now on the NFS server, us ls -l in your learnid's home directory to check for the file you just created.</li></ol>
===Setting up Automount on the VM(VM3)=== '''Perform the following tasks:'''
On vm03 as root perform the following tasks:
*Comment or remove the line from /etc/fstab that you entered earlier.