Skip to content


AAEONAEU-SW edited this page Nov 26, 2020 · 1 revision
Clone this wiki locally

In this tutorial, you will be able to create your PXE server on your UP and then, install your Ubuntu in other UP boards via Ethernet.

In this case, we will use Ubuntu 16.04 server for UP server board and the OS for UP client board.

00. Install Ubuntu 16.04 server for board server:

Check the ISO here:

01. Prerequisites

 sudo apt-get install apache2 tftpd-hpa inetutils-inetd isc-dhcp-serve
 sudo apt-get install pxelinux syslinux dnsmasq

02. Configure DHCP server (choose any available address network):

Edit: sudo nano /etc/network/interfaces

Define your own Network:

 auto enp2s0
 iface enp2s0 inet static

Edit: sudo nano /etc/default/isc-dhcp-server Add your network interface:


Edit: sudo nano /etc/dhcp/dhcpd.conf

Uncomment the following line: authoritative;

Add your own subnet:

 subnet netmask {
  option routers;
  option broadcast-address;
  default-lease-time 600;
  max-lease-time 7200;

Restart dhcp server:

sudo systemctl restart isc-dhcp-server

03. Configure TFTP server:


sudo nano /etc/default/tftpd-hpa


 OPTIONS="-l -s /var/lib/tftpboot"

Edit: sudo nano /etc/inetd.conf


 tftp    dgram   udp    wait    root    /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot

Restart tftpd server:

 sudo systemctl restart tftpd-hpa
 sudo systemctl status tftpd-hpa

04. Download the UEFI signed grub image:

Copy the file into /var/lib/tftpboot directory.

05. Download the correct netboot.tar.gz archive (navigate to the correct one!):

We recommend Ubuntu 14.04 netboot package.

Extract netboot.tar.gz into /var/lib/tftpboot

06. Create the grub configuration:

Create a grub directory:

mkdir /var/lib/tftpboot/grub/

Create and edit a configuration file for your grub:

sudo nano /var/lib/tftpboot/grub/grub.cfg

For standard install (Not Preseeded), add:

 menuentry "Install Ubuntu" {
  set gfxpayload=keep
  linux /ubuntu-installer/amd64/linux gfxpayload=800x600x16,800x600 --- quiet
  initrd /ubuntu-installer/amd64/initrd.gz

07. Edit DHCP server settings:

sudo nano /etc/dhcp/dhcpd.conf


 allow booting;
 allow bootp;
 option option-128 code 128 = string;
 option option-129 code 129 = text;
 filename "grubnetx64.efi.signed";</code>

Restart DHCP server:

sudo systemctl restart isc-dhcp-server

08. Setup for UP client:

Enable PXE network from BIOS settings on UP2 client:

 Advanced -> Network Stack Configuration -> Enable Network Stack -> Enable Ipv4 PXE Support

Also, select the Network option as first boot option:

 Boot -> Boot Option #1 : [Network:UEFI: Ipv4..]

Connect the UP server to the UP client via Ethernet cable.

Power your board on and then, PXE will boot after some seconds.

You will see the Ubuntu installer running there.