ipxe with sanboot
-
well memdisk as a limit it can transfer, which is why i’m not using it.
at the step i am right know using :
sanboot iscsi:10.0.0.200:::1:iqn.2017-11.net.tghit:kali
it actually boot but trying to install fail due to that os trying to load the “cd”
so my goal is to use iscsi to mimic a cd/dvd but it need to stay connected while the iso is booting which is the challenge for me since i try to do an all os compatible pxe install server -
@slimzy I think you are heading down a path to failure with iscsi delivery.
Let me say that you may be able to get the kernel to boot using this, but then the kernel will go look for a cdrom and it won’t find one, the iscsi disk may be presented to the linux kernel as a hard drive, or (which is probably the case) once the linux kernel boots it won’t see the iscsi disk at all because that iscsi disk is being managed by iPXE and once iPXE releases the hardware to the linux kernel all of that iscsi stuff is gone. The same as with my tutorial stuff. Once ipxe and tftp delivered the kernel to that target computer, the linux kernel had to have its own way to locate the nfs share to get the rest of the bits.
I might see later tonight if I can add pxe booting into kali linux to my tutorial. It should work.
-
they do have a tutorial but is a netboot (light-boot) iso
-
@slimzy Just for my curiosity, why do you want to boot kali linux from the FOG server. Is your end goal to netboot into a live environment with kali?
-
@george1421 said in ipxe with sanboot:
why do you want to boot kali linux from the FOG server. Is your end goal to netboot into a live environment with
the end goal is to get rid of CD/DVD and usb key.
and also to make as simple as possible (almost drop in) so that i can refresh the distro iso without to much time to make the magic happen.the only other way i can actually see would be to install each distro i what to do and then to configure it to read and connect automatically on the iscsi drive. ( would be doable in a vm to not lose to much time and with script). but to be determined. tell me if that would be something interesting ( could possibly forward the recompiled iso to add into the plugin section for a easy way to get those for other.
also the more the merrier they say !
-
also doing that in fog could very well make fog the best pxe server
-
@slimzy I’m not familiar with kali linux I did use backtrack 5 a few years ago.
I’m pretty sure I can get fog to launch the linux installer or live environment what ever comes up when you boot from the dvd rom. From there I assume you can deploy from the live environment to the target computer’s local hard drive. I’m pretty sure I can do this without iscsi at all. From there you may need to use some scripts to copy your local data back to the target computer.
What I will focus on tonight is just pxe booting kali into what ever comes up when you try to boot from dvd.
I’m currently downloading kali-linux-2017.2-amd64.iso and will start “testing” later tonight. Right now its family time.
-
last time did a pxe server in a suse os i was booting from a copy of the iso. be editing every file of the isolinux file the the new path.
-
is there a way to bind a root-path per item in the menu or we can’t?
-
@slimzy said in ipxe with sanboot:
is there a way to bind a root-path per item in the menu or we can’t?
I’m not sure I understand this ^^
But, I think I have an understanding of what is going on. I can see at the end of the kernel init it attempts to contact the local cdrom. If it doesn’t find it the kernel then starts the network install bits. When you pxe boot I can get the kali linux loader to work (without the dvd iso image). It loads and the reaches out to the internet to download what it needs and completes the installation. I suspect that when you boot off the cdrom that it loads the files directly from the dvd and does not reach out to the internet.