-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
"Vagrant up" hangs on windows 7. Due to powershell? #8783
Comments
Downgrading to Vagrant 1.9.6 is another workaround. |
I've hit the same issue on a fresh Windows 7 install with Vagrant 1.9.7. |
Same here. It hangs here:
|
Same issue on Windows 7 x64, even running |
I have this issue as well. |
Same here, going back to 1.9.6 resolved for me as well. |
I have similar issue... have not tried vagrant 1.9.6 as yet. Will do and update |
I've got the same issue. |
Also for me the same issue:
|
Have the same problem. |
As has been commented on #8777, killing the powershell.exe process allows vagrant to continue, should you really NEED the latest version for some other reason. |
Hello, same issue appeared today. Fix that worked for me was to update Windows PowerShell (was 2009). Now it is 2016 version and Vagrant works perfect. You can update it by installing WMF: https://msdn.microsoft.com/en-us/powershell/mt173057.aspx |
upgrading powershell helps (install WMF 5) |
Update Windows Powershell to ver 5, the problem was solved. Vagrant: Vagrant 1.9.7 |
Upgrading powershell cannot be a final fix for this bug. I recommend to show a warning in vagrant, asking the user to upgrade power shell... |
WMF 5.1 + .NET 4.6.1 works for me too on Win 7 SP1. Even with that, after launching 'vagrant up', it freezes for ~20 sec, while powershell.exe eats up to 50% of i5 CPU resources. I don't remember such behavior on earlier versions. |
I had the same problem running vagrant up for "ubuntu/trusty64" it would hang on: |
I am also facing same issue on using Vagrant 1.9.6 version. INFO subprocess: Starting process: ["C:\Windows\System32\WindowsPowerShell\v1.0\/powershell.EXE", "-NoLogo", "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-Command", "(new-object System.Security.Principal.WindowsPrincipal([System.Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([System.Security.Principal.WindowsBuiltInRole]::Administrator)"] |
Had the same issue on my windows 7 machine. Updated Windows Poweshell to version 5 and all works now. Thanks a lot. |
Updating Powershell on Host Machine or guest VM? |
host |
Thanks @pscheit I have Updated Windows Poweshell to version 5 on host machine(Vagrant installed machine), now it was working now. But I am getting another issue, INFO synced_folders: Synced Folder Implementation: smb INFO interface: detail: default: You will be asked for the username and password to use for the SMB |
Prompting you for Samba folder credentials is normal. It is asking for an account on your host to connect to. You can put the credentials in the vagrant file but it isn't very secure to do so. One work around I have is I store credentials in some environment variables and pass those into the vagrantfile. I set the environment variables when I open powershell to help keep them only to my vagrant session. Example:
|
Confirm same hanging issue on Win 7 x64 with Vagrant 1.9.7. |
Its working for me after updating windows powershell. Vagrant: Vagrant 1.9.7 |
Thanks @wiltaylor My issue is resolved. |
Upgrading PowerShell fixed for me. Was running PowerShell 2. Upgraded to PowerShell 5 with the Windows Management Framework (WMF) 5.1 and vagrant no longer got hung up at "vagrant up" command. Vagrant 1.9.8 Here's the guide I used to upgrade PowerShell. The frameworks in this post are outdated but the rest is correct. http://mikefrobbins.com/2015/01/08/how-to-check-the-powershell-version-and-install-a-new-version/ |
Upgrading powershell should resolve the issue. The latest release (1.9.8) includes this PR #8839 that checks the powershell version and raises an error if the minimum is not satisfied. Cheers! |
@chrisroberts even on 1.9.8 I still need to kill powershell.exe in order to see the warning... |
@chrisroberts On 2.0.0 I also need to kill powershell.exe to see this warning. |
@kylerdmoore The link in your post is broken. http://mikefrobbins.com/2015/01/08/how-to-check-the-powershell-version-and-install-a-new-version/ |
@chrisroberts I have 2.0.0 installed and I don't see any warning. Not even if I kill the process. Updating PS to v5 helps |
Last working version for Windows 7 seems to be 1.9.5. Haven't tested 1.9.6 yet, but its broken since 1.9.7. |
@chrisroberts your PR is not doing what you described. There wasn't any exceptions/warnings on last version 2.0.0, windows 7, getting here is what help me to solve the problem. |
here is a faster and easier way of applying the workaround about installing new version of powershell.
vagrant loaded ok |
With latest v6.0.0-rc, @dmz9 technic failed:
And indeed, there is no
Finally, after following a solution in Stackoverflow, it finally worked: I installed .NET Framework 4.5. |
So i updated powershell, and i type vagrant ssh into my terminal, which logs me into my machine. while i am logged in, the command prompt disappears. anyone else seeing this? |
It is very interesting, vagrant up just hanging there forever, only saw exception when I killed all powershell process,
checked my powershell is 2,
Solved the issue by upgraded WMF to 4.0. |
I am facing the same issue now.
Vagrant version : 2.0.1 |
Same problem.
Vagrant Version 2.0.3 |
Hi @navigatrum - this issue has already been reported in #9629. Thanks! |
Restarting the pc in case of windows after adding the box before running |
In my case, this issue was solved by updating powershell and .Net framework |
Fixed this by adding "%SYSTEMROOT%\System32\WindowsPowerShell\v1.0" to the environment PATH |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Please note that the Vagrant issue tracker is reserved for bug reports and
enhancements. For general usage questions, please use the Vagrant mailing list:
https://groups.google.com/forum/#!forum/vagrant-up. Thank you!
Vagrant version
Vagrant 1.9.7
Host operating system
Windows 7 Professional
Guest operating system
Ubuntu Server 14.04 ("ubuntu/trusty64" box)
Vagrantfile
Comments were removed.
Debug output
https://gist.github.com/daffy1234/373f51a56ba183b886d045da99643011
Expected behavior
The machine should be provisioned and come up successfully.
Actual behavior
After the initial "vagrant up" command, absolutely no output is produced. vagrant.exe seems to open ruby.exe and powershell.exe. Killing powershell.exe twice is a workaround, and it gets the machine provisioned and booting normally. This issue does not occur after the machine has successfully booted at least once.
Steps to reproduce
The text was updated successfully, but these errors were encountered: