Help us understand the problem. What is going on with this article?

Windows + VirtualBox (+ vagrant) で仮想マシンが起動できない

More than 5 years have passed since last update.

問題点

Windows 7 + VirtualBox 4.3.14 (+ vagrant 1.3.5) の組み合わせにおいて以下のような現象が発生する場合がある。

仮想マシン"XXXXX(仮想マシン名)"のセッションを開けませんでした。

The virtual machine 'XXXXX(仮想マシン名)' has terminated unexpectedly during startup with exit code 1.

終了コード : E_FAIL (0x80004005)
コンポーネント: Machine
インターフェース: IMachine {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}

(*)仮想マシンはvagrantからUbuntu(64bit)を構築した状況。

解決方法

VirtualBox 4.3.12 を使用する。

VirtualBox 4.3.14 (2014年7月22日現在のWindows版最新ver)ではバグがあり動かないとの情報あり。
(情報元が公式ではないため真偽は不明だが、本件のように実際に発生例あり。)
その為、ひとつ前のverを使用する事で一時的に解決。

VirtualBox 4.3.12 をダウンロード

備考

参考までに、上記の状態が発生する時、
vagrant up
を実行すると以下のようなメッセージが表示される。

C:\Users\abc>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Box 'precis64' was not found. Fetching box from specified URL for
the provider 'virtualbox'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
full box prior to discovering this error.
Downloading or copying the box...
Extracting box...ate: 922k/s, Estimated time remaining: --:--:--)
Successfully added box 'precis64' with provider 'virtualbox'!
[default] Importing base box 'precis64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[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 'starting, running'. The machine is in the
'poweroff' 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.

(vagrantから見た)プロバイダ(本件の場合はVirtualBox)にGUIがある場合、
そちらで確認した方がより有益な情報を確認できますよ。
...といった内容のメッセージが表示される。

YSK85
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした