Implementation of the USB 2.0 controller not found!

What

Vagrantでminimal/centos7をインストール時に起きたエラー。vagrant upが途中で止まったため、VirtualBoxで作成はされているが、起動できない状態になります。

Solution

エラーメッセージに答えがあります。

VBoxManage: error: To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in the VM settings.

Oracle VM VirtualBox Extension Packをインストールする場合は、こちらの記事が役立ちそうです。

USB2.0の設定を解除するなら、VirtualBoxマネージャーを開き、設定 > ポート-USB > 『USBコントローラーを有効化』のチェックを外すと良いです。

USB2.0の設定は以下のコードで解除できます。

  config.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id, "--usb", "on"]
    vb.customize ["modifyvm", :id, "--usbehci", "off"]
  end

[参考] https://github.com/jonschipp/vagrant/issues/3