Could not select: Exec format error
-
I’m trying to add dban to my fog server. When I select that entry in the fog menu I get the error message in the title. What am I missing?
-
@mentaluproar I have seen this when you try to boot an bios based image on a uefi based computer. How are you starting dban? Are you loading the kernel and init.rd file or are you trying to boot from an iso image?
-
This post is deleted! -
@george1421 kernel dban.bzi nuke=“dwipe” silent vga=785
boot -
@mentaluproar so this dban.bzi is located in the /tftpboot directory on the fog server?
The exec format error is iPXE saying the kernel file is not bootable.
Locate that file on the fog server (should be in the /tftpboot directory) and then issue
file dban.bzi
does it say its a linux kernel file? -
I couldn’t find the file at all! retracing my steps, I followed the instructions for adding a DBAN entry here:
https://wiki.fogproject.org/wiki/index.php?title=Include_any_ISO_in_the_FOG_Bootmenu#DBANBut when I access the fog server at /dban in a web browser, I see the folder is there but there’s nothing in it. However, when I ls the folders contents through CLI, I can see the files in there just fine. This doesnt change wether I cp the files into it or mount -o loop them into that location. they show up only in the CLI.
-
@mentaluproar The mount -loop or simply copying the files there does the same thing. So the url you should be using is
http://<fog_server_ip>/dban/<filename>
There could be a number of things going on here. the path of the files may be /var/www/dban or /var/www/html/dban depending on the apache servers doc root settings.
As a test I would create a file in the dban directory, lets call it test.html in that file put the following.
<html><head></head><body>It works!</body></html>
Now try to download the file at
http://<fog_server_ip>/dban/test.html
Does it load the file?If no then the fog configuration for the web server is getting in the way.
There are other options, but lets first see if
-
@george1421 placed the file in /var/www/html/dban/test.html and the browser, when directed there, says “not found”
-
@mentaluproar said in Could not select: Exec format error:
/var/www/html/dban/test.html
try it in
/var/www/dban/test.html
different distros have a different apache2 document root.
-
@george1421 now I see the files, but I’m still getting an exec format error. the file command says the bzi is a linux kernel x86 boot executable bzimage