Vagrant up not working on Windows 7

1,815 views
Skip to first unread message

Nick

unread,
May 9, 2012, 10:46:04 AM5/9/12
to vagra...@googlegroups.com
I am using the Vagrant windows package and when I try to run vagrant up I get a permission denied error on the import. I have tried running command prompt as administrator but with no luck.

I am using:
  • Windows 7 Ultimate 64-bit
  • VirtualBox 4.1.14
  • Vagrant 1.0.3 Package
  • Lucid 32 box from Vagrant
Thanks for the help.

Luis Lavena

unread,
May 9, 2012, 1:48:31 PM5/9/12
to vagra...@googlegroups.com
On Wed, May 9, 2012 at 11:46 AM, Nick <dobi...@gmail.com> wrote:
> I am using the Vagrant windows package and when I try to run vagrant up I
> get a permission denied error on the import. I have tried running command
> prompt as administrator but with no luck.
>

Please provide the exact output you get on the console.

If you're not sure how to copy text from a command prompt, please look at this:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/windows_dos_copy.mspx?mfr=true

--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

Nick

unread,
May 9, 2012, 2:49:09 PM5/9/12
to vagra...@googlegroups.com

[default] Importing base box 'marketron'...
C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/lib/vagrant/d
ata_store.rb:61:in `initialize': Permission denied - C:/Users/Nick Dobie/Desktop
/cucumber_testing_framework/.vagrant (Errno::EACCES)
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/data_store.rb:61:in `open'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/data_store.rb:61:in `open'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/data_store.rb:61:in `commit'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/vm.rb:120:in `uuid='
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/action/vm/import.rb:14:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/action/warden.rb:33:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/action/vm/check_box.rb:28:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/action/warden.rb:33:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/action/vm/check_accessible.rb:18:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/action/warden.rb:33:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/action/general/validate.rb:13:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/action/warden.rb:33:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/action/general/check_virtualbox.rb:23:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/action/warden.rb:33:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/action/builder.rb:92:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/action/runner.rb:49:in `block in run'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/util/busy.rb:19:in `busy'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/action/runner.rb:49:in `run'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/vm.rb:192:in `run_action'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/vm.rb:145:in `up'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/command/up.rb:31:in `block in execute'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/command/base.rb:116:in `block in with_target_vms'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/command/base.rb:111:in `each'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/command/base.rb:111:in `with_target_vms'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/command/up.rb:24:in `execute'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/cli.rb:42:in `execute'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
lib/vagrant/environment.rb:167:in `cli'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/
bin/vagrant:43:in `<top (required)>'
        from C:/vagrant/vagrant/bin//../embedded/bin/vagrant:19:in `load'
        from C:/vagrant/vagrant/bin//../embedded/bin/vagrant:19:in `<main>'


On Wednesday, May 9, 2012 12:48:31 PM UTC-5, Luis Lavena wrote:

Luis Lavena

unread,
May 9, 2012, 2:57:50 PM5/9/12
to vagra...@googlegroups.com
On Wed, May 9, 2012 at 3:49 PM, Nick <dobi...@gmail.com> wrote:
>
> [default] Importing base box 'marketron'...
> C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/lib/vagrant/d
> ata_store.rb:61:in `initialize': Permission denied - C:/Users/Nick
> Dobie/Desktop
> /cucumber_testing_framework/.vagrant (Errno::EACCES)
>         from

A small detail, seems there is a space in the path of the folder
you're creating ("Nick Dobie")

Can you attempt to create this from other folder without spaces?

It is having problems accessing the a file inside that folder, might
not be the space but a permission issue.

Nick

unread,
May 9, 2012, 3:08:05 PM5/9/12
to vagra...@googlegroups.com
That didn't solve the problem.

[default] Importing base box 'marketron'...
C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/lib/vagrant/
ata_store.rb:61:in `initialize': Permission denied - C:/Users/Public/cucumber_t
sting_framework/.vagrant (Errno::EACCES)
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/data_store.rb:61:in `open'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/data_store.rb:61:in `open'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/data_store.rb:61:in `commit'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/vm.rb:120:in `uuid='
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/action/vm/import.rb:14:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/action/warden.rb:33:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/action/vm/check_box.rb:28:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/action/warden.rb:33:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/action/vm/check_accessible.rb:18:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/action/warden.rb:33:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/action/general/validate.rb:13:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/action/warden.rb:33:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/action/general/check_virtualbox.rb:23:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/action/warden.rb:33:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/action/builder.rb:92:in `call'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/action/runner.rb:49:in `block in run'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/util/busy.rb:19:in `busy'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/action/runner.rb:49:in `run'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/vm.rb:192:in `run_action'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/vm.rb:145:in `up'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/command/up.rb:31:in `block in execute'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/command/base.rb:116:in `block in with_target_vms'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/command/base.rb:111:in `each'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/command/base.rb:111:in `with_target_vms'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/command/up.rb:24:in `execute'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/cli.rb:42:in `execute'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
lib/vagrant/environment.rb:167:in `cli'
        from C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3
