Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFS server for windows(winnfsd.exe) still running after vagrant halt #105

Open
pablobb opened this issue Dec 6, 2016 · 5 comments
Open

Comments

@pablobb
Copy link

pablobb commented Dec 6, 2016

Is there an option to stop winnfsd.exe after vagrant machine has stopped ?

@marcharding
Copy link
Member

Currently not. You can always kill it manually though...

@vbarzokas
Copy link

vbarzokas commented Sep 28, 2017

That causes issues if you do vagrant halt and then again vagrant up.
I get a lot of errors when trying to perform simple operations on the mounted files, like this one rm: cannot remove '<FILENAME>': Input/output error

So I always have to remember shutting down the winnfsd.exe too with
vagrant halt && taskkill /f /im winnfsd.exe

@leandrocrs
Copy link

As a workaround, open Powershell as Admin, then enter the following command:

Get-Process winnfsd* | select Id | Stop-Process

@sven-carstens
Copy link

As there is no real hook with the nfs capability that gets called on shutdown we would need to hook machine_action_halt and work from there.

  • Remove nfs entries for the current machine from the nfspaths file (you could have multiple instances running)
  • If that file is empty afterwards stop the winnfsd

@jkrasniewski
Copy link

Currently this can be easily solved using vagrant triggers:

  config.trigger.after :halt do |trigger|
    trigger.info = "Clean all nfs processes"
    trigger.run = {inline: "taskkill /IM \"winnfsd.exe\" /F ; exit 0"}
    trigger.on_error = :continue
  end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants