Skip to content

Instantly share code, notes, and snippets.

@mintsoft
Last active January 5, 2024 10:42
Show Gist options
  • Save mintsoft/e4bf8391cdc3a9d9014b185897cef41c to your computer and use it in GitHub Desktop.
Save mintsoft/e4bf8391cdc3a9d9014b185897cef41c to your computer and use it in GitHub Desktop.
iPXE + WDS + EFI Boot Menu
@Beecha77
Copy link

Beecha77 commented Sep 29, 2021

ok so I did some more research and it looks like the second time it gets assigned an IP address is from my router, not the server. I think that is why it can't see the file in the path because it isn't connected to the right device. I changed my scope so the lowest it would go is 192.168.1.150 but the second IP is 138. I was trying to figure out how to change that but I don't see anything online for windows server DHCP just dnsmasq. Sorry I am new to this DHCP stuff
IP

@mintsoft
Copy link
Author

@Beecha77 Ah that sounds like you have 2 DHCP servers on your network, you need to get it so that only the windows DHCP server is responding, basically the instructions will only work if there's only the one DHCP server on the network and it's the one that's configured with the settings above.

@Beecha77
Copy link

@mintsoft Wow.... I can't believe I didn't think of that. I just went and turned the second off as I don't need it. Everything is loading now thank you for your help on this!

@smtadmin67
Copy link

@mintsoft

Hi, Thank you for this useful article, it's realy work

image

but, can you tell me how can i add background picture for my main menu console?!

when i use the "console" command in my "boot.ipxe.cfg" or "iPXE.conf" after client boot it's say "console command not found"

image

image

image

would you help me?!

@mintsoft
Copy link
Author

mintsoft commented Dec 8, 2022

@smtadmin67 no idea; judging by this: https://forum.ipxe.org/showthread.php?tid=6854 it's not going to be possible

@mahboobrahman
Copy link

mahboobrahman commented Dec 10, 2022

Hello @mintsoft,

Thank you for the useful article. I have WDS + DHCP + DNS+IIS+FTP services running on Windows Server 2019 all in Hyper-V VM, in BIOS mode on a hyper-V VM and I was able to only install Windows OS via WDS in BIOS mode (I could also install Windows OSs in UEFI mode before making the iPXE changes). I followed the steps mentioned above however, I couldn't load the iPXE setup in UEFI mode and it complains about the incorrect directory/URL (Boot\iPXE\iPXE.conf) with the "no such file or directory" error. It appears to download and load the \boot\PXE\snponly.efi file successfully but it can't find the /boot/iPXE/iPXE.conf file for some reason. I have also made the "Alter WDS TFTP to support both \ and / optional changes".
See attached screenshots for the actual error and the environment setup.
wds-uefi-ipxe-error
iPXE-Folder-structure
dchp-options

Do you think you could help? I am not sure what I am missing. Thanks!

@mintsoft
Copy link
Author

@mahboobrahman I've not looked too closely there, however there is definitely a problem that I am aware of with netbooting + Hyper-V VM's. You can only netboot the VM with UEFI if it is Gen 2 (in my experience). I'm guessing you could be hitting into that.

@mahboobrahman
Copy link

@mintsoft Thanks for the help. MY Hyper-V VM is Gen 2 for testing the netbooting/PXE in UEFI mode. It can boot into WDS in UEFI mode using the WDS with dhcp option 3, 60, 66, & 67 (with no additional changes bieng made) and install Windows OSs just fine.
I have Gen 1 VM that I using for Legacy BIOS netbooting and that works well with Windows OSs too. But I am trying to use iPXE or any other utility that could help me install Linux OSs via network.

I am assuming that the server with WDS comes with TFTP path to "remoteinstall/" folder but I am not sure. I tried to change the dhcp policies option 67 (bootfilename) path to HTTP URL but it didn't work either.

@mintsoft
Copy link
Author

@mahboobrahman I'd probably test with more devices (UEFI booting) to see what happens, try with other VM's (like VirtualBox or proxmox etc) so you can see if the issue is HyperV related or not.

@arjanv
Copy link

arjanv commented Jul 6, 2023

Does this work with secure boot enabled on clients?

@mintsoft
Copy link
Author

mintsoft commented Jul 9, 2023

@arjanv no idea, try it and find out?

@jkf1585
Copy link

jkf1585 commented Nov 10, 2023

@mintsoft Would you be so kind as to share your full boot.ipxe.cfg file? I'm struggling getting Ubuntu 22.04 to install. Debian is fine.

Would be much appreciated.

@mintsoft
Copy link
Author

@jkf1585
Copy link

jkf1585 commented Nov 10, 2023

@mintsoft That's where my original config file came from. Thank you. I'm asking how you, personally, have your setup to allow Ubuntu and Mint installs. Thank you.

image

@jkf1585
Copy link

jkf1585 commented Nov 10, 2023

@mintsoft You're good for two things: 1) No good & 2) good for nothin'
:)
I'll be nice & say thanks, anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment