Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
network-boot-nfs [2018/08/19 19:36]
davu
network-boot-nfs [2018/08/19 19:47] (current)
cvh [Installing the software]
Line 7: Line 7:
 Download the image for your device. Download the image for your device.
  
-  * Create a readonly nfs export and place the "​KERNEL"​ and "​SYSTEM"​ files in to it. (Sancho: This step was unnecessary for me, the simple copy to the tftpboot directory was enough, no readonly NFS export is required)+  * Create a readonly nfs export and place the "​KERNEL"​ and "​SYSTEM"​ files in to it. 
   * Create a read-write nfs export for storage.   * Create a read-write nfs export for storage.
   * Create a file in pxelinux.cfg with the mac-address of your device (eg. 90-91-92-93-94-95).   * Create a file in pxelinux.cfg with the mac-address of your device (eg. 90-91-92-93-94-95).
Line 16: Line 16:
  
  LABEL LibreELEC.tv  LABEL LibreELEC.tv
-   ​KERNEL ​openelec/KERNEL+   ​KERNEL ​libreelec/KERNEL
      ​APPEND ip=dhcp boot=NFS=192.168.0.1:/​mnt/​store/​libreelec disk=NFS=192.168.0.1:/​mnt/​store/​libreelec/​storage overlay      ​APPEND ip=dhcp boot=NFS=192.168.0.1:/​mnt/​store/​libreelec disk=NFS=192.168.0.1:/​mnt/​store/​libreelec/​storage overlay
 </​code>​ </​code>​
Line 33: Line 33:
 To enable your clients to boot from the network, install DHCP, TFTP and NFS: To enable your clients to boot from the network, install DHCP, TFTP and NFS:
  
-  sudo aptitude ​install isc-dhcp-server tftpd-hpa nfs-kernel-server +  sudo apt install isc-dhcp-server tftpd-hpa nfs-kernel-server 
- +  
-Note that, in Ubuntu 18.04, ISC DHCP server is a transitional package for dhcp3-server.+
  
 =====Configure DHCP===== =====Configure DHCP=====
Line 120: Line 119:
  
 <​code>​ <​code>​
-DEFAULT ​OpenElec.tv+DEFAULT ​LibreELEC.tv
 PROMPT 0 PROMPT 0
  
-LABEL OpenElec.tv+LABEL LibreELEC.tv
 kernel /KERNEL kernel /KERNEL
 append ip=dhcp boot=NFS=192.168.0.2:/​mnt/​tftpboot disk=NFS=192.168.0.2:/​mnt/​media/​storage append ip=dhcp boot=NFS=192.168.0.2:/​mnt/​tftpboot disk=NFS=192.168.0.2:/​mnt/​media/​storage
Line 141: Line 140:
  
   sudo ufw allow proto udp from 192.168.0.0/​24 to any port 69  (for tftp)   sudo ufw allow proto udp from 192.168.0.0/​24 to any port 69  (for tftp)
-  sudo ufw allow proto tcp from 192.168.0.0/​24 to any port 111 (for openelec)+  sudo ufw allow proto tcp from 192.168.0.0/​24 to any port 111 (for LibreELEC)
   ​   ​
 =====Additional configuration:​ mountd===== =====Additional configuration:​ mountd=====