vagrantを起動するのと終了する場合のやり方です(☝ ՞ਊ ՞)


vagrantを起動します。vagrant up を使用します。

Bringing machine ‘default’ up with ‘virtualbox’ provider…
[default] Clearing any previously set forwarded ports…
[default] Creating shared folders metadata…
[default] Clearing any previously set network interfaces…
[default] Preparing network interfaces based on configuration…
[default] Forwarding ports…
[default] — 22 => 2222 (adapter 1)
[default] Booting VM…
[default] Waiting for machine to boot. This may take a few minutes…
[default] Machine booted and ready!
[default] The guest additions on this VM do not match the installed version of
VirtualBox! In most cases this is fine, but in rare cases it can
cause things such as shared folders to not work properly. If you see
shared folder errors, please update the guest additions within the
virtual machine and reload your VM.

Guest Additions Version: 4.2.16
VirtualBox Version: 4.3
[default] Configuring and enabling network interfaces…
[default] Mounting shared folders…
[default] — /vagrant



vagrantのステータスを確認します。vagrant status を使用します。

vagrant status
Current machine states:

default running (virtualbox)

The VM is running. To stop this VM, you can run `vagrant halt` to
shut it down forcefully, or you can run `vagrant suspend` to simply
suspend the virtual machine. In either case, to restart it again,
simply run `vagrant up`.



vagrantを終了します。vagrant haltを使用します。

vagrant halt
[default] Attempting graceful shutdown of VM…


状態を確認します。vagrant statusを使用します。

vagrant status
Current machine states:

default poweroff (virtualbox)

The VM is powered off. To restart the VM, simply run `vagrant up`

電源切れているからvagrant upしろと言われます。

これでバッチリですね(☝ ՞ਊ ՞)