bin/vagrant:43:in `<top (required)>'
        from C:/vagrant/vagrant/bin//../embedded/bin/vagrant:19:in `load'
        from C:/vagrant/vagrant/bin//../embedded/bin/vagrant:19:in `<main>'


Luis Lavena

unread,
May 9, 2012, 3:23:13 PM5/9/12
to vagra...@googlegroups.com
On Wed, May 9, 2012 at 4:08 PM, Nick <dobi...@gmail.com> wrote:
> That didn't solve the problem.
>
> [default] Importing base box 'marketron'...
> C:/vagrant/vagrant/embedded/lib/ruby/gems/1.9.1/gems/vagrant-1.0.3/lib/vagrant/
> ata_store.rb:61:in `initialize': Permission denied -
> C:/Users/Public/cucumber_t
> sting_framework/.vagrant (Errno::EACCES)
>         from

Can you attempt the following?

Open a new command prompt, and from it, execute the following:

C:\vagrant\vagrant\embedded\bin\ruby -v -rfileutils -e
"FileUtils.touch 'C:/Users/Public/cucumber_testing_framework/.vagrant'
"

Please notice the double and the single quotes, copy it exactly (use
the same copy and paste command prompt trick from before.

Also, can you ensure that "cucumber_testing_framework" folder exists
and your current user has access to it?

Thank you.

Nick

unread,
May 9, 2012, 4:47:23 PM5/9/12
to vagra...@googlegroups.com
C:\Users\Public\cucumber_testing_framework>C:\vagrant\vagrant\embedded\bin\ruby
-v -rfileutils -e "FileUtils.touch 'C:/Users/Public/cucumber_testing_framework/
vagrant'"
ruby 1.9.3p125 (2012-02-16) [i386-mingw32]

Yea I can access the folder

Luis Lavena

unread,
May 9, 2012, 4:52:25 PM5/9/12
to vagra...@googlegroups.com
On Wed, May 9, 2012 at 5:47 PM, Nick <dobi...@gmail.com> wrote:
> C:\Users\Public\cucumber_testing_framework>C:\vagrant\vagrant\embedded\bin\ruby
> -v -rfileutils -e "FileUtils.touch
> 'C:/Users/Public/cucumber_testing_framework/
> vagrant'"
> ruby 1.9.3p125 (2012-02-16) [i386-mingw32]
>
> Yea I can access the folder
>

The .vagrant file should be there now,

Can you try "vagrant up" again?

Nick

unread,
May 9, 2012, 5:10:20 PM5/9/12
to vagra...@googlegroups.com
Got the same error

Luis Lavena

unread,
May 9, 2012, 6:03:45 PM5/9/12
to vagra...@googlegroups.com
On Wed, May 9, 2012 at 6:10 PM, Nick <dobi...@gmail.com> wrote:
> Got the same error
>

I'm running out of ideas as this works for me.

The error is coming from this line:

https://github.com/mitchellh/vagrant/blob/v1.0.3/lib/vagrant/data_store.rb#L61

Which is when it tries to open a file for writing.

On previous email I asked if you're able to do "FileUtils.touch" which
basically does the same thing.

If that worked (and the .vagrant file got created) then "vagrant up"
should have worked.

You can receive access denied if the file has been open or is locked
by other process.

Sometimes Antivirus software might be locking files and causing a
fluke of those errors.

Using the same command prompt, if you can open the folder where the
file it suppose to be created and attempt the following:

copy con .vagrant
^Z

(Press Ctrl+Z to save the file)

see if the files gets created.

I'm running out of ideas, specially since I don't know how you
installed vagrant, if you're using Administrator rights, normal user
or were you using other account to install it.

Nick

unread,
May 10, 2012, 11:20:38 AM5/10/12
to vagra...@googlegroups.com
The issue was the way I copied the files to my Windows box from my Mac. After downloading a clean copy from GitHub it worked fine.

richardc

unread,
May 12, 2012, 4:36:41 AM5/12/12
to Vagrant
I've so far been unable to get vagrant to work on Windows7. I've tried
with a box originally packaged on Ubuntu and with a fresh installation
on Win7.

vagrant box add ubuntu-lucid-32 http://files.vagrantup.com/lucid32.box
vagrant init ubuntu-lucid-32
vagrant up

Here is the output, but after the VM window opens it just sits with a
single underscore on a black screen.

[default] VM already created. Booting if it's not already running...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 80 => 41608 (adapter 1)
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes...

My system:
Host OS: Windows7
VBox 4.1.14-r77440
Guest OS: lucid32 box
Vagrant 1.0.3
Reply all
Reply to author
Forward
0 new messages