Skip to content

Scope Vagrant libvirt domains to allow multiple checkouts#494

Open
ehelms wants to merge 1 commit intotheforeman:masterfrom
ehelms:scope-vagrant-libvirt-domains
Open

Scope Vagrant libvirt domains to allow multiple checkouts#494
ehelms wants to merge 1 commit intotheforeman:masterfrom
ehelms:scope-vagrant-libvirt-domains

Conversation

@ehelms
Copy link
Copy Markdown
Member

@ehelms ehelms commented May 5, 2026

Why are you introducing these changes? (Problem description, related links)

I sometimes have 2-3 different directories working at the same time, this change will prevent clashes in those environments.

What are the changes introduced in this pull request?

Use a hash of the absolute working directory path to generate a unique libvirt domain prefix per checkout, preventing collisions when multiple clones or git worktrees deploy Vagrant boxes simultaneously.

Both the libvirt domain name prefix and the VM hostnames are scoped using the prefix, ensuring full isolation between deployments.

How to test this pull request

Steps to reproduce:

  • ./forge vms start
  • vagrant ssh quadlet
  • hostname

Check that the hostname is not quadlet.example.com

Checklist

  • Tests added/updated (if applicable)
  • Documentation updated (if applicable)

Use a hash of the absolute working directory path to generate a unique
libvirt domain prefix per checkout, preventing collisions when multiple
clones or git worktrees deploy Vagrant boxes simultaneously.

Both the libvirt domain name prefix and the VM hostnames are scoped
using the prefix, ensuring full isolation between deployments.

Resolve VM FQDNs dynamically in CI and test fixtures instead of
hardcoding the .example.com domain.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ehelms ehelms force-pushed the scope-vagrant-libvirt-domains branch from f74dc9f to 51a8bdd Compare May 5, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant