How to Install Kali Linux via Network PXE

Install Kali Linux via Network PXE

Booting and installing Kali  via the network (PXE) may be useful from a single Computer install with no CDROM/USB , to deployments of Kali Linux in Enterprises is supporting pre-seeding of the Kali installation. Here is following Phases to install Kali Linux via Network PXE.

Setting up a PXE Server

dnsmasq is a utility used to setup server for DHCP and DNS, So We need to install dnsmasq first. Second is editing of /etc/dnsmasq.conf file. USer can do thing by using following commands.

#apt-get install dnsmasq

#leafpad /etc/dnsmas1.conf

In dnsmasq.conf, empower DHCP, TFTP and PXE booting and set the dhcp-range to match your network. If necessary you can likewise characterize your gateway and DNS servers with the dhcp-option mandate as shown as follows:

interface=eth0
dhcp-range=192.168.101.100,192.168.101.200,12h
dhcp-boot=pxelinux.0
enable-tftp
tftp-root=/tftpboot/
dhcp-option=3,192.168.101.1
dhcp-option=6,8.8.8.8,8.8.4.4

When the editing done, save the file and start the dnsmasq. If this service take more time to install as usual then restart the service. After restarting service changes take effect automatically.

#service dnsmasq restart

Download Kali PXE Netboot Images

If you want to setup PXE network you need to run following commands

#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

Configure Target to Boot From Network

After setting up PXE server then you need to go on another machine to see what happend. and you another system will be start.

Vijay Kumar

Ethical Hacking & Penetration Testing Trainer, For more detail view My Profile

Latest posts by Vijay Kumar (see all)

3 thoughts on “How to Install Kali Linux via Network PXE

Leave a Reply

Your email address will not be published. Required fields are marked *