LoginSignup
4
4

More than 5 years have passed since last update.

うっかりYosemiteにアップデートしたらVagrantが動かなくなった

Last updated at Posted at 2014-11-01

背景

  • MacOSをYosemiteにアップデート
  • Vagrantで仮装マシン作成しようとするとコケる
  • おわた!

状況

  • vagrant upするとこんなログがでる
$ vagrant up
bash: `__BASH_FUNC<__rvm_date>()' の関数定義をインポート中にエラーが発生しました
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Resuming suspended VM...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'restoring, running'. The machine is in the
'saved' state. Please verify everything is configured
properly and try again.

If the provider you're using has a GUI that comes with it,
it is often helpful to open that and watch the machine, since the
GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run `vagrant up` while the
VirtualBox GUI is open.

若干Bash関係のエラーが出ているけどとりあえず無視する。
関係ありそうなのはVirtualBOXがうまく動いてなさそうなところ。

対応作

  • VirtualBOXを最新版を再インストール。
    • インストール方法は割愛。
    • 2014/11/1現在では VirtualBox 4.3.18 for OS X

結果

  • 動いた!
$ vagrant up
bash: `__BASH_FUNC<__rvm_date>()' の関数定義をインポート中にエラーが発生しました
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Resuming suspended VM...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection refused. Retrying...
==> default: Machine booted and ready!
  • vagrant status
$ vagrant status
bash: `__BASH_FUNC<__rvm_date>()' の関数定義をインポート中にエラーが発生しました
Current machine states:

default                   running (virtualbox)

The VM is running. To stop this VM, you can run `vagrant halt` to
shut it down forcefully, or you can run `vagrant suspend` to simply
suspend the virtual machine. In either case, to restart it again,
simply run `vagrant up`.

残った課題

BASHのエラーなんだろう。。。
rvm削除と.bashrcを修正して解決しました!

4
4
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
4
4