Issue with the "Deploy Image" option
-
Hey All,
I am having an issue with my current FOG setup that just somehow broke in the last day or so. We are currently on 1.4.4. Everything has been working great, but just today the “Deploy Image” option returns this error:
http://ipaddress/fog/service/ipxe/boot.php... ok Unrecognised option "-W" Usage: item [-m:--menu <menu>] [-k:--key <key>] [-d:--default] [-g:--gap] [<label> [<text>]] see http://ipxe.org/cmd/item for further information Could not boot: Invalid argument (http://ipxe.org/1c162202) Could not boot: Invalid argument (http://ipxe.org/1c162202) Chainloading failed, hit 's' for the iPXE shell; reboot in 10 seconds
Any ideas on this one?
Thanks!
-
@Chris-Whiteley said in Issue with the "Deploy Image" option:
item Windows101809b - Windows 10 1809 (208)
item -Windows101809-Office2013 - Windows 10 1809 - Office 2013 (209)I suspect these. Remove the dashes from the image names and see what happens.
More precisely its probably this image name
:-Windows101809-Office2013
-
@Chris-Whiteley Lets see what your fog ipxe menu looks like. Key in the following url (update the ip add appropriate).
http://ipaddress/fog/service/ipxe/boot.php&mac=00:00:00:00:00:00
Call that url with a web browser, anatomize where necessary and post the results here in a code block.I have seen this error before where an IT admin had a custom menu item that wasn’t formatted correctly.
-
@george1421 This redirects to http://ipaddress/fog/management/index.php?
-
@Chris-Whiteley Well that’s a problem.
Looking at my url I gave it its wrong. I have the ampersand and question mark confused. Try this one:
http://ipaddress/fog/service/ipxe/boot.php?mac=00:00:00:00:00:00
-
@george1421 Here is the code:
#!ipxe set fog-ip ipaddress set fog-webroot fog set boot-url http://${fog-ip}/${fog-webroot} cpuid --ext 29 && set arch x86_64 || set arch i386 goto get_console :console_set colour --rgb 0x00567a 1 || colour --rgb 0x00567a 2 || colour --rgb 0x00567a 4 || cpair --foreground 7 --background 2 2 || goto MENU :alt_console cpair --background 0 1 || cpair --background 1 2 || goto MENU :get_console console --picture http://ipaddress/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console :MENU menu colour --rgb 0x00567a 0 || cpair --foreground 1 1 || cpair --foreground 0 3 || cpair --foreground 4 4 || item --gap Host is registered as FOG-test! item --gap -- ------------------------------------- item fog.local Boot from hard disk item fog.memtest Run Memtest86+ item fog.keyreg Update Product Key item fog.deployimage Deploy Image item fog.multijoin Join Multicast Session item fog.quickdel Quick Host Deletion item fog.sysinfo Client System Information (Compatibility) choose --default fog.local --timeout 10000 target && goto ${target} :fog.local exit || goto MENU :fog.memtest kernel memdisk initrd=memtest.bin iso raw initrd memtest.bin boot || goto MENU :fog.keyreg login params param mac0 ${net0/mac} param arch ${arch} param username ${username} param password ${password} param keyreg 1 isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme :fog.deployimage login params param mac0 ${net0/mac} param arch ${arch} param username ${username} param password ${password} param qihost 1 isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme :fog.multijoin login params param mac0 ${net0/mac} param arch ${arch} param username ${username} param password ${password} param sessionJoin 1 isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme :fog.quickdel login params param mac0 ${net0/mac} param arch ${arch} param username ${username} param password ${password} param delhost 1 isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme :fog.sysinfo kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=ipaddress/fog/ consoleblank=0 rootfstype=ext4 storage=ipaddress:/images/ storageip=ipaddress loglevel=4 mode=sysinfo imgfetch init_32.xz boot || goto MENU :bootme chain -ar http://ipaddress/fog/service/ipxe/boot.php##params || goto MENU autoboot```
-
@Chris-Whiteley OK that menu looks good. Now in your OP it says you were deploying an image and that error is thrown? If so schedule a deploy image task and record the mac address of the host you are going to deploy to. Take that mac address and replace the 00:00:00:00:00:00 mac address in the url with the mac address of the target system you were deploying to. Lets look at that ipxe menu.
-
@george1421 I will clarify…This only happens from the fog menu if I choose “Deploy Image”. It won’t do it if I kick a task off from the web, or choose the image now option from the “Full Host Reg”. Does that change where you want to go with this?
-
@Chris-Whiteley Ah I missed the Deploy Image from the iPXE menu.
Here is a different url to call:
http://<ipaddress>/fog/service/ipxe/boot.php?mac0=00:00:00:00:00:00&arch=x86_64&username=fog&password=password&qihost=1
Update the ipaddress and the username and password that is appropriate for your installation.
-
#!ipxe set fog-ip <ipaddress> set fog-webroot fog set boot-url http://${fog-ip}/${fog-webroot} echo Invalid login! clear username clear password sleep 3 cpuid --ext 29 && set arch x86_64 || set arch i386 params param mac0 ${net0/mac} param arch ${arch} param platform ${platform} param menuAccess 1 param debug isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme :bootme chain -ar http://<ipaddress>/fog/service/ipxe/boot.php##params```
-
@Chris-Whiteley That one is saying the user id and password in the url I provided are incorrect. You need to update those with the user ID and Password that works for imaging on your FOG server. I entered the FOG defaults of fog and password.
-
#!ipxe set fog-ip <ip address> set fog-webroot fog set boot-url http://${fog-ip}/${fog-webroot} goto MENU :MENU menu item Windows101809b - Windows 10 1809 (208) item -Windows101809-Office2013 - Windows 10 1809 - Office 2013 (209) item return Return to menu choose --default Windows101809b --timeout 10000 target && goto ${target} :Windows101809b set imageID 208 params param mac0 ${net0/mac} param arch ${arch} param imageID ${imageID} param qihost 1 param username ${username} param password ${password} isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme :-Windows101809-Office2013 set imageID 209 params param mac0 ${net0/mac} param arch ${arch} param imageID ${imageID} param qihost 1 param username ${username} param password ${password} isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme :return params param mac0 ${net0/mac} param arch ${arch} isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme :bootme chain -ar http://<ip address>/fog/service/ipxe/boot.php##params goto MENU
-
@Chris-Whiteley said in Issue with the "Deploy Image" option:
item Windows101809b - Windows 10 1809 (208)
item -Windows101809-Office2013 - Windows 10 1809 - Office 2013 (209)I suspect these. Remove the dashes from the image names and see what happens.
More precisely its probably this image name
:-Windows101809-Office2013
-
@george1421 You are the man! That was it! I made the changes and the menu came up. It was the - before the Windows 10 1809 - Office 2013 image