Build a PXE Server
The Network (PXE) is used to start and install Kali. It is useful for a notebook without an optical drive or USB port, and even for an enterprise to deploy a pre-installed Kali.
Kali Linux installation series:
- Install Kali Linux with a Live USB flash disk
- Install Kali Linux on Hard Disk
- Encrypted installation of Kli Linux
- Installation of Kali and Windows dual-boot in Kali Linux
- Download Kali Linux
First, installDnsmasqTo provide DHCP/TFTP services, and then editDnsmasq. confThis configuration file.
Apt-get install dnsmasq
Nano/etc/dnsmasq. conf
InDnsmasq. confIn the file, enable DHCP, TFTP, and PXE as shown below, according to your environment changesDhcp-range:
Interface = eth0
Dhcp-range = 192.168.8.100, 192.168.8.254, 12 h
Dhcp-boot = pxelinux.0
Enable-tftp
Tftp-root =/tftpboot/
After editing, We need to restart the dnsmasq service to make it take effect.
Service dnsmasq restart download and install the kali PXE network startup Image
Now, we want to create a folder to store the Kali network startup image and the image we want to download from the Kali software source.
Mkdir-p/tftpboot
Cd/tftpboot
# For 64 bit systems:
Wget http://repo.kali.org/kali/dists/kali/main/installer-amd64/current/images/netboot/netboot.tar.gz
# For 32 bit systems:
Wget http://repo.kali.org/kali/dists/kali/main/installer-i386/current/images/netboot/netboot.tar.gz
Tar zxpf netboot.tar.gz
Rm netboot.tar.gz
After the configuration is complete, you can now start your computer, and then configure it to start from the network. It will get the IP address from the PXE Server and then start kali.
----------------------------- Split line -----------------------------
Recommended reading:
Linux PXE unattended installation of PXE-E32: TFTP OPen timeout Solution
Use PXE and kickstart to automatically install Linux
RHCE-certified unattended Linux system installation (FTP + TFTP + DHCP + Kickstart + PXE)
PXE network installation (on-duty and unattended installation)
----------------------------- Split line -----------------------------
This article permanently updates the link address: