-
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 cant see the powershell #9629
Comments
Hi there, Please provide a link to the gist of the debug output from running a Thanks! |
@chrisroberts Well, I dont know how to provide link to gist (what is gist) (I am a total newbie to git environment) EDIT : the gist link ( https://gist.github.com/ishakteyran/60d5f6cbcd13c902443b7f9a67c57f77 ) |
Thanks @ishakteyran - that's exactly what we needed! |
Temporary workaround: start powershell before |
Yesterday I have also tried using PS instead of cmd but it has produced no result. |
@ishakteyran I'm using:
|
@navigatrum The image above shows the successfull and failed |
Any update,please . Use vagrant_2.0.3_x86_64 for window and Virtual box |
I have the same problem on Windows 7. It's urgent blocker for me. OK, reverted vagrant to 1.8.6 and virtualbox to 5.1.34 - and it works now. My story was: I've upgraded virtualbox to 5.2 and vagrant stopped worked. I've upgraded vagrant - and it did not like my powershell version (2). I've installed newer powershell and now vagrant can't see powershell at all, but I have powershell version 3 now. |
@bialix - Vagrant 2.0.2 should not have this bug. Just make sure you are using the latest powershell. Thanks! |
Allows custom configuration of the powershell timeout and bumps the default timeout from 10 seconds to 30 seconds. Fixes hashicorp#9629
Allows custom configuration of the powershell timeout and bumps the default timeout from 10 seconds to 30 seconds. Fixes hashicorp#9629
I'm still having this problem with Vagrant 2.0.3. it returns me this error:
alrady tried updating powershell but it didn't seem to work. |
@lucasgabd - this is a regression and should be resoled in #9653 by setting a longer timeout. You should be able to try this in the next release (2.0.4). For now, if you have the latest powershell version, I recommend downgrading to 2.0.2. Thanks! |
@lucasgabd +1 same problem here |
hello , i also have the same problem , and i tried to upgrade PS version but it didn't work !! |
I am running Vagrant 2.0.4
$PSVersionTable
Windows 7 Pro SP1, Oracle VirtualBox 5.2.8 But I still get
Issue is unresolved; except you want me to downgrade to Version 2.0.2 |
@simioluwatomi Would you upload a gist of the command you are running with the The timeout can be configured using the VAGRANT_POWERSHELL_VERSION_DETECTION_TIMEOUT environment variable. However, if it still fails after increasing the timeout (the default is 30 so perhaps try 60) then it may point to a different issue with how the process is being executed. Thanks! |
i'm also experiencing this issue, is there an update in this one? |
same issue with me using Win7, vagrant 2.1.1, trying to start ubuntu/trusty64 |
opening powershell before using |
Well, my powershell version was old. I just updated it from this link, restarted the computer and worked. |
vagrant 2.1.2 seems to work ok. |
Did some digging with this, seems powershell was taking too long to start up.
I removed a few All good now. |
@BlackHatJack - for future reference...if this is useful...you can modify how long the timeout will wait for with this environment variable: $env:VAGRANT_POWERSHELL_VERSION_DETECTION_TIMEOUT = "60" Its value will be in seconds. More information about that var can be read in the docs. Thanks! |
Has anyone tried running command prompt as administrator? That did it for me |
Hello guys, this is the solution
It should work #Happycoding |
Install virtualbox and run vagrant up |
I have this problem too. In my case I always run vagrant from a Git Bash window on my Windows 10 Pro machine. Suddenly today I got the above message (except in my case the "installed version" of powershell is N/A). I tried upgrading my vagrant from 2.0.3 to 2.1.2, but that didn't work. Then I tried running "vagrant up" in an actual PowerShell window. (Apparently I'm running version 5.1 of powershell - way above the minimum required version). So I guess my problem is "solved" -- I'll have to remember to switch to PowerShell to run my vagrant up commands. A major annoyance, because I never use PowerShell. It looks like a Windows CMD shell window also works with vagrant. I guess the CMD shell can figure out my current PowerShell version. |
Reinstall your xampp, run vagrant up, then vagrant provision
On Aug 13, 2018 2:52 PM, "wla2000" <notifications@github.com> wrote:
I have this problem too. In my case I always run vagrant from a Git Bash
window on my Windows 10 Pro machine. Suddenly today I got the above message
(except in my case the "installed version" of powershell is N/A).
I tried upgrading my vagrant from 2.0.3 to 2.1.2, but that didn't work.
Then I tried running "vagrant up" in an actual PowerShell window.
(Apparently I'm running version 5.1 of powershell - way above the minimum
required version).
So I guess my problem is "solved" -- I'll have to remember to switch to
PowerShell to run my vagrant up commands. A major annoyance, because I
never use PowerShell.
It looks like a Windows CMD shell window also works with vagrant. I guess
the CMD shell can figure out my current PowerShell version.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9629 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIf-nlJPeDOco5txg2t86hwP1qSZBNcIks5uQYSZgaJpZM4S_ELM>
.
|
None of above worked :(
|
to get the latest version of powershell https://www.microsoft.com/en-us/download/details.aspx?id=34595 |
Same problem with, this is my vagrant up --debug: https://gist.github.com/pharuck/d3dba3bef0813e582efa4b6d8cd59319 what i tried?
Another suggestion? |
@pharuck - what is the result if running |
result: 5
|
@pharuck - if you set this environment variable and increase the timeout, does it work? 🤔 |
Hi Guys, |
I tried to run vagrant up on Cmder. Had the same issue of PowerShell minimum required version: 3 whereas I have version 5 in window 10. I re-installed Cmder and resolved the issue. 👍 |
Having the same issue as pharuck, and have simulated the suggestions here in And the frustrating thing is I can't even backup my boxes should I wish to reinstall, it still references the Powershell minimum N/A version. vagrant package --output vagrant_example.box (is useless) Any ideas how to fix this or everytime Windows 10 updates vagrant breaks? |
@codingarrow would you please provide a gist of the debug output ( |
chrisroberts I have attached my file, dump debug (txt) I reckon that Windows 10 security update has something that messed up the vagrant configuration. But thank you for scrutinizing this frustrating issue thoroughly |
thank you for everyone's inputs here it appears Vagrant (latest) and VirtualBox(latest) doesn't go well with windows 10's latest Powershell Issue I've tried every possibility and every combination of Vagrant,VirtualBox even uninstalled Powershell 2.0 and made powershell.exe -Version 2 it wasted me development days the solution is a simple downgrade and it worked! (Will check my backedup Boxes though) Now I'm gonna stick to VirtualBox-5.1.34-121010-Win and vagrant_1.9.7_x86_64 for now on my windows 10 (updated occassionally) Cheers |
In my case, I solved the problem like this: |
After multiple attempts with different base windows configurations, with different tool sets installed and used (cmder, msys2, cygwin), applying windows updates, etc, I was not able to get windows into a state to reproduce the issues encountered. If anyone can provide steps to reproduce the issue, please do let me know so I can investigate it more. As a workaround, I have updated the hyper-v enabled check so that it will not result in a hard failure if the powershell validation check fails. This will prevent failures when using a non-hyper-v provider like virtualbox or docker. There are places where powershell is still used (like smb synced folders) that can cause problems, but this should at least relieve the issue until a reliable reproduction of the environment can be obtained. PR is here: #10332 and it will be included in the next release. Cheers! |
Open powershell and put vagrant up |
Hello everybody, I invite you to install the latest version of Powershell, according to the step listed in the link bellow: Regards, |
I'm having the same issue. I cannot vagrant up and I have Powershell 5.0 on W7 installed: When retrieving the Powershell version I have an updated version:
Any ideas / updates ? |
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. |
Vagrant version
2.0.3
Host operating system
Win 10 Pro
Guest operating system
1- Ubuntu (hoshicorp/precise64)
2- laravel/homestead
Vagrantfile
1 (this is in C:\ drive)
2 (this is in D:\ drive)
Output of
vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
The version of powershell currently installed on this host is less than
the required minimum version. Please upgrade the installed version of
powershell to the minimum required version and run the command again.
Installed version: N/A
Minimum required version: 3
Explanations
Today I installed vagrant and VirtualBox (latest one from its website) , then i tried to use the aforementioned boxes (first the ubuntu one, and then the laravel box, but when i executed
vagrant up
the error above is thrown. The output for powershell version isName Value
PSVersion 5.1.16299.251
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.16299.251
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
However, in my system Path the powershell directory is "%SYSTEMROOT%\System32\WindowsPowerShell\v1.0".
Now, the question is "Does vagrant check the directory in the path environment variable and thinks the version is 1.0?" If so, how can we overcome the issue?
EDIT : Changed the title "Debug Output" to "Output of
vagrant up
"The text was updated successfully, but these errors were encountered: