PXE boot to FOG 1.2.0 from FOG 0.32 menu
-
Hi guys, I tried to set up chain loading in the PXELinux menu, but it was not successful. I have done some researches online but I’m not able to figure it out. Could you guys please give me a hand? Thanks a lot!
Here’s what I have done.- added the pxelinux menu entry for chain loading to ipxe
LABEL FOG-IT-120TEST
#MENU PASSWD fjasjfskajgdfjgjdfgjdfjgsdfgafgjfd.
kernel fog/kernel/ipxe.krn
append dhcp && chain [url]http://10.2.6.40/fog/service/ipxe/boot.php?mac=${net0/mac}[/url]
MENU LABEL FOG 1.2.0 iPXE
TEXT HELP
FOG 1.2.0 iPXE chainload TEST.
ENDTEXT
\n- copied “ipxe.krn” from FOG 1.2.0 server to FOG 0.32 server /tftpboot/fog/kernel/ipxe.krn
- copied “default.ipxe” from FOG 1.2.0 server to FOG 0.32 server /tftpboot/default.ipxe
Here’s the config in “default.ipxe”
#!ipxe
cpuid --ext 29 && set arch x86_64 || set arch i386
params
param mac0 ${net0/mac}
param arch ${arch}
param product ${product}
param manufacturer ${product}
param ipxever ${version}
param filename ${filename}
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
:bootme
chain [url]http://10.2.6.40/fog/service/ipxe/boot.php##params[/url]- I’ve got the error saying “Could not boot: Input/output error ([url]http://ipxe.org/1d0c6139[/url])”. Please see attached image.
I looked it up on ipxe.org, but there’s not really a solution. Hope you guys can give me some help. Thanks a lot!!
[url=“/_imported_xf_attachments/1/1662_Photo Feb 06, 12 32 25 PM.jpg?:”]Photo Feb 06, 12 32 25 PM.jpg[/url]
-
Here is what I did to get 0.33 to boot from a 0.32 menu item.
[url]http://fogproject.org/forum/threads/chain-booting-0-33-beta-from-0-32.10156/[/url]
Worth a try. -
[quote=“jbsclm, post: 41855, member: 3158”]Here is what I did to get 0.33 to boot from a 0.32 menu item.
[url]http://fogproject.org/forum/threads/chain-booting-0-33-beta-from-0-32.10156/[/url]
Worth a try.[/quote]Hi jbsclm, thanks for your suggestion.
That’s basically what I have done so far, except “[B]Disable[/B] the dhcp service on the 0.33 server, you will need to consult the O/S documentation for details on how to do that.” If I don’t use FOG as a DHCP server, do I still have to disable DHCP service on the server? Thanks! -
No, the reason i said to disable it as you shouldn’t have 2 dhcp servers on the same network.if neither of your fog servers provide dhcp then the comment doesn’t apply.
I suspect having a seperate dhcp server may be the problem, ipxe will be getting an address from that, which will point to the 0.32 server, i don’t know whether that would affect it.I’ll have a think.
there is a recent thread on booting from a cd or pendrive, you could try that, not what you asked i know, but it may achieve what you want to do.
-
[quote=“jbsclm, post: 41874, member: 3158”]No, the reason i said to disable it as you shouldn’t have 2 dhcp servers on the same network.if neither of your fog servers provide dhcp then the comment doesn’t apply.
I suspect having a seperate dhcp server may be the problem, ipxe will be getting an address from that, which will point to the 0.32 server, i don’t know whether that would affect it.I’ll have a think.
there is a recent thread on booting from a cd or pendrive, you could try that, not what you asked i know, but it may achieve what you want to do.[/quote]
I thought of that too, but I have modified “default.ipxe” and pointed it directly to the FOG 1.2.0 ipxe server already. I’m still getting the same error message, unless I did it wrong. I got the instructions from [url]http://ipxe.org/embed[/url]
-
I apologise in advance if you have tried some of the following.
This may be a basic question but, if you put your 1.2.0 server on its own isolated LAN and enable DHCP does it work.
We need to prove your 1.2.0 is good.
I’m not sure what tells it to load default.ipxe, presumably the dhcp server.
is there anything in the apache log on 10.2.6.40 for boot.phpWhat happens if you build a boot CD or pendrive as per the following.
[url]http://fogproject.org/forum/threads/physical-boot-disk-for-imaging.12142/#post-40540[/url]
just burn the iso to disk or pendrive and try booting from it. -
[quote=“jbsclm, post: 41936, member: 3158”]
I’m not sure what tells it to load default.ipxe, presumably the dhcp server.
[/quote]the command to load default.ipxe is embedded in all of the fog ipxe boot files, i believe with the exception of ipxe.krn
the command [CODE]append dhcp && chain http://10.2.6.40/fog/service/ipxe/boot.php?mac=${net0/mac}[/CODE] is doing the basics of what the default.ipxe file is for, and is bypassing it.
when chainloading ipxe from pxelinux.0, there is no need to make any modifications to existing dhcp services. in fact, that is the main reason people chainload from it in the first place. because in their environment, they can’t modify their dhcp services. -
[quote=“jbsclm, post: 41936, member: 3158”]I apologise in advance if you have tried some of the following.
This may be a basic question but, if you put your 1.2.0 server on its own isolated LAN and enable DHCP does it work.
We need to prove your 1.2.0 is good.
I’m not sure what tells it to load default.ipxe, presumably the dhcp server.
is there anything in the apache log on 10.2.6.40 for boot.phpWhat happens if you build a boot CD or pendrive as per the following.
[url]http://fogproject.org/forum/threads/physical-boot-disk-for-imaging.12142/#post-40540[/url]
just burn the iso to disk or pendrive and try booting from it.[/quote]No need to apologize. I appreciate your help. Will give it a try.
-
[quote=“Junkhacker, post: 41940, member: 21583”]the command to load default.ipxe is embedded in all of the fog ipxe boot files, i believe with the exception of ipxe.krn
the command [CODE]append dhcp && chain http://10.2.6.40/fog/service/ipxe/boot.php?mac=${net0/mac}[/CODE] is doing the basics of what the default.ipxe file is for, and is bypassing it.
when chainloading ipxe from pxelinux.0, there is no need to make any modifications to existing dhcp services. in fact, that is the main reason people chainload from it in the first place. because in their environment, they can’t modify their dhcp services.[/quote]Hi Junkhacker, what do you think I should try in this case? Could you please give me some suggestions? Thanks a lot!
-
well, what do you get if you enter this in a web browser? [url]http://10.2.6.40/fog/service/ipxe/boot.php[/url]
-
[quote=“Junkhacker, post: 41943, member: 21583”]well, what do you get if you enter this in a web browser? [url]http://10.2.6.40/fog/service/ipxe/boot.php[/url][/quote]
When i enter the link in a web browser, i get a blank page. Even if I do it from the FOG server (10.2.6.40), I still get a blank page.
I have attached screenshots. Is there anything wrong?[url=“/_imported_xf_attachments/1/1665_ipxe boot php.JPG?:”]ipxe boot php.JPG[/url][url=“/_imported_xf_attachments/1/1666_bootphp.JPG?:”]bootphp.JPG[/url]
-
yes, that should return the text for the ipxe boot menu. do you have any problems logging into the server through your browser?
-
[quote=“Junkhacker, post: 41953, member: 21583”]yes, that should return the text for the ipxe boot menu. do you have any problems logging into the server through your browser?[/quote]
I have no problem logging into the server. I’m running svn 2979.
[url=“/_imported_xf_attachments/1/1667_FOG.JPG?:”]FOG.JPG[/url]
-
What are the permissions on the folder, do you have rights to view the content and execute it?
-
[quote=“Jaymes Driver, post: 41983, member: 3582”]What are the permissions on the folder, do you have rights to view the content and execute it?[/quote]
Hi Jaymes, I just check the permissions, and look like no one has execute permission. I’m not sure if I’m correct.
I have attached a screenshot.[url=“/_imported_xf_attachments/1/1671_ipxe folder permissions.JPG?:”]ipxe folder permissions.JPG[/url]
-
try [code]sudo chmod -R 0777 /var/www/fog/service[/code]
this will give global read/write permissions just to verify we can get the page to display, we can adjust settings later for 755 or 644. -
[quote=“Jaymes Driver, post: 42003, member: 3582”]try [code]sudo chmod -R 0777 /var/www/fog/service[/code]
this will give global read/write permissions just to verify we can get the page to display, we can adjust settings later for 755 or 644.[/quote]Hi Jaymes, it seems like it’s still the same. It still displays a blank page.
[url=“/_imported_xf_attachments/1/1672_777 ipxe folder permission.JPG?:”]777 ipxe folder permission.JPG[/url][url=“/_imported_xf_attachments/1/1673_777 service folder permission.JPG?:”]777 service folder permission.JPG[/url]
-
At least now we know it isn’t a permission issue
I will see if I can get some time to set up a test server and work on this for you. I used chain loading back when 0.33b was in the works, and it worked well then, We should be able to get it going again.
-
[quote=“Jaymes Driver, post: 42013, member: 3582”]At least now we know it isn’t a permission issue :D[/quote]
LOL!! I’m so tempting to re-install the whole thing because I recall it happens after I updated to a newer svn version.
-
This post is deleted!