vagrant up fails: error on vmrun file in use

1,261 views
Skip to first unread message

Jacob Sherman

unread,
Nov 2, 2017, 7:41:13 PM11/2/17
to Vagrant
I've seen others have similar problem but I am pretty new to Vagrant and could find a solution
os: Ubuntu 16.04
vagrant with vmware plugin
vmware 14 workstation

I do not see an error log file in the .vagrant folder

An error occurred while executing `vmrun`, a utility for controlling                              
VMware machines. The command and output are below:                                                

Command: ["clone", "/home/devJacob/.vagrant.d/boxes/laravel-VAGRANTSLASH-homestead/4.0.0/vmware_desktop/ubuntu-16.04-amd64.vmx", "/home/devJacob/Coding/Homestead/.vagrant/machines/homestead-7/vmware_workstation/d4866db6-dec9-4dca-9d53-ab924345b5c9/ubuntu-16.04-amd64.vmx", "linked", {:notify=>[:stdout, :stderr]}]

Stdout: Error: The file is already in use        

Stderr:


fwiw: this is the first time I am install a vm on this machine

Jacob Sherman

unread,
Nov 2, 2017, 8:22:28 PM11/2/17
to Vagrant

Lucas Rangit Magasweran

unread,
Nov 2, 2017, 8:32:55 PM11/2/17
to Vagrant
Jacob,

This may be the same issue I had recently: https://groups.google.com/d/msg/vagrant-up/bHe04cJJMAE/hm49gqJIAgAJ

Is there a *.vmx.lck directory in /home/devJacob/.vagrant.d/boxes/laravel-VAGRANTSLASH-homestead/4.0.0/ ?

If so, you have to delete it. It should not have been included by the creator of the Vagrant box.

If not, try setting "linked_clone = false" for your provider VM as a workaround so the VM is copied as opposed to linked.

Jacob Sherman

unread,
Nov 2, 2017, 9:23:40 PM11/2/17
to Vagrant
Lucas,
Thanks for the reply.  I had read your post but first of all I don't see a linked_clone line in my Vagrant file.

I check the directory there is only a subdirectory named vmware_desktop which has files only
Very frustrating :(

my Vagrantfile:
 1  -*- mode: ruby -*-
  2 # vi: set ft=ruby :
  3 
  4 require 'json'
  5 require 'yaml'
  6 
  7 VAGRANTFILE_API_VERSION ||= "2"
  8 confDir = $confDir ||= File.expand_path(File.dirname(__FILE__))
  9 
 10 homesteadYamlPath = confDir + "/Homestead.yaml"
 11 homesteadJsonPath = confDir + "/Homestead.json"
 12 afterScriptPath = confDir + "/after.sh"
 13 aliasesPath = confDir + "/aliases"
 14 
 15 require File.expand_path(File.dirname(__FILE__) + '/scripts/homestead.rb')
 16 
 17 Vagrant.require_version '>= 1.9.0'
 18 
 19 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
 20     if File.exist? aliasesPath then
 21         config.vm.provision "file", source: aliasesPath, destination: "/tmp/bash_aliases"
 22         config.vm.provision "shell" do |s|
 23             s.inline = "awk '{ sub(\"\r$\", \"\"); print }' /tmp/bash_aliases > /home/vagrant/.bash_aliases"
 24         end
 25     end
 26 
 27     if File.exist? homesteadYamlPath then
 28         settings = YAML::load(File.read(homesteadYamlPath))
 29     elsif File.exist? homesteadJsonPath then
 30         settings = JSON.parse(File.read(homesteadJsonPath))
 31     else
 32         abort "Homestead settings file not found in #{confDir}"
 33     end
 34 
 35     Homestead.configure(config, settings)
 36 
 37     if File.exist? afterScriptPath then
 38         config.vm.provision "shell", path: afterScriptPath, privileged: false
 39     end
 40 
 41     if defined? VagrantPlugins::HostsUpdater
 42         config.hostsupdater.aliases = settings['sites'].map { |site| site['map'] }
 43     end
 44 end

Alvaro Miranda Aguilera

unread,
Nov 3, 2017, 6:11:37 AM11/3/17
to vagra...@googlegroups.com
hello jacob

try first a different box to ensure the setup is working properly

hashicorp/precise64

if this box works then we can assume is the box you are using.

The directory that lucas is suggesting is

~/.vagrant.d/boxes

being ~ your home directory

inside that path you will see a directory for the base boxes (templates) if you check the box you are having issues you could see the lock file.


--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/5b1fecd2-df31-408d-84fe-ff56801fb404%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Jacob Sherman

unread,
Nov 3, 2017, 8:27:06 AM11/3/17
to Vagrant
Thanks Alvaro,
So using the hashicorp/precise64 box vagrant times out on starting VMware.  So I am at a loss except to contact VmWare support but I think they will not help since I am using Vagrant.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.



--
Alvaro

Jacob Sherman

unread,
Nov 3, 2017, 7:10:30 PM11/3/17
to Vagrant
So Vmware called me actually and told me flat out Vmware 14 does not work with vagrant.  They said I should downgrade to 12.
Reply all
Reply to author
Forward
0 new messages