{"id":1132,"date":"2026-10-22T13:58:13","date_gmt":"2026-10-22T13:58:13","guid":{"rendered":"https:\/\/phoenixnap.com\/doc\/?p=1132"},"modified":"2026-11-27T10:20:31","modified_gmt":"2026-11-27T10:20:31","slug":"create-ipxe-boot-script","status":"publish","type":"post","link":"https:\/\/phoenixnap.com\/doc\/create-ipxe-boot-script","title":{"rendered":"Create iPXE Boot Script"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">An iPXE boot script automates network booting by configuring network access and loading the components needed to start an operating system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Create iPXE Fedora Boot Script<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The following example uses Fedora as the target operating system:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. Create a file named <em>dboot.ipxe<\/em> on a system where you can edit and upload files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Add the following iPXE script:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"Bash\" data-shcb-language-slug=\"bash\"><span><code class=\"hljs language-bash shcb-code-table shcb-line-numbers\"><span class='shcb-loc'><span><span class=\"hljs-comment\">#!ipxe<\/span>\n<\/span><\/span><span class='shcb-loc'><span>dhcp\n<\/span><\/span><span class='shcb-loc'><span><span class=\"hljs-built_in\">set<\/span> repo http:\/\/mirror.i3d.net\/pub\/fedora\/linux\/releases\/44\/Everything\/x86_64\/os\n<\/span><\/span><span class='shcb-loc'><span>kernel <span class=\"hljs-variable\">${repo}<\/span>\/images\/pxeboot\/vmlinuz initrd=initrd.img inst.repo=<span class=\"hljs-variable\">${repo}<\/span>\n<\/span><\/span><span class='shcb-loc'><span>initrd <span class=\"hljs-variable\">${repo}<\/span>\/images\/pxeboot\/initrd.img\n<\/span><\/span><span class='shcb-loc'><span>boot\n<\/span><\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">Bash<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">bash<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">The script does the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Configures the networking interface using DHCP.<\/li>\n\n\n\n<li>Sets a base URL for the Fedora installation files.<\/li>\n\n\n\n<li>Loads the kernel and initial RAM disk.<\/li>\n\n\n\n<li>Starts the boot process.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">3. Save the script on a publicly accessible server. Load it using methods described in the sections <a href=\"https:\/\/phoenixnap.com\/doc\/server-management\/#configure-ipxe\">Configure iPXE<\/a> (for portal deployments) and <a href=\"https:\/\/phoenixnap.com\/doc\/bmc-api-deploy-ipxe-instance\/#deploy-a-server-using-ipxe\">Deploy an iPXE Server<\/a> (for API deployments).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">iPXE Debugging Commands<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If the script does not behave as expected, use the following commands to troubleshoot the issue:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th class=\"has-text-align-center\" data-align=\"center\">Command<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong><code>ifstat<\/code><\/strong><\/td><td>Shows the status of network interfaces (Check for <strong><code>\"Link: up\"<\/code><\/strong>).<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong><code>route<\/code><\/strong><\/td><td>Displays the current IP, netmask, and gateway.<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong><code>imgstat<\/code><\/strong><\/td><td>Lists currently loaded kernels and initrd files.<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong><code>config<\/code><\/strong><\/td><td>Opens a text-based GUI to manually edit settings like IP addresses.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Write an iPXE boot script to configure network access and automate operating system installation from a remote repository.<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[57],"tags":[],"class_list":["post-1132","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Create iPXE Boot Script | phoenixNAP<\/title>\n<meta name=\"description\" content=\"Documentation on creating iPXE boot scripts for Bare Metal Cloud. Learn how to automate OS installation and troubleshoot network boots.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/phoenixnap.com\/doc\/create-ipxe-boot-script\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create iPXE Boot Script | phoenixNAP\" \/>\n<meta property=\"og:description\" content=\"Documentation on creating iPXE boot scripts for Bare Metal Cloud. Learn how to automate OS installation and troubleshoot network boots.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/phoenixnap.com\/doc\/create-ipxe-boot-script\" \/>\n<meta property=\"og:site_name\" content=\"BMC Docs\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/phoenixnap\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-22T13:58:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-27T10:20:31+00:00\" \/>\n<meta name=\"author\" content=\"Milica Dancuk\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@phoenixNAP\" \/>\n<meta name=\"twitter:site\" content=\"@phoenixNAP\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Milica Dancuk\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/create-ipxe-boot-script#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/create-ipxe-boot-script\"},\"author\":{\"name\":\"Milica Dancuk\",\"@id\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/#\\\/schema\\\/person\\\/1657a6b0ab58a7fc1f160c054ad054e1\"},\"headline\":\"Create iPXE Boot Script\",\"datePublished\":\"2026-10-22T13:58:13+00:00\",\"dateModified\":\"2026-11-27T10:20:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/create-ipxe-boot-script\"},\"wordCount\":175,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/#organization\"},\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/create-ipxe-boot-script#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/create-ipxe-boot-script\",\"url\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/create-ipxe-boot-script\",\"name\":\"Create iPXE Boot Script | phoenixNAP\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/#website\"},\"datePublished\":\"2026-10-22T13:58:13+00:00\",\"dateModified\":\"2026-11-27T10:20:31+00:00\",\"description\":\"Documentation on creating iPXE boot scripts for Bare Metal Cloud. Learn how to automate OS installation and troubleshoot network boots.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/create-ipxe-boot-script#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/create-ipxe-boot-script\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/create-ipxe-boot-script#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create iPXE Boot Script\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/#website\",\"url\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/\",\"name\":\"phoenixNAP Bare Metal Cloud Documentation\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/#organization\",\"name\":\"phoenixNAP\",\"url\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/phoenixnap-logo.png\",\"contentUrl\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/phoenixnap-logo.png\",\"width\":200,\"height\":200,\"caption\":\"phoenixNAP\"},\"image\":{\"@id\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/phoenixnap\",\"https:\\\/\\\/x.com\\\/phoenixNAP\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/phoenix-nap\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/PhoenixNAPdatacenter\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/#\\\/schema\\\/person\\\/1657a6b0ab58a7fc1f160c054ad054e1\",\"name\":\"Milica Dancuk\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/45418856f716938e1762c96b50ad7930850ca33959bba0a4b6351ed2d8593551?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/45418856f716938e1762c96b50ad7930850ca33959bba0a4b6351ed2d8593551?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/45418856f716938e1762c96b50ad7930850ca33959bba0a4b6351ed2d8593551?s=96&d=mm&r=g\",\"caption\":\"Milica Dancuk\"},\"url\":\"https:\\\/\\\/phoenixnap.com\\\/doc\\\/author\\\/milicad\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create iPXE Boot Script | phoenixNAP","description":"Documentation on creating iPXE boot scripts for Bare Metal Cloud. Learn how to automate OS installation and troubleshoot network boots.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/phoenixnap.com\/doc\/create-ipxe-boot-script","og_locale":"en_US","og_type":"article","og_title":"Create iPXE Boot Script | phoenixNAP","og_description":"Documentation on creating iPXE boot scripts for Bare Metal Cloud. Learn how to automate OS installation and troubleshoot network boots.","og_url":"https:\/\/phoenixnap.com\/doc\/create-ipxe-boot-script","og_site_name":"BMC Docs","article_publisher":"https:\/\/www.facebook.com\/phoenixnap","article_published_time":"2026-10-22T13:58:13+00:00","article_modified_time":"2026-11-27T10:20:31+00:00","author":"Milica Dancuk","twitter_card":"summary_large_image","twitter_creator":"@phoenixNAP","twitter_site":"@phoenixNAP","twitter_misc":{"Written by":"Milica Dancuk","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/phoenixnap.com\/doc\/create-ipxe-boot-script#article","isPartOf":{"@id":"https:\/\/phoenixnap.com\/doc\/create-ipxe-boot-script"},"author":{"name":"Milica Dancuk","@id":"https:\/\/phoenixnap.com\/doc\/#\/schema\/person\/1657a6b0ab58a7fc1f160c054ad054e1"},"headline":"Create iPXE Boot Script","datePublished":"2026-10-22T13:58:13+00:00","dateModified":"2026-11-27T10:20:31+00:00","mainEntityOfPage":{"@id":"https:\/\/phoenixnap.com\/doc\/create-ipxe-boot-script"},"wordCount":175,"commentCount":0,"publisher":{"@id":"https:\/\/phoenixnap.com\/doc\/#organization"},"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/phoenixnap.com\/doc\/create-ipxe-boot-script#respond"]}]},{"@type":"WebPage","@id":"https:\/\/phoenixnap.com\/doc\/create-ipxe-boot-script","url":"https:\/\/phoenixnap.com\/doc\/create-ipxe-boot-script","name":"Create iPXE Boot Script | phoenixNAP","isPartOf":{"@id":"https:\/\/phoenixnap.com\/doc\/#website"},"datePublished":"2026-10-22T13:58:13+00:00","dateModified":"2026-11-27T10:20:31+00:00","description":"Documentation on creating iPXE boot scripts for Bare Metal Cloud. Learn how to automate OS installation and troubleshoot network boots.","breadcrumb":{"@id":"https:\/\/phoenixnap.com\/doc\/create-ipxe-boot-script#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/phoenixnap.com\/doc\/create-ipxe-boot-script"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/phoenixnap.com\/doc\/create-ipxe-boot-script#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/phoenixnap.com\/doc\/"},{"@type":"ListItem","position":2,"name":"Create iPXE Boot Script"}]},{"@type":"WebSite","@id":"https:\/\/phoenixnap.com\/doc\/#website","url":"https:\/\/phoenixnap.com\/doc\/","name":"phoenixNAP Bare Metal Cloud Documentation","description":"","publisher":{"@id":"https:\/\/phoenixnap.com\/doc\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/phoenixnap.com\/doc\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/phoenixnap.com\/doc\/#organization","name":"phoenixNAP","url":"https:\/\/phoenixnap.com\/doc\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/phoenixnap.com\/doc\/#\/schema\/logo\/image\/","url":"https:\/\/phoenixnap.com\/doc\/wp-content\/uploads\/2026\/10\/phoenixnap-logo.png","contentUrl":"https:\/\/phoenixnap.com\/doc\/wp-content\/uploads\/2026\/10\/phoenixnap-logo.png","width":200,"height":200,"caption":"phoenixNAP"},"image":{"@id":"https:\/\/phoenixnap.com\/doc\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/phoenixnap","https:\/\/x.com\/phoenixNAP","https:\/\/www.linkedin.com\/company\/phoenix-nap\/","https:\/\/www.youtube.com\/user\/PhoenixNAPdatacenter"]},{"@type":"Person","@id":"https:\/\/phoenixnap.com\/doc\/#\/schema\/person\/1657a6b0ab58a7fc1f160c054ad054e1","name":"Milica Dancuk","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/45418856f716938e1762c96b50ad7930850ca33959bba0a4b6351ed2d8593551?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/45418856f716938e1762c96b50ad7930850ca33959bba0a4b6351ed2d8593551?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/45418856f716938e1762c96b50ad7930850ca33959bba0a4b6351ed2d8593551?s=96&d=mm&r=g","caption":"Milica Dancuk"},"url":"https:\/\/phoenixnap.com\/doc\/author\/milicad"}]}},"_links":{"self":[{"href":"https:\/\/phoenixnap.com\/doc\/wp-json\/wp\/v2\/posts\/1132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/phoenixnap.com\/doc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phoenixnap.com\/doc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phoenixnap.com\/doc\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/phoenixnap.com\/doc\/wp-json\/wp\/v2\/comments?post=1132"}],"version-history":[{"count":10,"href":"https:\/\/phoenixnap.com\/doc\/wp-json\/wp\/v2\/posts\/1132\/revisions"}],"predecessor-version":[{"id":3381,"href":"https:\/\/phoenixnap.com\/doc\/wp-json\/wp\/v2\/posts\/1132\/revisions\/3381"}],"wp:attachment":[{"href":"https:\/\/phoenixnap.com\/doc\/wp-json\/wp\/v2\/media?parent=1132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixnap.com\/doc\/wp-json\/wp\/v2\/categories?post=1132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixnap.com\/doc\/wp-json\/wp\/v2\/tags?post=1132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}