You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
==> agent2: Mounting shared folders...
agent2: /vagrant => C:/Users/user/Documents/projects/vagrant-puppet4-oss
==> agent2: Updating /etc/hosts file on active guest machines...
The following WinRM command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mv -force /tmp/hosts/hosts.agent2 C:\Windows\System32\drivers\etc\hosts
Stdout from the command:
Stderr from the command:
Cannot find path 'C:\tmp\hosts\hosts.agent2' because it does not exist.
At line:1 char:1
+ mv -force /tmp/hosts/hosts.agent2 C:\Windows\System32\drivers\etc\hosts
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\tmp\hosts\hosts.agent2:String) [Move-Item], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.MoveItemCommand
The text was updated successfully, but these errors were encountered:
pearcec
pushed a commit
to pearcec/vagrant-hostmanager
that referenced
this issue
Mar 10, 2017
The code for Windows is broken when it comes to move the hosts file in place.
https://github.com/devopsgroup-io/vagrant-hostmanager/blob/master/lib/vagrant-hostmanager/hosts_file/updater.rb#L43
The text was updated successfully, but these errors were encountered: