Skip to content

OSv hangs silently if no DHCP server #235

Open
@nyh

Description

@nyh

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions