Vagrant VM无法正常启动

时间:2016-11-02 18:45:50

标签: vagrant virtual-machine vagrantfile

我正试图让我的流浪汉起来,但我遇到了一些麻烦。这是当我做一个流浪汉时发生的事情

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'puphpet/centos65-x64' is up to date...
==> default: A newer version of the box 'puphpet/centos65-x64' is available! You currently
==> default: have version '20161004'. The latest is version '20161102'. Run
==> default: `vagrant box update` to update.
==> 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: 8080 (guest) => 9090 (host) (adapter 1)
    default: 8443 (guest) => 9443 (host) (adapter 1)
    default: 8787 (guest) => 8787 (host) (adapter 1)
    default: 3306 (guest) => 3307 (host) (adapter 1)
    default: 9990 (guest) => 9990 (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.

当我做一个流浪汉ssh-config时,我得到以下

Host default
  HostName 127.0.0.1
  User vagrant
  Port 2222
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  PasswordAuthentication no
  IdentityFile "/Users/ritwickgupta/.vagrant.d/insecure_private_key"
  IdentitiesOnly yes
  LogLevel FATAL

我试着看看我的VM中发生了什么,一切看起来都不错。我可以毫无问题地登录我的虚拟机。有谁在这里发生了什么?

floor division

1 个答案:

答案 0 :(得分:0)

我使用VirtualBox 5.1.x构建了您当前正在使用的盒子版本20161004。这要求用户升级到该版本以使其工作。

我已经使用VirtualBox 5.0.16 20161102重建了这些框。

请删除您的本地邮箱并下载新版本。