Vagrantコマンド
仮想環境の起動
C:\>cd Vagrant\CentOS7.1
C:\Vagrant\CentOS7.1>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'CentOS7.1'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: CentOS71_default_1431791415011_58624
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method
: private key default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default:
default: Vagrant insecure
key detected
. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated
public key within guest
... default: Removing insecure
key from the guest
if its present
... default: Key inserted
! Disconnecting and reconnecting using
new SSH
key... ==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
default: /vagrant => C:/Vagrant/CentOS7.1
仮想環境の終了
C:\>cd Vagrant\CentOS7.1
C:\Vagrant\CentOS7.1>vagrant halt
==> default: Attempting graceful shutdown of VM...
仮想環境における設定の反映
C:\>cd Vagrant\CentOS7.1
C:\Vagrant\CentOS7.1>vagrant reload
==> default: Attempting graceful shutdown of VM...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method
: private key default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
default: /vagrant => C:/Vagrant/CentOS7.1
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: to force provisioning. Provisioners marked to run always will still run.
最終更新:2015年05月17日 17:05