Skip to content

Instantly share code, notes, and snippets.

@wuriyanto48
Created March 9, 2023 08:14
Show Gist options
  • Save wuriyanto48/752ec5f9f9fcf51deff9f695ba62b7a1 to your computer and use it in GitHub Desktop.
Save wuriyanto48/752ec5f9f9fcf51deff9f695ba62b7a1 to your computer and use it in GitHub Desktop.
Vagrant WSL

This is caused when VAGRANT_WSL_ENABLE_WINDOWS_ACCESS environment variable is not set.

First Export Environment Variables

export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1"
export PATH="${PATH}:/mnt/c/Program Files/Oracle/VirtualBox"

Run Vagrant using following commands

vagrant up something 

Issue:

The IP address configured for the host-only network is not within the
allowed ranges. Please update the address used to be within the allowed
ranges and run the command again.

  Address: 192.168.33.11
  Ranges: 192.168.56.0/21

Valid ranges can be modified in the /etc/vbox/networks.conf file. For
more information including valid format see:

Fix

cfg.vm.network "private_network", ip:"192.168.56.10"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment