Skip to content

Vagrant is a tool for building and distributing development environments.

License

Notifications You must be signed in to change notification settings

Jymitar/vagrant-wsl2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant

By default, when running Vagrant inside WSL2 instance it uses the hypervisor(VirtualBox, VMware or such) that is set up on the host machine. The following repository contains an envar VAGRANT_WSL_NESTED_VIRTUALIZATION which when set to true, allows you to run Vagrant on WSL2 with nested virtualization enabled and VirtualBox installed inside the WSL instance.

Installing from Source

Clone the repository locally.

Install Ruby

sudo apt install ruby-dev

Clean bundle cache.

bundle clean

Install with the following commands

bundle install
bundle --binstubs exec

Add the following to the .bashrc file

export PATH="$(dirname ~/vagrant/exec)/exec:$PATH"
export VAGRANT_WSL_NESTED_VIRTUALIZATION=true

Running vagrant in WSL2 will use the hypervisor installed on the WSL2 instance enabling true nested virtualization.

About

Vagrant is a tool for building and distributing development environments.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 70.5%
  • Go 16.1%
  • MDX 9.8%
  • Shell 2.3%
  • PowerShell 0.9%
  • HTML 0.2%
  • Other 0.2%