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"