Vagrant WSL2 Provider

Overview The Vagrant WSL2 Provider is a custom Vagrant plugin that brings the familiar Vagrant workflow to Windows Subsystem for Linux 2 (WSL2). It solves a common problem in enterprise Windows environments where traditional virtualization solutions (VirtualBox, VMware) are restricted or perform poorly due to security policies like VBS and Device Guard. The Problem Many developers working in corporate Windows environments face constraints: Virtualization-Based Security (VBS) makes VirtualBox unusable Device Guard/Credential Guard prevents traditional hypervisors from working Nested virtualization overhead causes severe performance penalties Security compliance requirements leave WSL2 as the only viable option This plugin bridges the gap between WSL2’s performance and Vagrant’s standardized development workflow. ...

September 27, 2025 · 2 min · Zoltan Toma

Building a Vagrant WSL2 Provider: Testing Journey and Unexpected Discoveries

The Final Push to v0.1.0 After testing the provider on my corporate machine, I discovered a bug related to the missing Windows HOME environment variable. The provider was trying to cache files on a NAS drive (mapped as U:) instead of the local user directory. After fixing this by switching to Vagrant.user_data_path, I felt confident that v0.1.0 was nearly ready. All that remained was a comprehensive test run across all available WSL distributions. ...

September 29, 2025 · 4 min · Zoltan Toma

Building a Vagrant WSL2 Provider: Clean Development Environments on Windows

Building a Vagrant WSL2 Provider: Clean Development Environments on Windows Working with development environments on Windows has always been a challenge. While VirtualBox and VMware provide excellent virtualization, they come with resource overhead and performance penalties. Windows Subsystem for Linux 2 (WSL2) offers a compelling alternative with near-native performance, but lacks the standardized workflow that Vagrant provides. This led me to an interesting project: building a custom Vagrant provider for WSL2 that combines the best of both worlds - the familiar Vagrant workflow with WSL2’s performance benefits. ...

September 27, 2025 · 6 min · Zoltan Toma