Deploying Kali over Network PXE/iPXE Install

Booting and installing Kali Linux over the network (PXE) can be useful from a single laptop install with no CDROM or USB ports, to enterprise deployments supporting pre-seeding of the Kali Linux installation.

Setup a PXE Server

First, we need to install dnsmasq to provide the DHCP/TFTP server and then edit the dnsmasq.conf file:

kali@kali:~$ sudo apt install -y dnsmasq
kali@kali:~$ sudo vim /etc/dnsmasq.conf

In dnsmasq.conf, enable DHCP, TFTP and PXE booting and set the dhcp-range to match your environment (we are using If needed you can also define your gateway and DNS servers with the dhcp-option directive as shown below:


With the edits in place, the dnsmasq service needs to be restarted in order for the changes to take effect.

kali@kali:~$ sudo systemctl restart dnsmasq

Download Kali PXE Netboot Images

Now, we need to create a directory to hold the Kali Linux Netboot image and download the image we wish to serve.

kali@kali:~$ sudo mkdir -p /tftpboot/

# 64-bit:
kali@kali:~$ sudo wget -P /tftpboot/
# 32-bit:
kali@kali:~$ sudo wget -P /tftpboot/

kali@kali:~$ sudo tar -zxpf /tftpboot/netboot.tar.gz -C /tftpboot
kali@kali:~$ sudo rm -f /tftpboot/netboot.tar.gz

Configure Target to Boot From Network

With everything configured, you can now boot your target system and configure it to boot from the network. It should get an IP address from your PXE server and begin booting Kali Linux.

Post Installation

Now that you’ve completed installing Kali Linux, it’s time to customize your system.

The General Use section has more information and you can also find tips on how to get the most out of Kali Linux in our User Forums.

Updated on: 2021-Oct-27
Author: g0tmi1k