vagrant

Vagrantでec2にインスタンスを作る

大まかな物は見つかるんだけど。 自分の要求通りにやっと情報が集められたから書いておく。 vagrant plugin install vagrant-aws vagrant init Vagrantファイルを作る # 設定定義, あんま気にしてない VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGR…

Vagrantで起動と同時にプロビジョニングする

1.3以降はprovisionがオプションになったらしい。 まあその方が正しいか。 vagrant up --help [outsource_shell] Usage: vagrant up [vm-name] [options] [-h] --[no-]provision Enable or disable provisioning --provision-with x,y,z Enable only certain…

Vagrantでmountのエラーが出た

The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-root /vagrant vboxの問題らしいので再ビルドしてみる。 sshでvag…

Vagrantのrootパスワード

デフォルトでは su - password vagrant で行ける。 手元の環境だからこのままで良いや。 覚え書き。

Vagrantで"The guest additions on this VM do not match the install version of VirtualBox!"と出たら

こんな感じのメッセージが出た場合 [default] The guest additions on this VM do not match the install version of VirtualBox! This may cause things such as forwarded ports, shared folders, and more to not work properly. If any of those things …

vagrantのイメージ(OS)の管理

vagrant box add box名 vagrant用OSイメージのURL で追加出来る。 box名はgitのリモート名みたいなもんで、 複数持つ事が出来る。 vagrant的にはboxという単位でOSを管理してる。 恐らくVagrantファイルでこの名前を使って起動するOSを決めてるっぽい。 (本…

vagrantでサーバーの起動,停止, 破棄

vagrantの設定ファイルを置いてあるディレクトリで 自分の場合 ~/vagrant/Vagrantfile のディレクトリで 起動 vagrant up 停止 vagrant halt 破棄 vagrant destroy もうちょっと使ってみたら設定からまとめてみる。