meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
documentation:server_side [2015/07/03 12:08] – [Setting up nfs-kernel-server] mic | documentation:server_side [2016/11/03 14:23] (current) – removed vor | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Installing the PXE Server====== | ||
- | |||
- | This tutorial was done with a Debian 8. And it will only be possible to automaticly boot an OS according to the modules MAC adress. In this configuration there is no GUI to select a boot image. | ||
- | |||
- | All operation where donw with root permissions. | ||
- | |||
- | First the fowlloing services have to be installed: | ||
- | < | ||
- | apt-get install dnsmasq, nfs-kernel-server | ||
- | </ | ||
- | '' | ||
- | Also it runs the TFTP Server that provides the kernel images. | ||
- | |||
- | '' | ||
- | |||
- | =====Setting up dnsmasq===== | ||
- | |||
- | the config file can be opende with | ||
- | < | ||
- | nano / | ||
- | </ | ||
- | |||
- | All DHCP Options used in the following config can be found here [[http:// | ||
- | The following shows an example configuration for 3 drifferent mdoules and 4 different kernel. | ||
- | <file INI> | ||
- | #Binds the DHCP server to eth0 | ||
- | interface=eth0 | ||
- | #Sets the IP range with a lease time of 8 hours | ||
- | dhcp-range=192.168.13.201, | ||
- | |||
- | #Enables the TFTP service of dnsmasq | ||
- | enable-tftp | ||
- | #Bind the TFTP root folder | ||
- | tftp-root=/ | ||
- | #DHCP Option 66 sets which TFTP Server will be used by the client | ||
- | dhcp-option=66, | ||
- | #DHCP Option 42 sets a NTP time server | ||
- | dhcp-option=42, | ||
- | |||
- | |||
- | #The following sets a flag for all MAC adresses starting with the given number, | ||
- | #so it is possible to set different setups for different modules | ||
- | dhcp-host=00: | ||
- | dhcp-host=00: | ||
- | #" | ||
- | #the Android kernel | ||
- | dhcp-host=70: | ||
- | |||
- | |||
- | #These different tags can be used with " | ||
- | #" | ||
- | #" | ||
- | |||
- | #Kernel filename for Toradex Apalis T30 provided by the TFTP Server | ||
- | dhcp-boot=tag: | ||
- | #Root path that is shared by the nfs-kernel-server | ||
- | dhcp-option=tag: | ||
- | |||
- | #Kernel filename for Toradex Colibri T20 | ||
- | dhcp-boot=tag: | ||
- | #Root path | ||
- | dhcp-option=tag: | ||
- | |||
- | #Kernel filename for Christmann Apalis Exynos Linux | ||
- | dhcp-boot=tag: | ||
- | #Root path | ||
- | dhcp-option=tag: | ||
- | |||
- | #Kernel filename for Christmann Apalis Exynos Android | ||
- | dhcp-boot=tag: | ||
- | #Root path | ||
- | dhcp-option=tag: | ||
- | </ | ||
- | |||
- | After the '' | ||
- | < | ||
- | / | ||
- | </ | ||
- | |||
- | =====Setting up nfs-kernel-server===== | ||
- | The rootfs and/or a persistent storage are exported via nfs to the client. And this is the location where root filesystem of the desired distribution must be copied to. | ||
- | |||
- | The shared/ | ||
- | |||
- | < | ||
- | nano / | ||
- | </ | ||
- | |||
- | Here is an example configuration: | ||
- | |||
- | <code INI> | ||
- | / | ||
- | / | ||
- | / | ||
- | / | ||
- | </ | ||
- | |||
- | First in line is the folder that will be shared via nfs.\\ | ||
- | Where the '' | ||
- | The Arguments in the brackets are the following: | ||
- | |'' | ||
- | |'' | ||
- | |'' | ||
- | |'' | ||
- | |'' | ||
- | A detailed description can be found at [[http:// | ||
- | |||
- | To apply the changes the '' | ||
- | < | ||
- | / | ||
- | </ | ||