Git Product home page Git Product logo

Comments (7)

dpetzel avatar dpetzel commented on September 2, 2024

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.

pmorton avatar pmorton commented on September 2, 2024

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.

dpetzel avatar dpetzel commented on September 2, 2024

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.

Keno avatar Keno commented on September 2, 2024

@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.

pmorton avatar pmorton commented on September 2, 2024

Perfect that is what I was going to ask. So I will test things out with

& net use $share

from vagrant-windows.

pmorton avatar pmorton commented on September 2, 2024

Published a new version to ruby gems to fix this issue. 0.1.0

from vagrant-windows.

daspilker avatar daspilker commented on September 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.