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

Support for passing a hostname to hermit. #1417

Open
jounathaen opened this issue Sep 18, 2024 · 2 comments
Open

Support for passing a hostname to hermit. #1417

jounathaen opened this issue Sep 18, 2024 · 2 comments

Comments

@jounathaen
Copy link
Member

AFAIK, we don't have support for retrieving the hostname in hermit yet, but I can imagine that we need this sometime.
The correct approach could be to generate unique hostnames in the hypervisor (similar to Dockers approach), and then we should pass them via hermit-entry.

Not urgent, but comments are welcome (@mkroening @stlankes)

@mkroening
Copy link
Member

I think this would fit nicely into the kernel arguments like this:

chosen {
    bootargs = "hostname=rudolf [OTHER_KERNEL_ARGS] -- [APP_ARGS]";
}

@mkroening mkroening transferred this issue from hermit-os/hermit-entry Oct 20, 2024
@mkroening
Copy link
Member

mkroening commented Oct 20, 2024

Moved to kernel, since we would want to fit this into the FDT and not change the entry ABI.

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

No branches or pull requests

2 participants