Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant not working in WSL2 (Ubuntu) #13491

Open
crfrolik opened this issue Aug 21, 2024 · 0 comments
Open

Vagrant not working in WSL2 (Ubuntu) #13491

crfrolik opened this issue Aug 21, 2024 · 0 comments

Comments

@crfrolik
Copy link

crfrolik commented Aug 21, 2024

I installed vagrant inside my WSL2 (Ubuntu22) instance. I do not have it installed on the windows side.

vagrant --version prints Vagrant 2.4.1
which vagrant prints /usr/bin/vagrant
enho $PATH prints:

/home/crfrolik/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/snap/bin:/home/crfrolik/.dotnet/tools:/home/crfrolik/.yarn/bin

Also, /etc/wsl.conf has:

[interop]
appendWindowsPath=false

Expected behavior

Being able to run vagrant in WSL2. I do not need to run it on the Windows side, nor do I need it to access Windows files.

Actual behavior

vagrant

Vagrant failed to initialize at a very early stage:

The executable 'cmd.exe' Vagrant is trying to run was not
found in the PATH variable. This is an error. Please verify
this software is installed and on the path.

Reproduction information

Vagrant version

Vagrant 2.4.1

Host operating system

Ubuntu 22.04

Guest operating system

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant