Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint changed, but not working #1561

Open
Tronus1409 opened this issue Jan 14, 2025 · 10 comments
Open

Endpoint changed, but not working #1561

Tronus1409 opened this issue Jan 14, 2025 · 10 comments
Labels

Comments

@Tronus1409
Copy link

[]: 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.

@Tronus1409 Tronus1409 added the bug label Jan 14, 2025
@antonym
Copy link
Member

antonym commented 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

@Tronus1409
Copy link
Author

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?

@antonym
Copy link
Member

antonym commented 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.

@antonym
Copy link
Member

antonym commented 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.

@Tronus1409
Copy link
Author

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

@antonym
Copy link
Member

antonym commented Jan 16, 2025

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

@Tronus1409
Copy link
Author

Tronus1409 commented Jan 16, 2025

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

Image

@jan-tee
Copy link

jan-tee commented 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.

@deffcolony
Copy link

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!

@Tronus1409
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants