Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vagrant 前游走性运动错误_Vagrant_Vagrantfile - Fatal编程技术网

Vagrant 前游走性运动错误

Vagrant 前游走性运动错误,vagrant,vagrantfile,Vagrant,Vagrantfile,我正在翻阅支持流浪者的书,第一个练习有以下问题 我正在使用: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 15.04 Release: 15.04 Codename: vivid 我已经安装了Oracle VirtualBox 64位版本和Vagrant 64位版本 流浪汉档案: Vagrant.configure(2) do |config| config.vm.box

我正在翻阅支持流浪者的书,第一个练习有以下问题

我正在使用:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 15.04
Release:    15.04
Codename:   vivid
我已经安装了Oracle VirtualBox 64位版本和Vagrant 64位版本

流浪汉档案:

Vagrant.configure(2) do |config|
  config.vm.box = "apache-v1.0.0"
  config.vm.box_url = "http://boxes.gajdaw.pl/apache/apache-v1.0.0.box"
  config.vm.box_download_checksum_type = "sha256"
  config.vm.box_download_checksum = "091eb90af1bce5dd1dc936ed9db9ef65631e7428c29e60b395025a2d21cdc463"
  config.vm.network :forwarded_port, guest: 80, host: 8800, host_ip: "127.0.0.1"
  config.vm.post_up_message = "The application is available at http://127.0.0.1:8800"
end
在执行第一个练习的步骤时

我得到以下错误:

pro-vagrant/songs-app-angularjs$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> 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: 80 => 8800 (adapter 1)
    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: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.

If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.

If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.

If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.
非常感谢您的帮助

问候


Gurdipe

我会检查两件事。首先从config.vm.network中删除主机ip:forwarded_端口,guest:80,host:8800,host_ip:127.0.0.1;第二个签入虚拟框如果您可以启动机器并与vagrant用户连接我从config.vm.network:forwarded_port中删除了主机ip:127.0.0.1,guest:80,主机:8800,主机ip:127.0.0.1,并检查我是否可以使用user:vagrant和密码:vagrant登录虚拟框,但仍然存在相同的问题。