安装MsysGit
安装Vagrant
使用vagrant
进入Git CMD
输入命令初始化
F:\vm\test>vagrant init ubuntu/trusty64
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.
启动虚拟机
F:\vm\test>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/trusty64' could not be found. Attempting to find and in
stall...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'ubuntu/trusty64'
default: URL: https://atlas.hashicorp.com/ubuntu/trusty64
==> default: Adding box 'ubuntu/trusty64' (v20151021.0.0) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/20151021.0.0/providers/virtualbox.box
default: Progress: 100% (Rate: 465k/s, Estimated time remaining: --:--:--)
==> default: Successfully added box 'ubuntu/trusty64' (v20151021.0.0) for 'virtualbox'!
==> default: Importing base box 'ubuntu/trusty64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/trusty64' is up to date...
==> default: Setting the name of the VM: test_default_1446369912024_55763
==> 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:
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 installedon
default: your host and reload your VM.
default:
default: Guest Additions Version: 4.3.10
default: VirtualBox Version: 5.0
==> default: Mounting shared folders...
default: /vagrant => F:/vm/test
These base boxes live in your %userprofile%/.vagrant.d/boxes folder.
You can list all installed boxes by typing vagrant box list.
You can delete boxes with vagrant box remove box/name
F:\vm\test>vagrant box list
ubuntu/trusty64 (virtualbox, 20151021.0.0)
相关推荐
Chapter 1: Getting Started with Vagrant Chapter 2: Four Web Frameworks in Four Minutes Chapter 3: The States of VM Chapter 4: Default Configuration and Security Settings of the Guest VM Chapter 5: ...
With a growing ecosystem of tools and libraries available, and the flexibility to run on many platforms (web, desktop and mobile), JavaScript is a terrific ...Appendix C Getting started with Vagrant
This book will take you from basic usage and getting started, to provisioning with Shell, Puppet, and Chef. You will see how to use Vagrant in real-life scenarios, so that you can start to use ...
If you’re just getting started with the language (or perhaps youve been using it a while and have learned some bad habits), you’re in luck. Not only will it be ever harder to slip up and make ...
Getting Started with OneOps Understanding the OneOps Architecture OneOps Application Life Cycle OneOps Enterprise Deployment Practical Deployment Scenario Managing Your OneOps Working with Functional ...
Part 1 Getting started Chapter 1 Understanding the challenges of legacy projects Chapter 2 Finding your starting point Part 2 Refactoring to improve the codebase Chapter 3 Preparing to refactor ...