LoginSignup
3
2

More than 5 years have passed since last update.

Windows7 64bit 環境で Vagrant を 2.0.0 にバージョンを上げると vagrant up できなくなる 場合の解決方法

Last updated at Posted at 2017-11-02

解決方法: PowerShell のバージョンを上げろ

PowerShell 5 にバージョンアップすればいけるらしいので、素直にバージョンを上げましょう。

Chocolatey を使っている方は、 choco install -y powershell でインストールするのがてっとりばやいです。

Chocolatey を使っていないかたは、 Windows Management Framework 5.1あたりをいれてください。PowerShell 5.1 がインストールされます。

バグ報告の ISSUE

"Vagrant up" hangs on windows 7. Due to powershell? #8783

これ見てる感じ、 Vagrant 1.9.6 以降で発生するみたいですね。

ハングアップする箇所

vagrant up --debug すると、デバッグ用のログを出力してくれるので、それを眺めてみるのも一興です。

INFO subprocess: Starting process: ["C:\Windows\System32\WindowsPowerShell\v1.0/powershell.EXE", "-NoLogo", "-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-Command", "$PSVersionTable.PSVersion.Major"]
INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: 2

やはり、 PowerShell が原因のようにみえますねー。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2