5
5

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.

VirtualBox5.0.12の罠

Last updated at Posted at 2016-01-07

VagrantがSSHを通らない

Vagrantがうまく動作してくれなくて明け暮れてました。ドユコト

困ったとこ

Macのターミナルで$ vagrant upすると、

$ vagrant up
Bringing machine 'wiki.dev' up with 'virtualbox' provider...
==> wiki.dev: Importing base box 'miya0001/vccw'...
==> wiki.dev: Matching MAC address for NAT networking...
==> wiki.dev: Checking if box 'miya0001/vccw' is up to date...
==> wiki.dev: A newer version of the box 'miya0001/vccw' is available! You currently
==> wiki.dev: have version '2.14.0'. The latest is version '2.19.0'. Run
==> wiki.dev: `vagrant box update` to update.
==> wiki.dev: Setting the name of the VM: wiki.dev
==> wiki.dev: Auto-generating node name for Chef...
==> wiki.dev: Clearing any previously set network interfaces...
==> wiki.dev: Available bridged network interfaces:
1) en0: Wi-Fi (AirPort)
2) en1: Thunderbolt 1
3) en2: Thunderbolt 2
4) p2p0
5) awdl0
6) bridge0
==> wiki.dev: When choosing an interface, it is usually the one that is
==> wiki.dev: being used to connect to the internet.
    wiki.dev: Which interface should the network bridge to? 1
==> wiki.dev: Preparing network interfaces based on configuration...
    wiki.dev: Adapter 1: nat
    wiki.dev: Adapter 2: bridged
==> wiki.dev: Forwarding ports...
    wiki.dev: 22 (guest) => 2222 (host) (adapter 1)
==> wiki.dev: Running 'pre-boot' VM customizations...
==> wiki.dev: Booting VM...
==> wiki.dev: Waiting for machine to boot. This may take a few minutes...
    wiki.dev: SSH address: 127.0.0.1:2222
    wiki.dev: SSH username: vagrant
    wiki.dev: SSH auth method: private key
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'paused' 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.

The primary issue for this error is that the provider you're using
is not properly configured. This is very rarely a Vagrant issue.

SSHに接続できないみたいなのですが、今まではtimeoutのエラーが何秒かごとに出ていました。しかし今回は5分ほど経ってからこのエラーメッセージがパッと出てきたのでそもそも何か根本的なところがおかしい。。。

解決方法

色々調べまわったところどうやらVirtualBoxのせいらしくて、こちらから古いversionのVirtualBoxをインストールし直したところうまくいきました。
自分は怖いので4.3まで落としましたが、5でも大丈夫らしいとのことです。
VirtualBox絶許!!

5
5
1

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?