Writing error when installing Vagrant on a Windows 7 64 bits laptop

477 views
Skip to first unread message

Jos Rozen

unread,
Jun 10, 2015, 7:33:29 AM6/10/15
to vagra...@googlegroups.com
Hey,
When installing Vagrant (1.7.2) on my Windows 7 64 bits laptop, it errors trying to write file "C:\Vagrant\embedded\bin\file.exe".
I do have administrator rights on my machine. I tried :
- simply double-clicking on the msi or launching it from the command prompt running as an administrator,
- rebooting my laptop first,
- a few locations for Vagrant.
The installer can write files into that directory (as there are many already) but not this file.exe.
Any ideas ?
thks
Jos
 

Alvaro Miranda Aguilera

unread,
Jun 10, 2015, 7:42:08 AM6/10/15
to vagra...@googlegroups.com
Hello,

Are you downloading from vagrantup.com?

The default path should be c:\Hashicorp\Vagrant

My suggestion will be cancel the current install.. reboot if possible.

Then,delete c:\vagrant and c:\hashicorp if present

if you had vagrant installed before, check on the home directory for
.vagrant.d (hidden), delete it too

then as your user you use, run the installer, approve the prompts for
admin rights and let it install on the defaults path.

Thanks
Alvaro.
> --
> 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+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Jos Rozen

unread,
Jun 10, 2015, 8:25:39 AM6/10/15
to vagra...@googlegroups.com
Yes, that download is from vagrantup.com.
I've tried many locations (with and without the hashicorp directory) but it errors on the same file.exe. Installation directories are nicely cleaned after a failed install so there's nothing to delete manually. And I don't see any hidden files...
thks
 

sun...@gmail.com

unread,
Jun 24, 2015, 7:04:47 PM6/24/15
to vagra...@googlegroups.com
Hi Jos,

Managed to install? If not can you describe more about the problem? Any error displayed on the screen or the installer just disappears?
An you try repair(right click on msi and repair) and check?
I am using it on a Windows 7 , 64bit laptop installation had no issues.
Locale of the system?

-Suneel

Jos Rozen

unread,
Jun 25, 2015, 4:22:01 AM6/25/15
to vagra...@googlegroups.com
Alas, I'm still having the same issue. When trying to install from vagrant_1.7.2.msi (downloaded, several times, from vagrantup.com), the installer stops and displays "Error writing to file: C:\HashiCorp\Vagrant\embedded\bin\file.exe. Verify that you have access to that directory." --I do have access to that directory as there are already files in there (from that same install).
This is a Windows 7 Enterprise, SP1, 64 bits machine, localized to French / France.
thks
Jos

Tuan Minh Nguyen Hoang

unread,
Jul 27, 2015, 3:07:15 AM7/27/15
to Vagrant, jos....@gmail.com
I also have the same issue. Have you been able to overcome it? :(

Leynos

unread,
Aug 2, 2015, 5:04:42 PM8/2/15
to Vagrant, jos....@gmail.com
Hi,

I am seeing this error too when trying to install. I have tried several different locations.

The error is as in the following screenshot:

https://imgur.com/wsH2Ie5

Note that when I try creating a file at the same location after restarting, whilst using a the administrator account, I receive the following error (in Powershell):

    Access to the path 'C:\Vagrant\embedded\bin\file.exe' is denied.

Regards,

Leynos

dragon788

unread,
Aug 4, 2015, 12:27:12 PM8/4/15
to Vagrant, jos....@gmail.com
Everyone who is having issues, these questions might help narrow things down:
1. Are you joined to a domain?
2. Do you log in as a domain user or local Administrator?
3. Do you happen to know if IT is using Roaming profiles for your domain if you have one?

Leynos

unread,
Aug 5, 2015, 4:54:59 AM8/5/15
to Vagrant, jos....@gmail.com
Hi,

1. Yes, this is joined to a domain
2. This is with a local admin account
3. Roaming profiles aren't being used.

Thanks,

Leynos

John Egan

unread,
Sep 4, 2015, 11:27:20 AM9/4/15
to Vagrant, jos....@gmail.com
I'm also having these exact same symptoms. I'm also on a domain, with a local admin account and am not using roaming profiles. A coworker of mine is also experiencing the same problems. 

Alvaro Miranda Aguilera

unread,
Sep 7, 2015, 4:29:15 AM9/7/15
to vagra...@googlegroups.com, jos....@gmail.com
Check the HOME and of the user.

time by time, Virtualbox, and the command line get different HOMES, so
that cause problems.

Alvaro
> --
> 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+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/c9f58c2e-02c8-4113-9657-d16e0f7090b3%40googlegroups.com.

John Egan

unread,
Sep 17, 2015, 4:09:43 PM9/17/15
to Vagrant, jos....@gmail.com
Hi Alvaro - I'm not that familiar with the command prompt in Windows; how can I check the HOME of the user? Also, how can I check to see what Virtualbox expects?

John Egan

unread,
Sep 17, 2015, 6:31:40 PM9/17/15
to Vagrant, jos....@gmail.com
I decided to try a different approach and use Chocolatey to try an install. it errored out, and I've included the command prompt output (chocolatey-screen-error.txt) and the log file in the hope this will provide more detail about the cause of the issue. 

I'm attempting to install Vagrant (1.7.4) on Windows 7 Enterprise, SP1 (workstation on a corporate Windows domain). 

I hope this extra information proves helpful. thanks!
chocolatey-screen-error.txt
chocolatey.log

Ethan S.

unread,
Sep 18, 2015, 8:44:05 AM9/18/15
to Vagrant, jos....@gmail.com

It appears it was installing 32 bit, are you on a 64 bit workstation? It also appears the "failure" was that it couldn't run with the reboot suppression of the MSI framework. If you reboot is vagrant installed?


You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/4zGGCMQ7Wxk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/b5aaa209-4839-4a92-8ab4-c7b57fa64968%40googlegroups.com.

John Egan

unread,
Sep 18, 2015, 10:45:18 AM9/18/15
to Vagrant, jos....@gmail.com
Hi - I tried a reboot, but no success. Also, I'm running 64-bit Windows 7 Enterprise.

Ethan S.

unread,
Sep 18, 2015, 1:19:38 PM9/18/15
to Vagrant, jos....@gmail.com

It seems like chocolatey isn't pulling the right arch then. Is there a vagrant64 in the list of packages?


John Egan

unread,
Sep 18, 2015, 3:32:00 PM9/18/15
to Vagrant, jos....@gmail.com
Hi,

I'm not sure if there is a vagrant64 in the list of packages. 

I'm not able to get this to install using the Vagrant website installer or Chocolatey, and was hoping to find a common thread causing both installation processes to fail. 

Ethan S.

unread,
Oct 26, 2015, 11:11:38 PM10/26/15
to Vagrant, jos....@gmail.com
I found this article on Microsoft's site when looking at this MSI error. https://support.microsoft.com/en-us/kb/834484 Are any of those cases true?

Reply all
Reply to author
Forward
0 new messages