最終的にこれがしたい。
Ubuntu 12.04 Vagrant + Laravel4.1 + PHP 5.5.Vagrant upで動かしてみる。
http://localhost:8888
でアクセスできると記載されているがつながらないのでvagrant reloadすると55555になっていた。
$ vagrant reload
==> laravel4: Attempting graceful shutdown of VM...
==> laravel4: Clearing any previously set forwarded ports...
==> laravel4: Clearing any previously set network interfaces...
==> laravel4: Preparing network interfaces based on configuration...
laravel4: Adapter 1: nat
==> laravel4: Forwarding ports...
laravel4: 22 => 2222 (adapter 1)
laravel4: 80 => 55555 (adapter 1)
laravel4: 3306 => 55556 (adapter 1)
laravel4: 5432 => 55557 (adapter 1)
==> laravel4: Booting VM...
==> laravel4: Waiting for machine to boot. This may take a few minutes...
laravel4: SSH address: 127.0.0.1:2222
laravel4: SSH username: vagrant
laravel4: SSH auth method: private key
laravel4: Warning: Connection timeout. Retrying...
laravel4: Warning: Connection timeout. Retrying...
laravel4: Warning: Connection timeout. Retrying...
==> laravel4: Machine booted and ready!
==> laravel4: Checking for guest additions in VM...
laravel4: The guest additions on this VM do not match the installed version of
laravel4: VirtualBox! In most cases this is fine, but in rare cases it can
laravel4: prevent things such as shared folders from working properly. If you see
laravel4: shared folder errors, please make sure the guest additions within the
laravel4: virtual machine match the version of VirtualBox you have installed on
laravel4: your host and reload your VM.
laravel4:
laravel4: Guest Additions Version: 4.2.0
laravel4: VirtualBox Version: 4.3
==> laravel4: Setting hostname...
==> laravel4: Mounting shared folders...
laravel4: /vagrant => /home/gabriel/laravel/Laravel4-Vagrant
laravel4: /var/www => /home/gabriel/laravel/Laravel4-Vagrant/www
laravel4: /tmp/vagrant-puppet-2/manifests => /home/gabriel/laravel/Laravel4-Vagrant/puppet/manifests
laravel4: /tmp/vagrant-puppet-2/modules-0 => /home/gabriel/laravel/Laravel4-Vagrant/puppet/modules
==> laravel4: VM already provisioned. Run `vagrant provision` or use `--provision` to force it
これでいつものLaravelの初期画面が表示された。
http://localhost:55555/参考: