-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 up fails due to locked file #11083
Comments
So, I was able to get some clue of what's happening. I am able to I might have mixed up running commands through powershell and WSL leading to different permissions on file, thus not being able to remove the lock files. That's one issue resolved. Now regarding vagrant-vmware-utility not running correctly inside WSL and thus VMware workstation not being able to detect the correct state of created machine. I believe that the utility's function is to collect state information from vagrant and pass it to VMware workstation. I read somewhere that WSL cannot create background services and also, following issue occurs which I am not able to understand:
I downloaded and installed the general vagrant-vmware-utility for general linux from here and followed this guide. It doesn't have any specific installation instructions for WSL. So I think using WSL + vagrant + vagrant-vmware-plugin for creating virtual machine and operating on it using VMware workstation pro is not possible (except this). However, if I am missing out on some steps please let me know. |
Hi there, The vagrant-vmware-utility should only be running on the host windows system (it should not be running within the WSL). This is because it is communicating with the VMware installation that's on the host system, not within the WSL. So you won't need the utility installed and running within WSL. As for seeing the VM within the VMware GUI itself, you have two options:
vd.gui = true
The file with the Cheers! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Vagrant version
Vagrant 2.2.5
Host operating system
Windows 10 + WSL
I have created the box using packer and powershell. The box was created successfully. I added the box to vagrant using WSL and
vagrant box add
command.Guest operating system
The guest operating system is Windows 10. I tried to run the box using WSL and
vagrant up
command.Vagrantfile
Debug output
https://gist.github.com/AdityaGovardhan/5d18e74b840819d47f0fdada5cb950f8
Expected behavior
vagrant up
should have executed successfullyActual behavior
vagrant up
didn't execute successfully due to some kind of file lockSteps to reproduce
References
Are there any other GitHub issues (open or closed) that should be linked here?
For example:
The text was updated successfully, but these errors were encountered: