samdbmg / dhcp-netboot.xyz

Docker container that acts as a ProxyDHCP server for netbooting
GNU General Public License v3.0
70 stars 20 forks source link

Local asset cannot be received from local ip.. still from git... #7

Open docop opened 2 years ago

docop commented 2 years ago

Hi After looking for quite long time, i got your project start up right away and do work perfect ! But it's about the local file. I can't have access to local asset, even if they are present and fully On the http: ip / asset-mirror... i do see 2 file donwloaded, but when editing the menu it cannot get the modification apply. Edit on file are save, but they don't be kept or run.. It's always from the same online git.. that the image is dwl. Like a small one: live-fatdog64. in boot.cfg or in the file directly, i set ; set live_endpoint http://192.168.44.11:8080 Thanks in advance

samdbmg commented 2 years ago

Sorry for the slow response, it's been a busy few months in my personal life!

I think the change in #8 should have fixed this: it turns out the DHCP next-server wasn't being set properly so some fallback behaviour was triggered in netboot.xyz. If you get the chance, would you mind trying again and re-opening if it doesn't work for you?

docop commented 2 years ago

Hi So look it boot fine. I might have user issues, as if i change menu, but don't see listed, but my user is present in docker group. But it's about to get the local asset. I start with : sudo docker run --net=host --cap-add=NET_ADMIN -e DHCP_RANGE_START=192.168.41.11 -v /home/userlxc/config:/config -v /home/userlxc/assets:/assets samdbmg/dhcp-netboot.xyz and in asset a folder : fat2 with the 2 file of fatdog64 pre-donwloaded. and if change in some of the menu to : set url http://192.168.41.10:8080/fat2 .. it do still go over the web to download. Don't know if related or it's different. But as to load and download from menu and boot via the already present selection.. this is working. Thanks

samdbmg commented 2 years ago

Where I've tested this, assets are hosted on port 80 (e.g. http://192.168.41.10/fat2) but otherwise pulling them locally by the URL works fine (and if I change the URL to somewhere that doesn't exist it won't pull from GitHub either).

When the menu loads, does it say something like next-server: 192.168.41.10 at the top? If not then the local config isn't being loaded at all for you, which would explain the problem. If that's the case, can you add -e CONTAINER_IP=192.168.41.10 (assuming that's the IP your container is at) to the command line and try again?

docop commented 2 years ago

Hum interesting.. with the extra -e option as you suggest, indeed, i now see the top section telling me next-server. i haven't check if i disconnect internet if it may revert to the local asset.. But even if i go to the menu and select and download (pull selected) the image are all still download from the net. Not sur if it's direct the netboot menu config, as setting the : set url and local asset to the direct ip http://192.168.41.10:8080 don't look to cope it..