Vagrant + WSL2 + Hyper-V

I spent a few hours over the last couple of days trying to get Vagrant in WSL2 working properly. After looking around I found some guides on how to make it work with Virtual Box but if you have Hyper-V enabled (required for WSL2) Virtual Box is PAINFULLY slow.

After piecing together information from multiple sources and testing this on a couple machines I wrote up a guide on how to get things working.

Hopefully someone finds it useful,

3 thoughts on “Vagrant + WSL2 + Hyper-V”

  1. As I learned the hard way, you can’t really have both Hyper-V and VirtualBox installed, because Windows seems to expect one or the other. I removed Hyper-V and switched back to being VBox-only.

  2. u/Wilhuff66 When I follow your instructions, my vagrant hangs on “SSH auth method: private key” step? This leads to a timeout! Do you have any solution?


Leave a Comment