Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: replace hostName with fqdnOrHostName #421

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

Open
felbinger wants to merge 1 commit into microvm-nix:main
base: main
Choose a base branch
Loading
from secshellnet:fix-fqdn

Conversation

@felbinger
Copy link

@felbinger felbinger commented Oct 19, 2025

Using fully qualified domain names as unique identifier for containers improves identification of containers on large (potentially multi tenant) hypervisors.

In the current version using a container name containing a dot doesn't work. I forked microvm.nix and adjusted it so that fqdn's are used by default.

Should we try to upstream this? If yes how?

I drafted this change because merging this would result in breaking changes if networking.domain is being set for a machine.

Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modules that accept a mere networking.hostName but prefer a fully qualified domain name may use networking.fqdnOrHostName instead.

https://search.nixos.org/options?channel=unstable&show=networking.fqdn&query=networking.fqdn

felbinger reacted with thumbs up emoji
Copy link
Author

I haven't had the time to test yet, will do in the next days...

Copy link
Author

I haven't had the time to test yet, will do in the next days...

Ok works. Now this change works without breaking changes if networking.domain is NOT set.

If I am correct, systems that have a domain set will still encounter breaking changes, right?

How should we proceed?

@felbinger felbinger marked this pull request as ready for review October 21, 2025 16:07
@felbinger felbinger changed the title (削除) chore: replace hostName with fqdn (削除ここまで) (追記) chore: replace hostName with fqdnOrHostName (追記ここまで) Oct 21, 2025
Copy link
Member

@astro how do we could handle this?

Copy link
Member

Also the CI tests are failing for some reason I did not grasp yet.

Copy link
Member

@astro astro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a breaking change only if networking.domain is defined?

before = [
"microvm@${name}.service"
"microvm-tap-interfaces@${name}.service"
"microvm-tap-interfaces@${name}.service"# TODO split after first .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Splitting will lead to conflicts between vm.example.com and vm.example.org which I assumed this PR was going to solve. I guess we should rather escape here.

Copy link
Author

@felbinger felbinger Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you elaborate on this conflict? In my tests I couldn't find any issues with it

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

Reviewers

@SuperSandro2000 SuperSandro2000 SuperSandro2000 left review comments

@astro astro astro requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /