Vagrant で bento/ubuntu-16.04 を vagrant up すると途中で ネットワーク周りでコケる


環境

  • macOS Sierra 10.12.1
  • Virtualbox 5.0.28 r111378
  • Vagrant 1.7.4

現象

vagrant up すると、下記のようなエラーが発生してしまう

==> default: Configuring and enabling network interfaces...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

/sbin/ifdown eth1 2> /dev/null

Stdout from the command:



Stderr from the command:

mesg: ttyname failed: Inappropriate ioctl for device

SSH コマンドが送れないので、provisioner も実行されない

解決

Vagrant のバージョンが古かった。最新 (執筆時点 1.8.7) のものに更新したところ、すんなり解決した。

参考: Unable to set hostname on Ubuntu 16.04 box
https://github.com/mitchellh/vagrant/issues/7288