vagrantでdebian環境を動かそうとしたらvagrant upでエラーになった記録
A list of base boxes for Vagrant - Vagrantbox.es
から
Debian Jessie 8.1.0 Release x64 (Minimal, Guest Additions 4.3.26)
というのを入れようと思い、
vagrant box add https://atlas.hashicorp.com/ARTACK/boxes/debian-jessie vagrant init ARTACK/debian-jessie
ここまでは何の問題もなく完了。
さて起動しようとして
vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'ARTACK/debian-jessie'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'ARTACK/debian-jessie' is up to date... ==> default: Setting the name of the VM: debian_box_default_1447491267837_72709 ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 => 2222 (adapter 1) ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... 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.
oh...
理由がわからずなのでVirtualBoxを起動して、GUIから該当の環境を実行すると
Implementation of the USB 2.0 controller not found! Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started. To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in the VM settings (VERR_NOT_FOUND).
ふむふむ
とりあえず、VirtualBoxから
設定>ポート>USB を選んで
USBコントローラを有効化 のチェックを外す。
設定を保存し、再度
vagrant up
エラーが出ないでうまくいってるみたい
vagrant status Current machine states: default running (virtualbox)
よし