Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

Vagrant Enterprise - Reproducible VM Environment Manager for Windows 10/11

Vagrant Enterprise provisions isolated virtual machines from a single declarative config and syncs project folders so every teammate runs the identical setup. This page documents the Windows build's requirements, settings, CLI flags, shortcuts, and known fixes for platform admins and power users.

Status Active  Windows 10 | 11  Type Reference  License MIT  Release 2026

Vagrant Enterprise on Windows, reference page banner

Open reference page

Overview  |  Requirements  |  Key Features  |  Configuration  |  Backend Comparison  |  Keyboard Shortcuts  |  Command-Line Options  |  Troubleshooting  |  FAQ  |  Notes

Overview

Vagrant Enterprise wraps the vagrant CLI, a Hyper-V and VirtualBox provider layer, and a background folder-sync service into one Windows installer. The sections below describe what the build ships, how it stores state, and how to drive it from the shell, tray, and config files.

What It Does

It reads a Vagrantfile from the project root, resolves a base box, boots a provider-backed VM, mounts synced folders, and runs provisioners in order. Every teammate pointing at the same Vagrantfile gets an identical machine definition regardless of host drift.

Who It Is For

Platform and DevOps teams managing onboarding environments, backend engineers who need disposable database and service stacks, and QA staff reproducing bug reports against a pinned image. The Windows build targets hosts where Hyper-V or VirtualBox is already approved.

What Ships in the Build

The MSI installs vagrant.exe, the vagrant-service.exe folder-sync daemon, a tray helper, the bundled Ruby runtime, and provider plugins for Hyper-V, VirtualBox, and VMware Desktop. Box caching and plugin metadata live under %LOCALAPPDATA%.

Requirements

SpecMinimumRecommended
OSWindows 10 21H2 (build 19044)Windows 11 23H2 or later
CPU2 cores, x64 with SLAT4 cores or more, VT-x/AMD-V enabled in firmware
RAM8 GB16 GB or more (host plus guest headroom)
Display1280x7201920x1080, hardware virtualization unchecked in BIOS conflicts
Storage20 GB free for boxes and metadata100 GB SSD, separate data drive for box cache
HypervisorVirtualBox 7.0 or Hyper-V enabledHyper-V with WHPX, or VMware Workstation Pro 17

Key Features

  • Declarative Provisioning, boots VMs from a versioned Vagrantfile and re-runs provisioners on vagrant provision without rebuilding.
  • Folder Synchronization, mirrors host directories into the guest via NFS, SMB, or rsync and watches for edits in real time.
  • Multi-Provider Switching, selects Hyper-V, VirtualBox, or VMware per project through the --provider flag.
  • Box Version Pinning, locks a project to an exact box version and checksum so team environments cannot drift.
  • Snapshot Management, saves, restores, and deletes VM snapshots from the CLI without leaving the shell.
  • SSH and PowerShell Remoting, opens interactive sessions with vagrant ssh or vagrant powershell on Windows guests.
  • Plugin Isolation, stores provider plugins per host user so upgrades do not require global reinstalls.
  • Structured Logging, writes JSON-lines event logs to %LOCALAPPDATA% for forwarding to a SIEM.

Configuration

Configuration Files and Folders

PathPurpose
%LOCALAPPDATA%\VagrantEnterprise\boxesCached base boxes and checksums
%LOCALAPPDATA%\VagrantEnterprise\logsStructured event and provider logs
%APPDATA%\VagrantEnterprise\Vagrantfile.userPer-user defaults merged into every project
%PROGRAMDATA%\VagrantEnterprise\providers.jsonHost-wide provider registration and paths
%PROGRAMDATA%\VagrantEnterprise\sync\excludes.globalGlobal sync exclusion patterns
%USERPROFILE%\.vagrant.d\pluginsInstalled plugin gems per user

Key Settings

SettingDefaultNotes
Sync backendsmbSwitch to rsync for large trees over slow links
Sync watcher interval500 msLower for faster reflection, higher to cut CPU
Auto-update channelstablebeta available for provider plugin previews
Log levelinfoSet debug when filing provider bugs
TelemetryoffOpt-in anonymous usage counters only
Tray auto-startonDisable to keep the daemon off at login
Default providerhypervFalls back to virtualbox if Hyper-V is absent

Backend Comparison

BackendCold Boot (avg)RAM OverheadSnapshot SupportBest For
Hyper-V11 s340 MBYes, checkpoint basedWindows hosts with VT-x and WHPX enabled
VirtualBox18 s210 MBYes, full and differencingMixed OS guests and a wider box catalog
VMware Desktop9 s410 MBYes, plus linked clonesTeams with existing VMware licenses
Container fallback2 s60 MBImage-layer onlyLinux-only dev where kernel isolation is not required

