Lesson 6

Date: 2/22/2017
Network File System (NFS)
Linux System Administration

Exercise: CentOS VM setup

Make sure CentOS7 VM is down, then clone it into a new VM, centmaster:
virsh list
virsh shutdown CentOS7
virt-clone --connect=qemu:///system -o CentOS7 -n centmaster -f /home/hostadm/KVM/centmaster.img

Start centmaster VM, and login to the console:
virsh start centmaster 
virsh console centmaster 
Correct the VM hostname by editing file /etc/hostname.
Reboot centmaster VM.

On master VM, export directory /NFS/home to centmaster by following two steps below:
Edit file /etc/exports on master VM and add the line below
/NFS/home  centmaster(rw)
Run command
exportfs -a
Verify the exports by running command showmount on master VM:
showmount -e master

Take me to the Course Website