サイト cogitatio/vagrant-hostsupdater インストール vagrant plugin install vagrant-hostsupdater 設定 各Vagrantfileでホスト名とIPを定義 config.vm.hostname = "hogehoge.devel" config.vm.network :private_network, ip: "192.168.33.250" 使い方 普通にvagrant upすると最後にhostsファイルの登録処理を行ってくれる vagrant up : : [default] Checking for host entries [default] adding to (C:/WINDOWS/system32/drivers/etc/hosts) : 192.168.33.250 hogehoge.devel # VA
![VagrantでゲストOSを起動した際に、ホストOSのhostsファイルにゲストOSのホスト名・IPを追加・削除してくれるVagrantプラグイン「Vagrant::Hostsupdater」](https://cdn-ak-scissors.b.st-hatena.com/image/square/a0c8df6975c58c8fc7bdb1a3e8bf98ea13f0686e/height=288;version=1;width=512/https%3A%2F%2Fmistymagich.wordpress.com%2Fwp-content%2Fuploads%2F2013%2F09%2Fhosts.png%3Fw%3D300)