Vagrant

Vagrantでログインするユーザその他諸々を変更したい

こんな感じ config.ssh.guest_port = 19999 config.ssh.username = "username" config.ssh.host = "127.0.0.1" config.ssh.private_key_path = "~/.ssh/id_rsa"

vagrant snapshot go XXXできない

vagrant snapshot go XXXすると下記のようなエラーメッセージが出る。 There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: ["controlvm", "b9a2e6c4-19…

Chef周りのメモ2

Vagrantで作成した仮想環境のSSHポートを変更したい まず普通にvagrant up sudoが面倒なのでrootになる SSHポート変更 vi /etc/ssh/ssh_config #Port 22 ↓ Port 19999 /etc/init.d/sshd restart iptablesでSSH用に開けているポートを変更 vi /etc/sysconfig/…

Chef周りのメモ

Vagrantfileにberkshelfやchefの設定を行うと、"vagrant up"でcookbookの取得と仮想環境への適用を行ってくれるため、開発環境の配布に非常に便利。 2回目以降は"vagrant provision"を実行しないとchefの設定は適用されない。 ただし、VPSに環境を作る前にロ…

ChefとVagrantの練習メモ

VirtualBoxインストール https://www.virtualbox.org/wiki/Downloads OS X向けをダウンロード、インストール Vagrantインストール http://downloads.vagrantup.com/tags/v1.3.4 CentOS6.4のboxを取得 vagrant box add centos-6.4 http://developer.nrel.gov/…