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

networking: module for static names #580

Closed
wants to merge 1 commit into from
Closed

Conversation

vilvo
Copy link
Contributor

@vilvo vilvo commented Apr 29, 2024

Description of changes

Checklist for things done

  • Summary of the proposed changes in the PR description
  • More detailed description in the commit message(s)
  • Commits are squashed into relevant entities - avoid a lot of minimal dev time commits in the PR
  • Contribution guidelines followed
  • Ghaf documentation updated with the commit - https://tiiuae.github.io/ghaf/
  • PR linked to architecture documentation and requirement(s) (ticket id)
  • Test procedure described (or includes tests). Select one or more:
    • Tested on Lenovo X1 x86_64
    • Tested on Jetson Orin NX or AGX aarch64
    • Tested on Polarfire riscv64
  • Author has run nix flake check --accept-flake-config and it passes
  • All automatic Github Action checks pass - see actions
  • Author has added reviewers and removed PR draft status

Testing

Static names work as expected - guest to guest - but IPs are not statically allocated to support this.
For example:

[ghaf@ghaf-host:~]$ ssh 192.168.101.1

[ghaf@net-vm:~]$ ssh gui-vm
logout
Connection to log-vm closed.

[ghaf@net-vm:~]$ ssh log-vm

[ghaf@gala-vm:~]$ 
logout
Connection to log-vm closed.

[ghaf@net-vm:~]$ ssh gala-vm

[ghaf@log-vm:~]$ 
logout
Connection to gala-vm closed.

[ghaf@net-vm:~]$ ssh chromium-vm

[ghaf@zathura-vm:~]$ 
logout
Connection to chromium-vm closed.

[ghaf@net-vm:~]$ 
logout
Connection to 192.168.101.1 closed.

[ghaf@ghaf-host:~]$ 

IPs also get reallocated over nixes-rebuild ... switches.

* based on decisions to use static names over internal DNS
  tiiuae#427
* removes dnsmasq and dhcp from net-vm to other guests
  * WIP: static IPs not assigned to other guests yet

Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
@vilvo
Copy link
Contributor Author

vilvo commented Apr 30, 2024

Replaced with PR #584 from collab ghaf-dev fork.

@vilvo vilvo closed this Apr 30, 2024
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

Successfully merging this pull request may close these issues.

1 participant