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

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

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

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

Q&A

1回答

3246閲覧

vagrant up エラー

nini43

総合スコア15

Vagrant

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

0グッド

0クリップ

投稿2019/03/04 06:19

編集2019/03/04 13:49

仮想マシンを立ち上げているのですが、vagrant upを行ったところdefault: Booting VM...で止まってしまいます
色々調べて

config.vm.provider "virtualbox" do |vb| vb.gui = true end

OSはwindows10です
などの挿入をしたのですがうまくいきません
これはバージョンの相互関係の問題なのでしょうか?
virtualboxバージョンは6.0.4
Vagrantのバージョンは2.2.4

Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'bento/centos-6.8' version '2.3.4' is up to date... ==> default: Clearing any previously set forwarded ports... ==> default: Fixed port collision for 22 => 2222. Now on port 2200. ==> 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) => 2200 (host) (adapter 1) ==> default: Booting VM...

ここまででタイムアウトしてしまいます
vagrant up --debugで実行したところ

Command: ["modifyvm", "d3a505c1-69ab-45a6-8f01-c56faf63d249", "--natpf1", "delete", "ssh"] Stderr: VBoxManage.exe: error: The machine 'MyCentOS_default_1551703620106_95604' is already locked for a session (or be ing unlocked) VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine , callee IUnknown VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 527 of file VBoxManageModifyVM.cpp There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: ["modifyvm", "d3a505c1-69ab-45a6-8f01-c56faf63d249", "--natpf1", "delete", "ssh"] Stderr: VBoxManage.exe: error: The machine 'MyCentOS_default_1551703620106_95604' is already locked for a session (or be ing unlocked) VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine , callee IUnknown VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 527 of file VBoxManageModifyVM.cpp INFO interface: Machine: error-exit ["Vagrant::Errors::VBoxManageError", "There was an error while executing `VBoxManag e`, a CLI used by Vagrant\nfor controlling VirtualBox. The command and stderr is shown below.\n\nCommand: [\"modifyvm\", \"d3a505c1-69ab-45a6-8f01-c56faf63d249\", \"--natpf1\", \"delete\", \"ssh\"]\n\nStderr: VBoxManage.exe: error: The mach ine 'MyCentOS_default_1551703620106_95604' is already locked for a session (or being unlocked)\r\nVBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown\r\nV BoxManage.exe: error: Context: \"LockMachine(a->session, LockType_Write)\" at line 527 of file VBoxManageModifyVM.cpp\r\ n"]

のようなエラーが出ます

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

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

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

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

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

xenbeat

2019/03/04 06:40 編集

Androidタグは間違いですよね? OSの情報を追記しましょう。
noka_blank

2019/03/04 10:25

vagrant up --debug で実行すると、デバッグログが出力されますので、どこで実行が止まっているか掲示いただけないでしょうか?
nini43

2019/03/04 13:49 編集

vagrant up --debugで実行したとことうまくいきました 結局原因はわかりませんでした
nini43

2019/03/04 13:52

実行はできたのですがIPアドレスとうまくつながりません。仮想環境と接続すると Network error:Connection timed out というエラーが出ます どのようにすればよいでしょうか?
guest

回答1

0

vagrant up --debugで実行したとことうまくいきました
結局原因はわかりませんでした

投稿2019/03/04 13:01

nini43

総合スコア15

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

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

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問