昨夜、作業中に勝手に更新がはじまり、更新後はvagrant電源はオフの状態になっておりvagrantupが出来ない状態になっています。
以前にも同じことがあり修復できず、同じアプリを一から作り直したところでまたこの問題で非常に困っています
これは復旧できるのでしょうか。
PS C:\Users\shn> cd myvagrant
PS C:\Users\shn\myvagrant> cd mycentos2
PS C:\Users\shn\myvagrant\mycentos2> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'bento/centos-6.8' is up to date...
==> default: There was a problem while downloading the metadata for your box
==> default: to check for updates. This is not an error, since it is usually due
==> default: to temporary network problems. This is just a warning. The problem
==> default: encountered was:
==> default:
==> default: Could not resolve host: atlas.hashicorp.com
==> default:
==> default: If you want to check for box updates, verify your network connection
==> default: is valid and try again.
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
There was an error while executing VBoxManage
, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["hostonlyif", "create"]
Stderr: 0%...
Progress state: E_FAIL
VBoxManage.exe: error: Failed to create the host-only adapter
VBoxManage.exe: error: Operation canceled by the user
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component VirtualBoxWrap, interface IVirtualBox
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreate(struct HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp
PS C:\Users\shn\myvagrant\mycentos2>
宜しくお願いします。
環境
windows10
vagrant 1.8.6
virtualbox VBoxManage -v で確認できない
追記
やってみたこと.1
エラー内容:There was an error while executing VBoxManage
, a CLI used by Vagrant
for controlling VirtualBox.
(Vagrantが使用するCLIであるVBoxManageの実行中にエラーが発生しました
VirtualBoxを制御します。)
エラーから見るに、virtualboxのコマンド実行中にエラーとなっています。
試しにpower shell から
VBoxManage -h
などを実行してみたところ
VBoxManage : 用語 'VBoxManage' は、コマンドレット、関数、スクリプト ファイル、または操作可能なプログラムの名前として認 識されません。名前が正しく記述されていることを確認し、パスが含まれている場合はそのパスが正しいことを確認してから、再試 行してください。 発生場所 行:1 文字:1 + VBoxManage -h コード
となり実行できません。
windowsのプログラムファイルスでは存在が確認できるのですが・・・
やってみたこと.2
mactypeがインストールされていないか確認➜インストールされていない
追記2
何もいじっていないのですがもう一度vagrant upするとエラー内容がかわりました。
==> default: is valid and try again.
==> 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", "c73e01a0-efff-4a37-b36b-d9365fd247a3", "--type", "headless"]
Stderr: VBoxManage.exe: error: The virtual machine 'mycentos2_default_1520593749823_25187' has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in 'C:\Users\shn\VirtualBox VMs\mycentos2_default_1520593749823_25187\Logs\VBoxHardening.log'
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/03/28 13:42
2018/03/28 13:45
2018/03/28 13:47
2018/03/28 14:16
2018/03/28 22:33
2018/03/29 00:08
2018/03/29 00:14
2018/03/29 01:10
2018/03/31 17:06