Strona główna / Społeczność / Blog

Last time I've prepared Gargoyle as dhcp and tftp server.

Prepare tftp on ReadyNAS

To enable tftp on ReadyNAS I've installed Tftp Server for Readynas. All files have to be in tftpboot share, so I've created it.

I have to copy all syslinux files (can be copied from gargoyle) to this share, so it contains (full path):

Reconfigure DHCP

Now I have to change dhcp server configuration. On gargoyle, in file /etc/dnsmasq.conf:

as you can see, now it has address of my ReadyNAS (192.168.1.28).

You can comment out lines

tftp on gargoyle is not need any more.

Now you should be able to boot any PC using PXE from ReadyNAS.

Boot to CentOS 7 (or any Linux) Installer

Now you can try to run Cent OS installer from network. You have to prepare FTP share and copy there files from installation image (CD/DVD). I've copied it to ReadyNAS to pub/CentOS7-1708 share .

If you use proftpd you have to create /etc/frontview/proftpd/proftpd.conf.overrides file to allow anonymous access:

Create /data/tftpboot/networkboot/CentOS7-1708 directory and copy there files:

In /data/tftpboot/pxelinux.cfg/default file add lines:

notice that ftp path is relative to pub share.

Now you should be able to boot to Cent OS installer.

Prepare NFS share

I've done it on ReadtNAS. You have to set in Settings - Network Access - NFS - Advanced settings: No Root Squash.

Be careful because you have to provide full path when mount share. My share is pub/root, so I have to mount as /data/pub/root:

As you can see, I've mounted this share in /mnt/nfsroot directory.

Install Cent OS

when You want to install another packages you can see error:

you will have to

Now you can add some GUI packages:

Based on: CentOS 7: Install PXE Boot server for thin client with NFS.

Ten kto umie pisze kod, ten kto nie umie pisze książki..., albo blog.

Pon Wt Śr Czw Pt So N
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31