下記の記事にしたがいました。
http://qiita.com/TakashiOshikawa/items/d2fb48d59e9e316af9a2
簡潔で一番下にコマンド集もあってとても素敵なサイトです。
自分の環境
※つい最近win7⇒win10にアップデートしたら起動のたびに再起動させられます。(未解決)
トラブルシューティング的なTips
add box 失敗
こんなんでました。後でもう一回やったら普通にできたので通信環境のせいかと推測。
C:\Users\hoge\DevEnv\centos>vagrant box add centos6.5 https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'centos6.5' (v0) for provider:
box: Downloading: https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box
box: Progress: 26% (Rate: 0curl:/s, Estimated time remaining: 0:16:57)
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054
Virtual box再インストール
dockerのインストール時のチェックボックスつけて一緒にインストールしたVirtualBoxだと
こんなんが出ました。参考サイトを見て最新版を再インストール。
==> default: Setting the name of the VM: centos_default_1466907933145_18778
==> 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_INVALIDARG
VBoxManage.exe: error: Failed to create the host-only adapter
VBoxManage.exe: error: Assertion failed: [!aInterfaceName.isEmpty()] at 'F:\tinderbox\win-5.0\src\VBox\Main\src-server\HostNetworkInterfaceImpl.cpp' (74) in long cdecl HostNetworkInterface::init(class com::Bstr,class com::Bstr,class com::Guid,enum __MIDL_MIDL_itf_VirtualBox_0000_0000_0036).
VBoxManage.exe: error: Please contact the product vendor!
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCreate(struct HandlerArg *)" at line 71 of file VBoxManageHostonly.cpp
参考サイト:
http://d.hatena.ne.jp/kobarn/20150805
http://qiita.com/ShotaKameyama/items/1f39791092f57c5046bc