Install and configure netbootxyz on your preferred machine (follow official documentation).
2. Create a new project in netbootxyz and add the necessary files to it (e.g., Kali Netboot image).
3. Configure DHCP to point to netbootxyz server’s IP address as the next-server option.
4. Set up your target machine to boot from network, select “Install” in the PXE menu and watch the unattended setup progress!
To download the Kali Netboot image, you can use wget to grab it from http://http.kali.org/kali and save it with a .tar.gz extension (this is just for convenience; you can use any other format if you prefer). After extracting the contents of the tarball, remove the original file to free up some space on your server.
To configure DHCP to point to netbootxyz server’s IP address as the next-server option, add this line in dnsmasq.conf:
# This line configures DHCP to point to the netbootxyz server's IP address as the next-server option
dhcp-option=next-server,192.168.0.10 # replace 192.168.0.10 with the IP address of the netbootxyz server
Remember that this is just an example: like with NetbootCD, you can add as many distributions as you want, provided you have the necessary space on the server.
Final thoughts
First of all, we recommend patience. PXE is known to be kind of slow, regardless of your top Gigabit switch you bought last week. Second, read the comments and examples in dnsmasq.conf as they will be useful now and later.
So basically what this does is set up a DHCP server that also serves TFTP files for PXE booting. The IP range we’re using here is 192.168.101.100-200, but you can change it to match your network setup.
The dhcp-option directive sets up the DNS servers and gateway for our PXE clients. If needed, you can add more options by repeating this line with different values (e.g., dhcp-option=3,192.168.0.1).
To download the Kali Netboot image, we’re using wget to grab it from http://http.kali.org/kali and saving it in /tftpboot with a .tar.gz extension (this is just for convenience; you can use any other format if you prefer). After extracting the contents of the tarball, we remove the original file to free up some space on our server.
To configure your target machine to boot from network, you’ll need to press a key during startup (usually F2 or ESC) and select the appropriate option in the BIOS menu. This will bring up the PXE boot menu where you can choose which image to load.
If everything works correctly, you should see the Netboot GRUB screen with options for Kali Linux 64-bit (amd64) or 32-bit (i386). Choose your preferred version and hit Enter to start the installation process.