From Logicalwebhost-Wiki
[edit] create a NFS with a CentOS DVD .iso
- copy the .iso to the host, let's say put it in the /tmp folder
- mount it using
mount -ro loop /tmp/some.iso /media
- copy the files to your new NFS mount location using
mkdir /var/www/html/mount (so you can also use the same location as a http network install later :) )
cp -ar /media/. /var/www/html/mount
this will put all the relevant files where you want them, so then you can unmount the .iso
- umount /tmp/some.iso, if it hangs, you may have to use lsof /tmp/some.iso (if that doesn't work, don't worry, reboot will fix it)
- edit your /etc/exports file and add this to the end of the list
/var/www/html/mount *(ro,sync)
this will allow anyone to see the nfs mount, but only read it
/etc/init.d/nfs restart
- make sure it starts on boot
chkconfig nfs on
- make sure everyone knows about the mount
exportfs -a
- turn off the firewall and flush the tables using
iptables -F
- check to see if NFS is happy
showmount -e
- it should show NFS serving the data at the location you want
- now go to your client and try to connect, it should ask you for an IP or hostname of the NFS server, and which directory you want to look in
- you can now use the http network installation as well, just start apache :)