Vagrant で使う Hyper-V 用の Ubuntu には hv-kvp-daemon-init が必要


Hyper-V 用の Ubuntu の Box を作成したのですが、vagrant up で以下のようなエラーが発生しました。

==> default: Starting the machine...
==> default: Waiting for the machine to report its IP address...
    default: Timeout: 120 seconds
Hyper-V failed to determine your machine's IP address within the
configured timeout. Please verify the machine properly booted and
the network works. To do this, open the Hyper-V manager, find your
virtual machine, and connect to it.

The most common cause for this error is that the running virtual
machine doesn't have the latest Hyper-V integration drivers. Please
research for your operating system how to install these in order
for the VM to properly communicate its IP address to Hyper-V.

Ubuntu に hv-kvp-daemon-init をインストールして Box を作り直したらエラーが直りました。
本家では 12.04 では必要と言っていますが、14.04 でも必要のようです。

$ sudo apt-get update
$ sudo apt-get install hv-kvp-daemon-init

あと Box を zip で作ると bsdtar.exe のエラーが発生することがあるので、7-Zip で tar を作った後に tar.gz を作ると上手く行っています。Hyper-V は provider のコンフィギュレーションもいまいちだし、いろんなエラーで嵌るし、もう少し待った方がいいのかな。