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. Are there any work-arounds for the 'failed to lock the file' Any way to get this VM started up TIA. Reason: Failed to lock the file.' FWIW, Im not using any snapshots. 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. Attempts at starting my VMware Workstation VM now result in 'Cannot open the disk xxxx.vmdk or one of the snapshot disks it depends on. However, I am not able to view the correct state of this machine through VMware workstation since vagrant-vmware-utility for WSL is not running correctly. Now, I am able to vagrant up, status and destroy the machine using WSL separately.
I am able to view the correct state of this machine through VMware workstation since vagrant-vmware-utility for Windows is running correctly. I am able to vagrant up, status and destroy the machine using powershell separately. So, I was able to get some clue of what's happening. packer build (not possible to provide packer file)Īre there any other GitHub issues (open or closed) that should be linked here? When attempting to start a virtual machine on VMware Workstation you may see the error'Failed to lock the main memory file' and you are prompted whether to d.Welcome to our community We’re working tech professionals who love collaborating. Come for the solution, stay for everything else.
Pricing Teams Resources Try for free Log In. Vagrant up didn't execute successfully due to some kind of file lock Steps to reproduce About Press Copyright Contact us Creators Advertise Developers Terms Privacy Policy & Safety How YouTube works Test new features Press Copyright Contact us Creators. Find answers to VMWare workstation - failed to lock file when opening virtual machine from the expert community at Experts Exchange. Vagrant up should have executed successfully Actual behavior Windows10.vm.box_url = "file://packer/packer_output/windows10.box"
# Use `CANARY=true vagrant up` to test the latest local box build Windows10.vm.provider :vmware_desktop do |vd, override| Windows10.vm.network "forwarded_port", guest: 3389, host: 33389 # Allows RDP Windows10.vm.box = "windows10" # ensure to add box to vagrant
Config.vm.synced_folder ".", "/vagrant", disabled: trueĬonfig.vm.define "vagrant-windows10", primary: true do |windows10|