Install
最新の vagrant を入れる
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.3_x86_64.deb
sudo dpkg -i vagrant_1.6.3_x86_64.deb
apt-get install virtualbox
vagrant box を入れて初期化 (Ubuntu 14.04)
vagrant box add trusty64 https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box
mkdir Vagrant
vagrant init trusty64
vagrant up
ここで失敗
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> 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.
解決策
原因究明方法
- ssh -X で conoha の vps にログインして、X を飛ばせるようにする
- virtualbox で GUI 立ち上げ
- GUI から Start ボタンを押して起動を試す。 たぶんここでこけてる。
原因
VT-X がないから失敗していた。
GUI から Setting --> System --> Acceleration --> Enable VT-X のチェックを外す