LoginSignup
10
10

More than 5 years have passed since last update.

Conoha で Vagrant up できない問題の解決策

Last updated at Posted at 2014-06-04

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.

解決策

原因究明方法

  1. ssh -X で conoha の vps にログインして、X を飛ばせるようにする
  2. virtualbox で GUI 立ち上げ
  3. GUI から Start ボタンを押して起動を試す。 たぶんここでこけてる。

原因

VT-X がないから失敗していた。
GUI から Setting --> System --> Acceleration --> Enable VT-X のチェックを外す

参考:
http://d.hatena.ne.jp/kitokitoki/20140511/p1

10
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
10