PDA

View Full Version : PXE - Kali & Debian netboot



Routaran
2016-03-10, 04:06
Hello,
I have a pxe server that currently hosts the debian netboot. I downloaded and setup the kali netboot and it is essentially identical to the debian netboot setup. My problem right now is how to get both of them to work together.
Here's what I have done so far.
the kali netboot and debian netboot both extract into a debian-installer folder with the same file names. My solution was to rename the Kali's folder to kali-installer instead.
in my /srv/tftp/ i've setup the following folder structure


debian-installer/amd64/<all the debian stuff>
kali-installer/amd64/<all the kali stuff>
pxelinux.0
pxelinux.cfg/default
ldlinux.c32
libutil.c32
vesamenu.c32
libcom32.c32


I've modified the pxelinux.cfg/default as follows


DEFAULT vesamenu.c32
prompt 0
timeout 300
MENU TITLE PXE Menu
label Debian
menu label Debian install
kernel debian-installer/amd64/linux
append priority=low vga=788 initrd=debian-installer/amd64/initrd.gz ---

label Kali
menu label Kali install
kernel kali-installer/amd64/linux
append priority=low vga=788 initrd=kali-installer/amd64/initrd.gz ---


The debian boot work's just fine. The problem is kali.

When I select Kali install, it sits for a little bit and then ends up launching the debian installer instead. I have a feeling that because the folder structure of both debian and kali netboot images are identical, my renaming kali's installer folder, kali's kernel and initrd are just using the files under debian-installer/

Unfortunately, my knowledge in this area is limited and I would appreciate some help in modifying, i'm assuming the initrd file, to have its internal links point to kali-installer instead of debian-installer.

Thanks

Routaran
2016-03-10, 14:48
Turns out that I actually did have everything done correctly. The only thing I didn't do properly was copying the files lol. I must have accidentally copied the debian-installer and then renamed it to kali.
I ended up simply deleting all the contents of the /srv/tftp folder and starting again and this time all the above steps worked.