Skip to content

Ensure Vagrant provider is 'libvirt' when trying to package our own boxes - #3832

Merged
ipspace merged 2 commits into
ipspace:devfrom
snuffy22:patch-1
Aug 28, 2026
Merged

Ensure Vagrant provider is 'libvirt' when trying to package our own boxes#3832
ipspace merged 2 commits into
ipspace:devfrom
snuffy22:patch-1

Conversation

@snuffy22

Copy link
Copy Markdown
Contributor

We have earlier fixed issue with netlab down where you cannot specify the provider to use via CLI and must use Environment variable.

This fixes use when we are building our own vagrant boxes under WSL.

This fixes use when we are building our own vagrant boxes under WSL.

@ipspace ipspace left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thank you!

@ipspace
ipspace requested a lite review from Copilot August 28, 2026 14:05
@ipspace
ipspace marked this pull request as ready for review August 28, 2026 14:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new provider-forcing behavior makes the existing “rerun vagrant box add …” failure hint misleading unless the provider is made explicit in the suggested command.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the netlab libvirt package workflow to ensure Vagrant uses the libvirt provider when importing a newly-built box, addressing provider-selection problems encountered when building boxes under WSL.

Changes:

  • Forces Vagrant’s default provider to libvirt during vagrant box add in the libvirt packaging flow.
File summaries
File Description
netsim/cli/libvirt/package.py Sets VAGRANT_DEFAULT_PROVIDER before importing the packaged Vagrant box to ensure libvirt is used.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread netsim/cli/libvirt/package.py Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@ipspace
ipspace merged commit edebb1e into ipspace:dev Aug 28, 2026
4 checks 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.

3 participants