windowsで、vagrant環境作成 vagrant
windowsで、vagrant環境作成
★成功パターン
C:¥vagrant_home¥centos72_machine>cd ../
C:¥vagrant_home>vagrant box add centos72 C:¥vagrant_home¥vagrant-centos-7.2.box
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box centos72 (v0) for provider:
box: Unpacking necessary files from: file:///C:/vagrant_home/vagrant-centos-7.2.box
box: Progress: 100% (Rate: 120M/s Estimated time remaining: --:--:--)
The box you re attempting to add already exists. Remove it before
adding it again or add it with the `--force` flag.
Name: centos72
Provider: virtualbox
Version: 0
C:¥vagrant_home>vagrant box list
centos (virtualbox 0)
centos72 (virtualbox 0)
C:¥vagrant_home>cd centos72_machine
C:¥vagrant_home¥centos72_machine>vagrant init centos72
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
C:¥vagrant_home¥centos72_machine>
C:¥vagrant_home¥centos72_machine>
C:¥vagrant_home¥centos72_machine>vagrant up
Bringing machine default up with virtualbox provider...
==> default: Importing base box centos72 ...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: centos72_machine_default_1488459021404_81388
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (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: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. 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 it s present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
default: The guest additions on this VM do not match the installed version of
default: VirtualBox! In most cases this is fine but in rare cases it can
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors please make sure the guest additions within the
default: virtual machine match the version of VirtualBox you have installed on
default: your host and reload your VM.
default:
default: Guest Additions Version: 4.3.30
default: VirtualBox Version: 5.1
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => C:/vagrant_home/centos72_machine
C:¥vagrant_home¥centos72_machine>
C:¥vagrant_home¥centos72_machine>
C:¥vagrant_home¥centos72_machine>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: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (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: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
default: The guest additions on this VM do not match the installed version of
default: VirtualBox! In most cases this is fine but in rare cases it can
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors please make sure the guest additions within the
default: virtual machine match the version of VirtualBox you have installed on
default: your host and reload your VM.
default:
default: Guest Additions Version: 4.3.30
default: VirtualBox Version: 5.1
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => C:/vagrant_home/centos72_machine
default: /home/vagrant => C:/vagrant_home/data
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
C:¥vagrant_home¥centos72_machine>