質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

Q&A

解決済

1回答

6836閲覧

vagrant up でエラーが発生する

退会済みユーザー

退会済みユーザー

総合スコア0

Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

2グッド

1クリップ

投稿2016/05/02 08:23

編集2016/05/03 01:47

###前提・実現したいこと
・virtualboxにvagrantでcentosの環境を作成したい。
・vagrant upで以下のエラーメッセージが発生。

###発生している問題・エラーメッセージ

C:\02.CI\vagrant\CentOS67>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat default: Adapter 2: hostonly ==> default: Forwarding ports... default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Booting VM... There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: ["startvm", "0a9c1a92-b28f-4b45-afab-b9b8f2b8272b", "--type", "headless "] Stderr: VBoxManage.exe: error: The virtual machine 'CentOS67_default_14621743154 22_84565' has terminated unexpectedly during startup with exit code -1073741819 (0xc0000005). More details may be available in 'C:\Users\user\VirtualBox VMs\Ce ntOS67_default_1462174315422_84565\Logs\VBoxHardening.log' VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component Machine, int erface IMachine ■別のボックスでvagrant upを実行 C:\02.CI\vagrant\CentOS67>vagrant box add centos64 https://dl.dropboxusercontent .com/u/3657281/centos64_ja.box ==> box: Box file was not detected as metadata. Adding it directly... ==> box: Adding box 'centos64' (v0) for provider: box: Downloading: https://dl.dropboxusercontent.com/u/3657281/centos64_ja.bo x box: Progress: 100% (Rate: 594k/s, Estimated time remaining: --:--:--) ==> box: Successfully added box 'centos64' (v0) for 'virtualbox'! C:\02.CI\vagrant\CentOS67>cd C:\02.CI\vagrant\centos64 C:\02.CI\vagrant\centos64>vagrant init centos64 C:\02.CI\vagrant\centos64>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'centos64'... ==> default: Matching MAC address for NAT networking... ==> default: Setting the name of the VM: centos64_default_1462181115765_89659 ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat default: Adapter 2: hostonly ==> default: Forwarding ports... default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Booting VM... There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: ["startvm", "d8a9a1f0-2c60-401d-9964-5cddd61d4867", "--type", "headless "] Stderr: VBoxManage.exe: error: The virtual machine 'centos64_default_14621811157 65_89659' has terminated unexpectedly during startup with exit code -1073741819 (0xc0000005). More details may be available in 'C:\Users\user\VirtualBox VMs\ce ntos64_default_1462181115765_89659\Logs\VBoxHardening.log' VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component Machine, int erface IMachine

###該当のソースコード
Vagrantfile

Vagrant.configure(2) do |config| config.vm.box = "CentOS67x64" config.vm.network "private_network", ip: "192.168.33.10" end

###試したこと
・biosの仮想化を有効
・virtualboxのバージョンを下げて(4.3.38)vagrant upを実行
・コマンドラインからVirtualBoxを起動。同じエラー(vboxmanage startvm centos64_default_1462181115765_89659 --type=headless)

###補足情報(言語/FW/ツール等のバージョンなど)
os:windows7 64bit
vagrant:1.8.1
virtualbox:5.0.2 / 4.3.38
addしたvagrant box:https://github.com/CommanderK5/packer-centos-template/releases/download/0.6.7/vagrant-centos-6.7.box

miyabi-sun, ikuwow👍を押しています

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

ikuwow

2016/05/02 09:27

別のboxを利用してみても同じエラーが出るのか、試してみて結果を追記していただけますか。
退会済みユーザー

退会済みユーザー

2016/05/02 09:40

ほかのボックスでも試して見ましたが、同じエラーになりました。 (発生している問題・エラーメッセージにエラーメッセージを追記しております)
miyabi-sun

2016/05/03 00:59

インストール済のVirtualBOXに「centos64_default_1462181115765_89659」というマシンが登録されているはずなので、それをGUIでポチポチ切り替えながら立ち上がるか確認してもらっていいですか?私もWindowsでVirtualBOXの仮想マシンが立ち上がらずぐぐるやQiitaでの検索地獄に何度もハマりました
退会済みユーザー

退会済みユーザー

2016/05/03 01:38

VirtualBoxに「centos64_default_1462181115765_89659」が電源オフで登録されておりましたが、起動できませんでした。 (以下エラーコード) 仮想マシン"centos64_default_1462181115765_89659"のセッションを開けませんでした。 The virtual machine 'centos64_default_1462181115765_89659' has terminated unexpectedly during startup with exit code -1073741819 (0xc0000005). More details may be available in ' C:\Users\user\VirtualBox VMs\centos64_default_1462181115765_89659\Logs\VBoxHardening.log'. 終了コード : E_FAIL (0x80004005) コンポーネント: Machine インターフェース: IMachine {480cf695-2d8d-4256-9c7c-cce4184fa048}
guest

回答1

0

ベストアンサー

Windows環境では定期的にダメバージョンがリリースされているようです。
http://qiita.com/yusuke-k/items/e1cedaa421be4de25e33
http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q12132153572

「WIndows Virtualbox has terminated unexpectedly during」という感じにエラーメッセージを含めながらググっていくと更に掘り進めそうなので頑張ってください。

投稿2016/05/03 01:55

miyabi-sun

総合スコア21158

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

退会済みユーザー

退会済みユーザー

2016/05/03 02:28

VirtualBoxのバージョンを4.3.12にしたところ vagrantからvirtualBoxに仮想環境を作ることができました。 アドバイスありがとうございました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問