[GH-ISSUE #1561] Endpoint changed, but not working #2046

Open
opened 2026-03-01 18:38:09 +03:00 by kerem · 11 comments
Owner

Originally created by @Tronus1409 on GitHub (Jan 14, 2025).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/1561

[]: This bug persists when memory is increased beyond 8GB.

Describe the bug
i changed the Endpoint in the boot.cfg, but it did not change anything,it keeps downloading them from the original endpoint.

To Reproduce
Steps to reproduce the behavior:

  1. install netbootxyz
  2. open the web dashboard and change the live_endpoint under Menus->Boot.cfg
  3. wait till your pc loads into the pxe menu and select any os
  4. see the change wont did not change anything
    Expected behavior

Screenshots
image

Additional context
netbootxyz runs under a docker container.

Originally created by @Tronus1409 on GitHub (Jan 14, 2025). Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/1561 []: This bug persists when memory is increased beyond 8GB. <!-- Please validate that the issue is not a symptom of insufficient memory. Many installation media are based on live-cd images that require more than a few MB/GB of memory to run. --> **Describe the bug** i changed the Endpoint in the boot.cfg, but it did not change anything,it keeps downloading them from the original endpoint. **To Reproduce** Steps to reproduce the behavior: 1. install netbootxyz 2. open the web dashboard and change the live_endpoint under Menus->Boot.cfg 3. wait till your pc loads into the pxe menu and select any os 4. see the change wont did not change anything **Expected behavior** <!-- A clear and concise description of what the bug is. --> **Screenshots** ![image](https://github.com/user-attachments/assets/506b87d0-7544-4867-9fb3-e3eb37ee47c8) **Additional context** netbootxyz runs under a docker container.
Author
Owner

@antonym commented on GitHub (Jan 16, 2025):

Have you set the live_endpoint variable in local-vars.ipxe?

https://github.com/netbootxyz/netboot.xyz/blob/development/roles/netbootxyz/templates/local-vars.ipxe.j2

<!-- gh-comment-id:2594615105 --> @antonym commented on GitHub (Jan 16, 2025): Have you set the live_endpoint variable in local-vars.ipxe? https://github.com/netbootxyz/netboot.xyz/blob/development/roles/netbootxyz/templates/local-vars.ipxe.j2
Author
Owner

@Tronus1409 commented on GitHub (Jan 16, 2025):

I cant find that file in the menus tab, do i need to build it on my own? Im using a docker image for deploying, is that the problem?

<!-- gh-comment-id:2594628515 --> @Tronus1409 commented on GitHub (Jan 16, 2025): I cant find that file in the menus tab, do i need to build it on my own? Im using a docker image for deploying, is that the problem?
Author
Owner

@antonym commented on GitHub (Jan 16, 2025):

You can create it with those contents, it's currently left out of the release because it's a user defined option, but I can see about adding a local-vars.ipxe.example to the release file so it doesn't impact existing users.

<!-- gh-comment-id:2594636025 --> @antonym commented on GitHub (Jan 16, 2025): You can create it with those contents, it's currently left out of the release because it's a user defined option, but I can see about adding a local-vars.ipxe.example to the release file so it doesn't impact existing users.
Author
Owner

@antonym commented on GitHub (Jan 16, 2025):

Keep in mind if it fails to boot from local tftp, it rolls to the public instance of netboot.xyz using the default endpoint.

<!-- gh-comment-id:2594637120 --> @antonym commented on GitHub (Jan 16, 2025): Keep in mind if it fails to boot from local tftp, it rolls to the public instance of netboot.xyz using the default endpoint.
Author
Owner

@Tronus1409 commented on GitHub (Jan 16, 2025):

That means i need to build it myself, not using docker?

<!-- gh-comment-id:2594645090 --> @Tronus1409 commented on GitHub (Jan 16, 2025): That means i need to build it myself, not using docker?
Author
Owner

@antonym commented on GitHub (Jan 16, 2025):

Just create new file, name it that and add settings on the menus UI.

<!-- gh-comment-id:2594646337 --> @antonym commented on GitHub (Jan 16, 2025): Just create new file, name it that and add settings on the menus UI.
Author
Owner

@Tronus1409 commented on GitHub (Jan 16, 2025):

i did what you told me and created the file in the web ui, but that changed nothing.

Image

<!-- gh-comment-id:2595486609 --> @Tronus1409 commented on GitHub (Jan 16, 2025): i did what you told me and created the file in the web ui, but that changed nothing. ![Image](https://github.com/user-attachments/assets/2c64f6c9-c24d-460b-864e-88d6a7814189)
Author
Owner

@jan-tee commented on GitHub (Jan 17, 2025):

I too have this problem and here's what I can observe by setting up the Docker container and DHCP options. I am using a custom DNS name for the netboot.xyz services (think "boot.my.lab"):

  • PXE system gets DHCP options
  • retrieves netboot.xyz.kpxe via TFTP from DHCP "next server" option
  • never retrieves anything via HTTP/HTTPS from the local instance, goes straight to GitHub; never retrieves any of the .ipxe files

My conclusion is that if you want to change the DNS names, you will need to re-compile the assets. Editing the menu files does nothing because they are never retrieved.

The user expectation is "editing the config files will change the behavior", but it seems that this is not true unless you run Ansible to re-generate the netboot files. So the Docker container just does not seem to support the scenario, and the docs are unclear.

<!-- gh-comment-id:2597678184 --> @jan-tee commented on GitHub (Jan 17, 2025): I too have this problem and here's what I can observe by setting up the Docker container and DHCP options. I am using a custom DNS name for the netboot.xyz services (think "boot.my.lab"): - PXE system gets DHCP options - retrieves netboot.xyz.kpxe via TFTP from DHCP "next server" option - never retrieves anything via HTTP/HTTPS from the local instance, goes straight to GitHub; never retrieves any of the .ipxe files My conclusion is that if you want to change the DNS names, you will need to re-compile the assets. Editing the menu files does nothing because they are never retrieved. The user expectation is "editing the config files will change the behavior", but it seems that this is not true unless you run Ansible to re-generate the netboot files. So the Docker container just does not seem to support the scenario, and the docs are unclear.
Author
Owner

@deffcolony commented on GitHub (Jan 17, 2025):

Hi, I’m experiencing the same issue as you described. I’ve set up the Docker container and configured the DHCP options, but I’m also seeing that:

  • Editing the menu files locally doesn’t seem to affect behavior.

For me its when i try to set the set win_base_url to a custom url it just does not want to fetch the URL in boot since its shows as emty

It’s not very clear to me how to configure netboot.xyz to use local variables. Even after trying several adjustments, it’s still not working for me. the documentation doesn’t make this clear.

Could you or someone else clarify how to properly configure netboot.xyz to use local settings without needing to recompile? Any guidance would be much appreciated!

<!-- gh-comment-id:2598745395 --> @deffcolony commented on GitHub (Jan 17, 2025): Hi, I’m experiencing the same issue as you described. I’ve set up the Docker container and configured the DHCP options, but I’m also seeing that: * Editing the menu files locally doesn’t seem to affect behavior. For me its when i try to set the `set win_base_url` to a custom url it just does not want to fetch the URL in boot since its shows as emty It’s not very clear to me how to configure netboot.xyz to use local variables. Even after trying several adjustments, it’s still not working for me. the documentation doesn’t make this clear. Could you or someone else clarify how to properly configure netboot.xyz to use local settings without needing to recompile? Any guidance would be much appreciated!
Author
Owner

@Tronus1409 commented on GitHub (Jan 17, 2025):

Hi, I’m experiencing the same issue as you described. I’ve set up the Docker container and configured the DHCP options, but I’m also seeing that:

  • Editing the menu files locally doesn’t seem to affect behavior.

For me its when i try to set the set win_base_url to a custom url it just does not want to fetch the URL in boot since its shows as emty

It’s not very clear to me how to configure netboot.xyz to use local variables. Even after trying several adjustments, it’s still not working for me. the documentation doesn’t make this clear.

Could you or someone else clarify how to properly configure netboot.xyz to use local settings without needing to recompile? Any guidance would be much appreciated!

Hey, i solved my own way. I copied the dockwe config from techno tim, where he has a version for the menu specified and i kept it at this version. In that version, you can change things again.

<!-- gh-comment-id:2598775397 --> @Tronus1409 commented on GitHub (Jan 17, 2025): > Hi, I’m experiencing the same issue as you described. I’ve set up the Docker container and configured the DHCP options, but I’m also seeing that: > > * Editing the menu files locally doesn’t seem to affect behavior. > > For me its when i try to set the `set win_base_url` to a custom url it just does not want to fetch the URL in boot since its shows as emty > > It’s not very clear to me how to configure netboot.xyz to use local variables. Even after trying several adjustments, it’s still not working for me. the documentation doesn’t make this clear. > > Could you or someone else clarify how to properly configure netboot.xyz to use local settings without needing to recompile? Any guidance would be much appreciated! Hey, i solved my own way. I copied the dockwe config from techno tim, where he has a version for the menu specified and i kept it at this version. In that version, you can change things again.
Author
Owner

@ilium007 commented on GitHub (Feb 18, 2025):

Any update on this?

Created a local-vars.ipxe file via the menu (official docker image) containing:

set live_endpoint http://192.168.10.4:8080

Downloaded local assets for Clonezilla.

Started pc, booted to netboot menus and select the Clonezilla I downloaded locally. It then proceeds to ignore my live_endpoint and downloads again.

<!-- gh-comment-id:2665645708 --> @ilium007 commented on GitHub (Feb 18, 2025): Any update on this? Created a local-vars.ipxe file via the menu (official docker image) containing: ``` set live_endpoint http://192.168.10.4:8080 ``` Downloaded local assets for Clonezilla. Started pc, booted to netboot menus and select the Clonezilla I downloaded locally. It then proceeds to ignore my live_endpoint and downloads again.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/netboot.xyz#2046
No description provided.