-
Dear all, We are using the ipxe.iso by dding to the boot disk in remote machines as universal method (uefi, legacy, vms, baremetal,...) to force reboot in pxe mode. We also managed to select and configure the interface from the mac and launch RH/Centos installations, including the ks file (don't forget to wipefs!). Thus, we don't even depend on DHCP, which is also great for our environment. However make-ing the iso per embeded script, therefore per machine, is quite a burden and also needing to install make, glibc, genisofs, ... in the controller node. (The plan is to ansibilize this for air-gapped environments) Is there any possibility to dd an standard ipxe image (iso, hd, usb, ...) to the disk, mount that partition and then add ipxe-embed-script?? We tried many approachs to achieve this, but they failed so miserably that I will save you the details. Best regards and thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Yes, you can use
This will create a combined BIOS/UEFI disk image which includes your You can also include an ARM64 image if you want a combined x86/ARM disk image, e.g.:
|
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for the answers! I wasn't able to mount the usb/hd images (they are shown ans BeOS??) to add more content and the iso image is RO by definition. So I was confused about the procedure, sorry about that. However by creating the image like: But the image wasn't working, I can see that it was able to load the lkrn and the script but then I got: With my limited knowledge I compared the content of the .iso and .img and they were different:
.img:
So I added the missing isolinux, boot.catalog and it is working. I read about the problem of not including isolinux and can be due a missing folder in my Redhat8.8 for isolinux, but that souldn't be the case as the ipxe.iso is also made from the source. Would you be please so kind as to enlightme in this matter? I can't really get a grasp of what is going on. Thank you so much again. Best regards, Felix |
Beta Was this translation helpful? Give feedback.
-
This is as expected: the raw
Did the image work before you mounted it and made changes?
This is as expected: the .img format is not an ISO9660 filesystem and does not contain isolinux.
Start with the simplest test you can do, which is probably something like:
i.e. with no autoexec script, no extra padding, legacy BIOS only (no UEFI). Test this image first without making any changes to it. Then try gradually varying the test to add the bits you need one at a time. When you encounter an error, post the full error text (including the surrounding context), or a screenshot if that's easier. |
Beta Was this translation helpful? Give feedback.
Yes, you can use
util/genfsimg
manually as follows:This will create a combined BIOS/UEFI disk image which includes your
autoexec.ipxe
script. You can subsequently edit theautoexec.ipxe
script within the disk image.You can also include an ARM64 image if you want a combined x86/ARM disk image, e.g.: