VirtualBox Vagrant
Vagrant 搭配像 VirtualBox 這樣的虛擬機器系統,用來建立一致的開發環境,而且不會干擾既有系統。
$ vagrant up Bringing machine 'virtualbox' up with 'virtualbox' provider... ==> virtualbox: Box 'ubuntu/trusty64' could not be found. Attempting to find and install... virtualbox: Box Provider: virtualbox virtualbox: Box Version: >= 0 ==> virtualbox: Loading metadata for box 'ubuntu/trusty64' virtualbox: URL: https://atlas.hashicorp.com/ubuntu/trusty64 ==> virtualbox: Adding box 'ubuntu/trusty64' (v20160815.0.0) for provider: virtualbox virtualbox: Downloading: https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/20160815.0.0/providers/virtualbox.box ==> virtualbox: Successfully added box 'ubuntu/trusty64' (v20160815.0.0) for 'virtualbox'! ==> virtualbox: Importing base box 'ubuntu/trusty64'... ==> virtualbox: Matching MAC address for NAT networking... ==> virtualbox: Checking if box 'ubuntu/trusty64' is up to date... ==> virtualbox: Setting the name of the VM: mockup_virtualbox_1471403091728_39019 ==> virtualbox: Clearing any previously set forwarded ports... ==> virtualbox: Clearing any previously set network interfaces... ==> virtualbox: Preparing network interfaces based on configuration... virtualbox: Adapter 1: nat virtualbox: Adapter 2: hostonly virtualbox: Adapter 3: bridged ==> virtualbox: Forwarding ports... virtualbox: 8000 (guest) => 8000 (host) (adapter 1) virtualbox: 22 (guest) => 2222 (host) (adapter 1) ==> virtualbox: Running 'pre-boot' VM customizations... ==> virtualbox: Booting VM...
Stuck Connection Timeout Retrying
Vagrantfile
執行 vagrant up 或 vagrant reload 會讀取 Vagrantfile 內容。