Networking Vagrant-默认值:SSH身份验证方法:私钥超时

Networking Vagrant-默认值:SSH身份验证方法:私钥超时,networking,ssh,windows-7,vagrant,vagrantfile,Networking,Ssh,Windows 7,Vagrant,Vagrantfile,实时解决此问题: 我正试图“游荡起来”,在我达到某一点之前,一切似乎都很好: ==> default: The cookbook path 'C:/home/webs/cookbooks' doesn't exist. Ignoring... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on confi

实时解决此问题:

我正试图“游荡起来”,在我达到某一点之前,一切似乎都很好:

==> default: The cookbook path 'C:/home/webs/cookbooks' doesn't exist. Ignoring...
==> 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: 80 (guest) => 8081 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> 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
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.
配置: 插件: 使用: 到目前为止,我尝试的是:

  • 检查是否启用了虚拟化
  • 删除以下文件夹:[.vagrant.d、.VirtualBox][在此处输入图像描述]并再次安装所有插件
  • 在gui设置为true的情况下运行,我在其中没有看到任何.ssh文件夹
  • 关闭防火墙

  • 我还有其他版本相同的电脑,运行正常。所以我可以比较。但是我没有更多的线索如何从这里继续…

    找到了一个解决方案:一个名为:Web Companion Lavasoft的程序阻止了ssh通信的创建,我删除了它,它成功了。

    找到了一个解决方案:一个名为:Web Companion Lavasoft的程序阻止了ssh通信的创建,我删除了它,它工作了。

    奇怪的是,你的虚拟机中没有
    .ssh
    文件夹-你应该有这个文件夹和一个授权密钥文件。有时权限会出错,但vagrant应该推送文件。奇怪的是,你的虚拟机中没有
    .ssh
    文件夹-你应该有该文件夹和授权密钥文件。有时权限有错误,但vagrant应该推送文件
    Vagrant 1.8.7
    
    vagrant-berkshelf (5.1.1)
    vagrant-hostmanager (1.8.5)
    vagrant-share (1.1.6, system)
    vagrant-triggers (0.5.3)
    vagrant-vsphere (1.12.0)
    
    Oracle Virtual Box v5.1.8
    Chef v1.1.16
    Windows-7