Vagrant Environment Construction cannot read local box

Source: Internet
Author: User
Tags ranges rar
Last Login:sat Jan 14:35:58 on consoleduncandemini:~ duncan$ CD hhexo.rar homestead/duncandemini:~ duncan$ CD Homes Tead/duncandemini:homestead duncan$ vagrant upbringing machine ' default ' up with ' VirtualBox ' provider...==> default: Box ' Laravel/homestead ' could not being found.  Attempting to find and install ... default:box provider:virtualbox default:box Version: >= 0.4.0==> Default: Loading metadata for box ' Laravel/homestead ' default:url:https://atlas.hashicorp.com/laravel/homestead==> default : Adding box ' Laravel/homestead ' (v0.4.0) for Provider:virtualbox default:downloading:https://atlas.hashicorp.com/la ravel/boxes/homestead/versions/0.4.0/providers/virtualbox.box==> default:box download is resuming from prior Download Progressan error occurred while downloading the remote file. The errormessage, if any, is reproduced below. Fix this error and tryagain. HTTP server doesn ' t seem to support byte ranges. Cannot resume.duncandeMini:Homestead duncan$ vagrant Box Listlaravel/homestead (VirtualBox, 0) Duncandemini:homestead duncan$  

I have wget box back and Vagrant box add is complete in the local.
Then, according to Laravel's documentation, the homestead is configured, and vagrant up under Homestead is the problem:
Unable to read box already added.

Then I looked up and said to Vagrant Init first, then appeared:

Duncandemini:homestead duncan$ vagrant upbringing machine ' default ' up with ' VirtualBox ' provider...==> Default:impor Ting base box ' laravel/homestead ' ...==> default:matching MAC address for NAT networking...==> default:setting the Name of the vm:homestead_default_1453532161980_94944==> default:clearing any previously set network interfaces...==& Gt 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 could take a few minutes ... default:ssh address:127.0.0.1:2222 default:ssh username:vagrant default:ssh A Uth method:private key default:Warning:Connection timeout. Retrying default:default:Vagrant insecure key detected.    Vagrant would 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 in serted! Disconnecting and reconnecting using new SSH key...==> Default:machine booted and ready!==> default:checking for G Uest Additions in vm...==> default:mounting gkfx folders ... default:/vagrant =/users/duncan/homesteadduncan  Demini:homestead duncan$

Analyzed, compared to the vagrantfile, found that no init was included before. Homestead/homestead.yaml Related configuration

And after Init looks like the wood has the description to this configuration? But the local box is no longer on the network to get

I guess is here to configure the problem, try to put two configurations together, and then go to vagrant up, but has been wrong, really do not know how to set up, so to be a hand to the party, consult with Vagrant do development environment of the great gods.

How can i solve this problem?

This problem occurs on both Windows and OSX.

Attach the contents of the Homestead.yaml:

ip: "192.168.10.10"memory: 2048cpus: 1provider: virtualboxauthorize: ~/.ssh/id_rsa.pubkeys:    - ~/.ssh/id_rsafolders:    - map: ~/Code      to: /home/wwwsites:    - map: homestead.app      to: /home/vagrant/www/publicdatabases:    - homestead# blackfire:#     - id: foo#       token: bar#       client-id: foo#       client-token: bar# ports:#     - send: 50000#       to: 5000#     - send: 7777#       to: 777#       protocol: udp

Reply content:

Last Login:sat Jan 14:35:58 on consoleduncandemini:~ duncan$ CD hhexo.rar homestead/duncandemini:~ duncan$ CD Homes Tead/duncandemini:homestead duncan$ vagrant upbringing machine ' default ' up with ' VirtualBox ' provider...==> default: Box ' Laravel/homestead ' could not being found.  Attempting to find and install ... default:box provider:virtualbox default:box Version: >= 0.4.0==> Default: Loading metadata for box ' Laravel/homestead ' default:url:https://atlas.hashicorp.com/laravel/homestead==> default : Adding box ' Laravel/homestead ' (v0.4.0) for Provider:virtualbox default:downloading:https://atlas.hashicorp.com/la ravel/boxes/homestead/versions/0.4.0/providers/virtualbox.box==> default:box download is resuming from prior Download Progressan error occurred while downloading the remote file. The errormessage, if any, is reproduced below. Fix this error and tryagain. HTTP server doesn ' t seem to support byte ranges. Cannot resume.duncandeMini:Homestead duncan$ vagrant Box Listlaravel/homestead (VirtualBox, 0) Duncandemini:homestead duncan$  

I have wget box back and Vagrant box add is complete in the local.
Then, according to Laravel's documentation, the homestead is configured, and vagrant up under Homestead is the problem:
Unable to read box already added.

Then I looked up and said to Vagrant Init first, then appeared:

Duncandemini:homestead duncan$ vagrant upbringing machine ' default ' up with ' VirtualBox ' provider...==> Default:impor Ting base box ' laravel/homestead ' ...==> default:matching MAC address for NAT networking...==> default:setting the Name of the vm:homestead_default_1453532161980_94944==> default:clearing any previously set network interfaces...==& Gt 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 could take a few minutes ... default:ssh address:127.0.0.1:2222 default:ssh username:vagrant default:ssh A Uth method:private key default:Warning:Connection timeout. Retrying default:default:Vagrant insecure key detected.    Vagrant would 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 in serted! Disconnecting and reconnecting using new SSH key...==> Default:machine booted and ready!==> default:checking for G Uest Additions in vm...==> default:mounting gkfx folders ... default:/vagrant =/users/duncan/homesteadduncan  Demini:homestead duncan$

Analyzed, compared to the vagrantfile, found that no init was included before. Homestead/homestead.yaml Related configuration

And after Init looks like the wood has the description to this configuration? But the local box is no longer on the network to get

I guess is here to configure the problem, try to put two configurations together, and then go to vagrant up, but has been wrong, really do not know how to set up, so to be a hand to the party, consult with Vagrant do development environment of the great gods.

How can i solve this problem?

This problem occurs on both Windows and OSX.

Attach the contents of the Homestead.yaml:

ip: "192.168.10.10"memory: 2048cpus: 1provider: virtualboxauthorize: ~/.ssh/id_rsa.pubkeys:    - ~/.ssh/id_rsafolders:    - map: ~/Code      to: /home/wwwsites:    - map: homestead.app      to: /home/vagrant/www/publicdatabases:    - homestead# blackfire:#     - id: foo#       token: bar#       client-id: foo#       client-token: bar# ports:#     - send: 50000#       to: 5000#     - send: 7777#       to: 777#       protocol: udp

Got it. This problem is due to the homestead update to the latest version of 0.4.0.

Reason:

Download back with wget virtualbox.box although Yes 0.4 , but it appears in the download back to the vagrant box list 0 homestead default configuration will be an error.

Method:

In clone the back Homestead\scripts\ folder, open the homestead.rb file

Put

config.vm.box_version = settings["version"] ||= ">= 0.4.0"

Switch

config.vm.box_version = settings["version"] ||= ">= 0"

I think you've opened it normally. I wonder if I could get an error message PO

I also encountered this problem, engaged for two days, see you here, just solve, really thank you, thank you for sharing!

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.