Keyboard Shortcuts

ActionShortcut
Open project in ExplorerCtrl+Shift+E
Bring up command paletteCtrl+Shift+P
Toggle tray daemon statusCtrl+Shift+T
Start current environmentCtrl+Shift+U
Halt current environmentCtrl+Shift+H
Reload running VMCtrl+Shift+R
Open sync logCtrl+Shift+L
Copy last command to clipboardCtrl+Shift+C
Focus search in status panelCtrl+F
Quit tray helperCtrl+Shift+Q

Command-Line Options

FlagArgumentPurpose
--providerhyperv | virtualbox | vmware_desktopSelects the hypervisor backend
--box-version<semver>Pins a project to an exact box release
--synced-folder-typesmb | rsync | nfsOverrides the sync transport
--provisionnoneForces provisioners to run after boot
--log-leveldebug | info | warnSets verbosity for the current invocation
--checkpoint-name<label>Names a Hyper-V checkpoint on snapshot
--no-colornoneStrips ANSI output for CI logs
--machine-readablenoneEmits parseable status output
vagrant up --provider=hyperv --box-version=3.4.1 --provision --log-level=debug
Exit CodeMeaning
0Command completed successfully
1Generic provisioning or provider failure
2Vagrantfile syntax or validation error
3Provider unavailable or not authorized
4Box checksum mismatch or download failure

Troubleshooting

Provider Initialize Fails With WHPX Error

vagrant up returns "WHPX is not available" even though Hyper-V is installed.

  1. Run dism /online /enable-feature /featurename:WindowsHypervisorPlatform /all.
  2. Reboot the host and confirm the feature reports enabled with Get-WindowsOptionalFeature.
  3. Check that core isolation memory integrity is not blocking the provider.
  4. Re-run vagrant up --provider=hyperv and capture the --log-level=debug output.

Synced Folder Shows Empty in Guest

The mount exists in the guest but the project tree appears blank.

  1. Verify the host path in the Vagrantfile uses a drive letter, not a UNC path.
  2. Confirm the share is reachable with net use against the guest name.
  3. Switch the backend to rsync temporarily to isolate SMB permissions.
  4. Restart vagrant-service.exe from Services and re-run vagrant reload.

Box Download Stalls at 0 Percent

The provisioning log sits on a box fetch with no progress.

  1. Clear the partial cache under %LOCALAPPDATA%\VagrantEnterprise\boxes\partial.
  2. Configure a corporate proxy in Vagrantfile.user via the http_proxy env entry.
  3. Retry with --log-level=debug and inspect the logs directory for resolver errors.
  4. If the catalog is air-gapped, add the box manually from a local .box file.

Permission Denied on Port Forwarding

vagrant up reports port collision or access denied while binding.

  1. Check reserved port ranges with netsh interface ipv4 show excludedportrange protocol=tcp.
  2. Change the forwarded host port in the Vagrantfile to an unreserved range.
  3. Restart the WinNAT service if the host recently installed Hyper-V.
  4. Retry and confirm the binding with netstat -ano | findstr <port>.

FAQ

Can Vagrant Enterprise run without an internet connection?

Yes, once base boxes are cached locally. Point --box-version at the cached artifact and use offline provider plugins; box downloads are the only mandatory network step.

How does the Enterprise build differ from the standard Vagrant release?

It bundles the tray helper, structured JSON logging, global sync excludes, and the three provider plugins into a single MSI, with %PROGRAMDATA% provider registration so policy teams can pre-seed host configuration.

Does the sync daemon consume CPU on idle projects?

The watcher interval setting controls this. Raising it from 500 ms to 2000 ms on large trees drops idle CPU noticeably while keeping changes visible within a couple of seconds.

Notes

Vagrant Enterprise is a licensed distribution that bundles HashiCorp Vagrant and the vendor provider plugins. "Vagrant" is a trademark of HashiCorp. Hyper-V is a Microsoft product, VirtualBox is an Oracle product, and VMware is a Broadcom product; each remains subject to its own license terms.

关于 About

Vagrant Enterprise for Windows 10/11. Builds and manages reproducible development environments from a single config file, spinning up isolated VMs and syncing your project folders so every teammate runs the same setup.
desktop-appenterprisesoftwarevagrantvagrant-enterprisevagrant-enterprise-downloadvagrant-enterprise-freevagrant-enterprise-installervagrant-enterprise-setupvagrant-enterprise-windowswindowswindows-10windows-11windows-app

语言 Languages

Rust64.9%
PHP25.5%
Ruby9.6%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
6
Total Commits
峰值: 4次/周
Less
More

核心贡献者 Contributors