Comments (7)
I had a similar problem, that I worked around by hacking the provision file in vagrant itself, I'm not sure where the "proper" fix belongs so I don't have any open pull request, but see if https://github.com/dpetzel/vagrant/commit/3b2f6251724beff352bb2d99901aa25431380aec lets you work around the issue.
from vagrant-windows.
Would it make sense to have the mapping provisioner wait some time. i.e.
$tries = 6
while (-not Test-Path "$MountPoint" -and $tries -le 6)
{
sleep 10
}
@dpetzel I am not sure that I understand what the hack is doing. It looks like it is just running a net use without error checking. Any idea how running the net use solves the problem? Do you think that running this in the mount script would solve you specific issue?
from vagrant-windows.
Yes all it does it a net use with no error checking. I can't explain WHY it works, but it has solved the issue for me.
As far as the wait time, in the testing that I did, I would tried waiting upwards of 30 minutes and it still would not work. They only success I had was manually running the net use, and then the provisioner would work fine.
Running the net use in the mount script might just work, but since I don't really know the root cause of the issue, its hard to say for sure.
from vagrant-windows.
@pmorton Putting it in the mount script does work (though the actual net use
command fails). See https://github.com/julia-ci/vagrant-windows/blob/master/lib/vagrant-windows/scripts/mount_volume.ps1.erb
from vagrant-windows.
Perfect that is what I was going to ask. So I will test things out with
& net use $share
from vagrant-windows.
Published a new version to ruby gems to fix this issue. 0.1.0
from vagrant-windows.
Everything is working, but the net use command causes an error message on my Windows Server 2008 R2 box. Is that normal?
[default] Mounting shared folders...
[default] -- v-root: /vagrant
←[36mwinrm←[0m System error 67 has occurred.
←[36mwinrm←[0m
←[36mwinrm←[0m The network name cannot be found.
←[36mwinrm←[0m
←[36mwinrm←[0m Attempting to mount v-root to C:\vagrant
←[36mwinrm←[0m symbolic link created for C:\vagrant <<===>> \\vboxsrv\v-root
from vagrant-windows.
Related Issues (20)
- Use Schedule.Service to run Chef Task HOT 5
- [1.5.1] Unknown configuration section 'windows' HOT 2
- Access Denied trying to change winrm configuration during provisioning HOT 4
- Vagrant 1.5 warnings HOT 14
- Rename should force reboot HOT 3
- [vagrant 1.5.1] Using rsync with vagrant-windows fails HOT 1
- Install .NET framework via powershell through shell provider not working HOT 13
- Configurating network adapter failed when NON-ASCII adapter name used. HOT 16
- Vagrant-login 0.9.0 not found HOT 3
- Stuck on Waiting for VM to boot. HOT 20
- Error Configuring and enabling network interfaces HOT 2
- vagrant rdp HOT 1
- Upgrade path to 1.6 HOT 2
- Windows 2008/Powershell 1.0 file manager support HOT 4
- Setting synched folder to create a network drive doesn't work HOT 2
- Shell Provisioning Stalling HOT 1
- Why is Vagrant 1.7.4 insisting on having vagrant-windows installed when it's deprecated? HOT 1
- Unable to install vagrant-windows on vagrant 1.8.6 HOT 4
- chef seems to be running under the wrong user
- Vagrant - VirtualBox - Windows Server 2012 - Sysprep Issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vagrant-windows.