Setting Up an NFS Installation Server
Installation Server (First Virtual Machine)
Log in as root.
yum install system-config-kickstart nfs-utils
yum install gpm (mouse support in console)
service gpm restart
vim /etc/idmapd.conf
Change the domain to:
Domain = virtual-server.local
Save the file :wq
vim /etc/exports
Add these lines (to create and share folders over the network):
/linux/x64 172.20.1.0/24 (ro,sync) "Share the entire operating system"
/linux/ks 172.20.1.0/24 (ro,sync) "Read only, synchronize" "Share kickstart files"
Save with :wq
useradd
passwd
init 5 (to start the graphical interface)
Use the terminal.
First Terminal Window (Root)
su -
cat /etc/exports
mkdir -p /linux/x64
mkdir -p /linux/ks
tree /linux/
cd /linux/ks/
system-config-kickstart
ll
mount -t iso9660 /home/username/Downloads/fedora64dvd.iso /mnt/ -o loop
ll /mnt/
cp -Rpv /mnt/* /linux/x64/
Second Terminal Window (Created User)
firefox &
ifconfig
(Use this information in the Kickstart configuration)man grub
ll
ls
mount
(Mount the ISO image as if it were a CD)mount -t iso9660 /home/username/Downloads/fedora64dvd.iso /mnt/ -o loop
su -
(Log in as root)service nfslock restart
service rpcbind restart
service nfs restart
showmount -e ip_address
(e.g., 172.20.1.166)service iptables start
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -p tcp --dport 111 -j ACCEPT
iptables -A INPUT -p tcp --dport 2049 -j ACCEPT
iptables -A INPUT -p udp --dport 2049 -j ACCEPT
iptables -A INPUT -p tcp --dport 4000 -j ACCEPT
iptables -A INPUT -p udp --dport 4000 -j ACCEPT
iptables -A INPUT -p tcp --dport 4001 -j ACCEPT
iptables -A INPUT -p udp --dport 4001 -j ACCEPT
iptables -A INPUT -p tcp --dport 4001 -j ACCEPT
iptables-save
service iptables save
(To save the firewall rules)show
showmount -e
netstat
(View TCP connections)
netstat | grep tcp
In Firefox
- 172.20.1.180 (Only in the classroom)
- Download Fedora 64
- Search for VGA GRUB
Kickstart Configurator
In Basic Configuration, check the last two options.
For Installation Method, select “NFS” and enter:
- NFS Server: 172.20.1.166
- NFS Directory: /linux/x64
In Boot Loader options:
- Check “Use GRUB Password”
- Set a password
- Check “Encrypt”
Use a kernel parameter called vga
in Installation Options:
kernel parameters: vga=795
In Partition Information, check “Remove existing Linux partitions.”
Add the following partitions:
- /boot, ext4, 512 MB
- /, ext4, 5120 MB
- /home, ext4, 5120 MB
- swap, 2048 MB
In Display Configuration, select “Disabled”.
In Package Selection, check “KDE Software”.
Go to the File option and save the configuration in the /linux/ks
folder.
Close the configurator.
NFS Server (Second Virtual Machine Configuration)
Configure the virtual machine’s network settings to connect to the physical network.
Use the following parameter:
ks=nfs:172.20.1.166:/linux/ks/spks.cfg
"IP Address" "Filename"