LoginSignup
3
1

More than 3 years have passed since last update.

Vagrantでユーザー名が日本語の場合に出るエラー対処

Posted at

Vagrantが動かねぇ…

簡単にセットアップできると噂のVagrant。
でもなぜかMyPCでは動かない…
Vagrantのpluginのインストールは出来るんだけど…

もしかしてユーザー名が日本語なのが原因?

vagrant box addが通らない…
なんだかファイルが無いとか、そんなエラーログが出てる気がする…

Vagrant failed to initialize at a very early stage:

The plugins failed to load properly. The error message given is
shown below.

cannot load such file -- vagrant/vbguest

でもファイルはあるし…
もしかしてファイルを探せてない…?

どうやら調べてみると、環境変数を追加すると直るみたい。

変数名 VAGRANT_HOME
変数値 c:.vagrant.d

という内容でMyPCを再起動。

さぁvagrant upだ…?

無事vagrant box addできたし
vagrant initもできてVagrantfileも生成できた。
いざvagrant upだ!!!

…ん?

VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleImportAppliance(struct HandlerArg *)" at line 957 of file VBoxManageAppliance.cpp

なんかまたエラーが出てる…
今度はVagrantというよりは、VirtualBoxがエラー出してるみたい。

まさか!と思ったらやっぱり日本語ユーザー名が邪魔していた…。
VirtualBoxの環境設定よりデフォルトの仮想マシンフォルダー
c:\VirtualBox VMs
に変更すると無事起動!

まとめ

日本語ユーザーでプログラミングするべきじゃない(真理
でも変更できないしなぁ…

3
1
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
1