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

Add GNS3 appliance for NixOS #931

Merged
merged 3 commits into from
Oct 31, 2024
Merged

Add GNS3 appliance for NixOS #931

merged 3 commits into from
Oct 31, 2024

Conversation

ob7
Copy link
Contributor

@ob7 ob7 commented Oct 30, 2024

NixOS Appliance for GNS3

Overview

This GNS3 appliance enables dynamic hostname configuration for NixOS by passing the VM name to QEMU via -fw_cfg name=opt/vm_hostname,string=%vm-name%, then retrieving the value during NixOS initialization. A systemd job in the system's configuration.nix uses this value to override the hostname, providing clear and automated naming setups in lab environments. Users are encouraged to build their own qcow2 images using nixos-generators for further customization.

Purpose

  • Dynamic Hostname: Automatically assigns the GNS3 instance name as the VM hostname for clear identification in lab setups.
  • Custom Builds: Users can build their own qcow2 images with nixos-generators as outlined in this documentation.

Notes

  • Tested on a bare-metal GNS3 server installation.
  • Optional: Use nixos-generator to create custom images

@grossmj grossmj merged commit 13d0df6 into GNS3:master Oct 31, 2024
1 check passed
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.

2 participants