Updated: 22 October 2026 · Applies to: Kali Linux, deploying it to another machine over the network (PXE/iPXE)
This sets up a PXE server on a Kali machine so another computer on the same network can boot the Kali installer without a USB drive or DVD.
1. Install and configure dnsmasq
dnsmasq provides the DHCP and TFTP services PXE needs:
sudo apt install -y dnsmasq
Edit its config file:
sudo vim /etc/dnsmasq.conf
Enable DHCP, TFTP and PXE booting, and set dhcp-range to match your own network (replace the example range below with your actual subnet):
interface=eth0 dhcp-range=203.0.113.100,203.0.113.200,12h dhcp-boot=pxelinux.0 enable-tftp tftp-root=/tftpboot/ dhcp-option=3,203.0.113.1 dhcp-option=6,8.8.8.8,8.8.4.4
dhcp-option=3 sets the gateway and dhcp-option=6 sets the DNS servers handed out to PXE clients; adjust both to your network, or drop them if your network already has its own DHCP server handling those.
Restart dnsmasq to apply the change:
sudo systemctl restart dnsmasq
2. Download the Kali netboot image
sudo mkdir -p /tftpboot/
64-bit:
sudo wget http://http.kali.org/kali/dists/kali-rolling/main/installer-amd64/current/images/netboot/netboot.tar.gz -P /tftpboot/
32-bit:
sudo wget http://http.kali.org/kali/dists/kali-rolling/main/installer-i386/current/images/netboot/netboot.tar.gz -P /tftpboot/
Extract it and remove the archive:
sudo tar -zxpf /tftpboot/netboot.tar.gz -C /tftpboot sudo rm -f /tftpboot/netboot.tar.gz
3. Boot the target machine
Set the target system to boot from the network (PXE boot) in its BIOS/UEFI settings. It should pick up an IP address from your dnsmasq server and start booting the Kali installer. Once it finishes, you can configure the new system as usual.