atachibana's blog

引っ越しました。http://unofficialtokyo.com

Windows 10 + VirtualBox 5.0 + Vagrant 1.7.4 + VCCW 2.18.0 でのエラー回避

Windows 10 にアップグレード後 VCCW を使おうとした所、エラーで起動しませんでした。VirtualBox では Windows 10でいろいろな障害が起きているようですが私の場合、VirtualBoxVagrant、VCCW を全部最新版でインストールし直しても毎度おなじみのエラーが表示されます。

Error occurred: 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.

The primary issue for this error is that the provider you're using is not properly configured. This is very rarely a Vagrant issue.

VirtualBox 側のログを見ると Host-Only Ethernet Adapter 周りでのエラーの様子。

00:00:03.626514 IntNet#0: szNetwork={HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #14} enmTrunkType=3 szTrunk={\DEVICE\{EA2909E2-F163-4294-A9C5-5D8AB1D4BA32}} fFlags=0x8000 cbRecv=325632 cbSend=196608 fIgnoreConnectFailure=false
00:00:03.626582 VMSetError: F:\tinderbox\win-5.0\src\VBox\Devices\Network\DrvIntNet.cpp(1753) int __cdecl drvR3IntNetConstruct(struct PDMDRVINS *,struct CFGMNODE *,unsigned int); rc=VERR_INTNET_FLT_IF_NOT_FOUND
00:00:03.626606 VMSetError: Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #14'
00:00:03.626647 VMSetError: F:\tinderbox\win-5.0\src\VBox\Devices\Network\DevE1000.cpp(7715) int __cdecl e1kR3Construct(struct PDMDEVINS *,int,struct CFGMNODE *); rc=VERR_INTNET_FLT_IF_NOT_FOUND
00:00:03.626649 VMSetError: Failed to attach the network LUN

この現象の原因は NDIS6 Driver とやらのエラー

VirtualBox をオプション付きで再インストールすることで解決しました。

手順は以下

  1. VirualBox、Vagrantをアンインストール
  2. VirtualBox 5.0.10 のインストーラに NDIS5 を指定して再インストール
    VirtualBox-5.0.10-104061-Win.exe  -msiparams NETWORKTYPE=NDIS5
  3. Vagrant 1.7.4をインストール
  4. 一度 vagrant destroy して vagrant up

codex 翻訳のためのお遊びの環境なのに半日潰れました。一時的な障害かと思いますが誰かのお役に立てば幸い。