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

OSv hangs silently if no DHCP server #235

Open
nyh opened this issue Mar 10, 2014 · 2 comments
Open

OSv hangs silently if no DHCP server #235

nyh opened this issue Mar 10, 2014 · 2 comments

Comments

@nyh
Copy link
Contributor

nyh commented Mar 10, 2014

loader.cc calls dhcp_start(true). This "true" causes the initialization to wait until DHCP succeeds. If DHCP does not succeed, OSv will hang forever, silently because dhcp.cc uses dhcp_i which doesn't show anything (unless the -V option is used for verbose output). In this case the user is clueless why OSv is hanging. This can happen for example when the "-n" option is used (for using tap) but there is no DHCP server running (e.g., libvirt is not running).

We need be verbose (regardless of the -V option) when DHCP is not successful after a reasonable amount of time. It would also be nice for OSv to come up without networking in that case, instead of hanging forever.

@e74b254a966b1c
Copy link
Contributor

How about, we modify dhcp_start, to take the number of attempts as an argument?
We could use a signed int, and represent an infinite number of attempts as a negative value.

@indykish
Copy link

indykish commented Apr 2, 2014

+1, Troubleshooting guide helped => https://github.com/cloudius-systems/osv/wiki/Troubleshooting

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

No branches or pull requests

5 participants