Get iPXE Menus to Resemble Old Syslinux PXE Menus?
-
@tom-elliott Yea I am ok keeping it a flat menu structure, but right now my 2 big issues are:
- UEFI and BIOS menus looking different (especially in size)
- I am unclear on the correlation between the menu color fields and what they actually set in the Web GUI. The documentation on the matter has not clearly defined for me what the syntax of the fields means.
-
@tom-elliott said in Get iPXE Menus to Resemble Old Syslinux PXE Menus?:
ipxe efi doesn’t currently support background images.
@Tom-Elliott Am I following correctly that this is a limitation of iPXE and not FOG then?
To re-state it and make sure I am following along:
iPXE itself does not support background images when booting UEFI?
If so, I have been unable to find any mention of this limitation anywhere else (not that I dont believe you, but was hoping to be able to track progress on the issue). Is it a known issue as far as the iPXE folks are concerned?
I tried to register for the iPXE forums yesterday to ask them some questions but their registrations reCapture is broken, so I cant register. I emailed them and havent heard back regarding registration yet.
In any case its a bit disappointing if iPXE indeed is limited to no background image under UEFI
-
@zer0cool said in Get iPXE Menus to Resemble Old Syslinux PXE Menus?:
In any case its a bit disappointing if iPXE indeed is limited to no background image under UEFI
Its only limited on certain uefi implementations. I have see the fog background on some uefi systems and not others. I really just ignore it. That doesn’t mean its right only that I don’t pay attention now. The next time I image a uefi system I’ll note if the background is displayed.
-
@george1421 are you saying then that @Tom-Elliott is incorrect in his statement or have I misunderstood what he said?
If it is actually down to the UEFI device, is there a way to include the background image so that it displays on capable systems but does not crash system which cannot display it?
After reading iPXE documentation it appears only png is supported (2 other file types for images I never heard of, not the typical jpg, bmp, etc), so I created an 800x600 version of my background as png (instead of 1024x768) and iPXE still crashes when it gets to the line loading the png. Computer makes a single beep and reboots.
I have been using a relatively new/modern Dell Precision T3620, updated to latest firmware. The server grade machines I will need to deploy to are generally ~5 years old or newer (in terms of when the parts in them came out, not the age of the machine itself).
What I have found so far is any attempt to add an image causes UEFI booting to crash, but I havent tried any other machines yet.
-
@zer0cool said in Get iPXE Menus to Resemble Old Syslinux PXE Menus?:
@george1421 are you saying then that @Tom-Elliott is incorrect in his statement or have I misunderstood what he said?
I’m not saying either, but based on my experience I’ve see the fog ipxe menu displayed on some uefi based computers, other display a black screen with white characters and some kind of reddish highlight and other look like 80x25 character mode, and other be like character mode but the font size is 3 or 4 point in size (frick’n small).
-
@george1421 Ok, I am with you now.
Anyway you know of for me to include the png but prevent the crash when booting UEFI on some clients?
-
@zer0cool OK lets start over.
I just grabbed an optiplex 7050, 7040, Latitude 7270 and 7280 from inventory, pxe booted it and it displays the FOG background, as other systems do in bios/legacy mode. The 7010 I had in the build up room of course does not get past ipxe initializing devices…
My production server is still running fog 1.4.4.
The default fog bg.png file is 800x600x32 bits. If I remember correctly there is a maximum file size for this image. For some reason 70K comes to mind. I need to do some research on that data point.
Yes png files are only supported by iPXE.
-
@george1421 Very cool.
My png weighs in at a hefty 9kb lol. I will have to check the depth. Also I noticed in the boot.php that the console line does not include a statement for the depth (which may be fine).
The documentation here is unclear on the matter
The width, height, and colour depth are specified as minimum requirements; the actual values used may be higher than specified. If a background picture is used then the width and height may be omitted; the console size will then be chosen based on the size of the background picture.
So above I get that without a picture width, height and depth should be used? They then say that with a background width and height can be omitted, but do not say the same for depth.
Beyond that, they also say that the resolution should adjust to the size of the background image, leading me to believe if you had a 1024x768 background it should adjust to that resolution without specifying it on the console line which is good.
I am however wondering if adding the --depth parameter may correct the issues with the background on UEFI?
-
@zer0cool I was going to test with this but ran out of time at the moment.
When you pxe boot and ipxe is at “Initializing devices…”, unplug the network cable. You will get an error message and something about pressing
s
for the ipxe console. Do that. Once at the console then plug the network cable back in.On the ipxe console, key in
dhcp net0
to init the network adapter.At this point you should be able to key in ipxe commands such as console and /or load your custom .png file for the background.
-
Could anyone help me with just getting the colors as per my original post. I have been in the iPXE General Config | Menu colors, pairing, settings for hours and cant wrap my head around whats whats.
Put simply, here is the color scheme I am aiming for:
- title text and selected text to be 0x0077c8 (selected text white background)
- background black
- unselected text white
Right now both UEFI and BIOS are greyish title, white selected text with red background, red unselected text. Its really hard on the eyes.
I have been mulling over:
http://ipxe.org/cmd/cpair
http://ipxe.org/cmd/colourand my boot.php and just cant wrap my head around what changes what. I have tried playing around with it and the results so far have been 100% not what I expected making it impossible to gain any traction on it. Some options I cahnge and expect to see a difference appear to do nothing, others I change and expect a certain element/color to change and something completely different changes.
Thank you