PXE boot CoreOS
-
I would like to deploy a clean CoreOS iso to my new machines using the Advanced PXE boot menu in FOG.
I have found this wiki page:
[url]http://www.fogproject.org/wiki/index.php/Advanced_Boot_Menu_Configuration_options[/url]Can someone help me boot a *.cpio.gz file instead of *.iso file?
:CoreOS
set base-url [url]http://stable.release.core-os.net/amd64-usr/367.1.0[/url]
kernel ${base-url}/coreos_production_pxe.vmlinuz
initrd ${base-url}/coreos_production_pxe_image.cpio.gz cloud-config-url=[url]http://example.com/pxe-cloud-config.yml[/url]
[[[ SOME FANCY CODE HERE TO ACTUALLY LOAD THE OS??! ]]] ||
goto MENU— from CoreOS documentation—
This is an example pxelinux.cfg file that assumes CoreOS is the only option. You should be able to copy this verbatim into /var/lib/tftpboot/pxelinux.cfg/default after providing a cloud-config URL:
default coreos prompt 1 timeout 15 display boot.msg label coreos menu default kernel coreos_production_pxe.vmlinuz append initrd=coreos_production_pxe_image.cpio.gz cloud-config-url=[url]http://example.com/pxe-cloud-config.yml[/url] -
[quote=“Frode Woldsund, post: 45366, member: 19014”]I would like to deploy a clean CoreOS iso to my new machines using the Advanced PXE boot menu in FOG.
I have found this wiki page:
[url]http://www.fogproject.org/wiki/index.php/Advanced_Boot_Menu_Configuration_options[/url]Can someone help me boot a *.cpio.gz file instead of *.iso file?
:CoreOS
set base-url [url]http://stable.release.core-os.net/amd64-usr/367.1.0[/url]
kernel ${base-url}/coreos_production_pxe.vmlinuz
initrd ${base-url}/coreos_production_pxe_image.cpio.gz cloud-config-url=[url]http://example.com/pxe-cloud-config.yml[/url]
[[[ SOME FANCY CODE HERE TO ACTUALLY LOAD THE OS??! ]]] ||
goto MENU— from CoreOS documentation—
This is an example pxelinux.cfg file that assumes CoreOS is the only option. You should be able to copy this verbatim into /var/lib/tftpboot/pxelinux.cfg/default after providing a cloud-config URL:
default coreos prompt 1 timeout 15 display boot.msg label coreos menu default kernel coreos_production_pxe.vmlinuz append initrd=coreos_production_pxe_image.cpio.gz cloud-config-url=[url]http://example.com/pxe-cloud-config.yml[/url][/quote]set base-url http://stable.release.core-os.net/amd64-usr/367.1.0
kernel ${base-url}/coreos_production_pxe.vmlinuz cloud-config-url=http://example.com/pxe-cloud-config.yml
initrd ${base-url}/coreos_production_pxe_image.cpio.gz ||
goto MENU[/code]I’d say try that.
-
Thanks for quick feedback Tom,
Sorry, but it still not work
I see that the 2 files are downloaded, but after that it just continue to “goto MENU”. Instead of just booting into coreOS image -
try changing the last line from [CODE]goto MENU[/CODE] to [CODE]boot || goto MENU[/CODE]
-
Hi again Tom,
Thanks for helping me out!
It worked perfectly! -
Oh, sorry… Thanks to you also Junkhacker
I did not notice that someone else was replying