3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Vagrant インストール トラブル対応

Last updated at Posted at 2019-07-04

ユーザフォルダ直下ではVagrant起動に失敗する

はい、ちょっとお試しで動かそうとしたところ、はまりましたのでメモを...

環境##

  • Vagrant バージョン:2.2.5
  • VirtualBox バージョン:6.0.8
  • 利用OS:Windows10
  • 選択OS:CentOS/7

事象##

コマンドプロンプトから初回のvagrant upにて失敗する

①コマンドプロンプトでvagrant upコマンド実行する(VirtualBoxが起動される)
②コマンドプロンプトに以下メッセージが表示される

prompt
C:\users\**** > vagrant up
・
・
・
==> default: Rsyncing folder: /cygdrive/c/Users/sugim/ => /vagrant

③コマンドプロンプトに以下メッセージが表示され、VirtualBoxがクローズしてしまう

prompt
==> default: Forcing shutdown of VM...
・
・
・

原因##

Vagrantの起動をユーザフォルダ直下でしようとしていたため
ユーザフォルダ配下に新たにフォルダを作成して実行すればOK

例)✖ C:\users\**** > vagrant init centos/7
    C:\users\**** > vagrant up
  ↓
  〇 C:\users\****\projectName > vagrant init centos/7
    C:\users\****\projectName > vagrant up
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?