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/06 07:42] – kru | 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. It will only be possible to automatically boot an OS according to the module' | ||
- | |||
- | All operations where done with root permissions. | ||
- | |||
- | First the following 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 opened with | ||
- | < | ||
- | nano / | ||
- | </ | ||
- | |||
- | All DHCP Options used in the following config can be found here [[http:// | ||
- | The following shows an example configuration for 3 different modules and 4 different kernels. | ||
- | <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 addresses 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 '' | ||
- | < | ||
- | / | ||
- | </ | ||
- | |||
- | Then the '' | ||
- | |||
- | =====Setting up nfs-kernel-server===== | ||
- | The RootFS and/or a persistent storage are exported to the client via NFS. This is the location where the 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.\\ | ||
- | The '' | ||
- | The Arguments in the brackets are the following: | ||
- | |'' | ||
- | |'' | ||
- | |'' | ||
- | |'' | ||
- | |'' | ||
- | A detailed description can be found at [[http:// | ||
- | |||
- | To apply the changes the '' | ||
- | < | ||
- | / | ||
- | </ | ||