-
Notifications
You must be signed in to change notification settings - Fork 263
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
DHCP client in Docker VM fails if DHCP server doesn't respond during first 3 discovers #2357
Comments
As PR #2355 is a backport from v3.0, version 3.0 may be affected as well. But I haven't tested this. |
Additionally PR #2355 won't assign IP addresses obtained from DHCP to the interface, very similar to issue #2159.
This is also fixed, when the missing files |
Yes, the resources are not recursively copied to the writable location. I will push a fix soon. Thanks for catching that. |
@b-ehlers The PR should fix the issue. Please can you check on your side? Thanks 👍 |
Looks good. I merged this PR in my local installation and deleted the writable location (~/.local/share/GNS3/docker/). Then I tested both cases, DHCP with suspended link to NAT and DHCP with working link to NAT. Both tests were successful. Furthermore the writable location is a full copy of the resource directory. Good job. |
Describe the bug
Since PR #2355 in a Docker VM the DHCP server must respond within the first 3 discovers, otherwise the DHCP client fails. This was not the case before that PR was merged.
GNS3 version and operating system (please complete the following information):
To Reproduce
Steps to reproduce the behavior:
Screenshots or videos
Additional context
The reason is, that PR #2355 doesn't copy the whole resources directory hierarchy, only the contents of the top directory is copied (and the busybox program is installed).
The files
bin/udhcpc
andetc/udhcpc/default.script
are missing.After copying the whole directory hierarchy to the writable location (
cp -a ~/GNS3/venv/lib/python3.11/site-packages/gns3server/compute/docker/resources ~/.local/share/GNS3/docker/
) the DHCP client works as expected.The text was updated successfully, but these errors were encountered: