不能ssh到vagrant + virtualbox(来自vmware)

时间:2017-03-30 06:05:00

标签: ssh vagrant virtualbox vmware

我现在的设置是多余的,但它仅用于测试目的。 我正在我的笔记本电脑上运行VMware fusion 8.5.5。在我的VMware内部,我安装了Centos 7:

$ uname -r
3.10.0-514.10.2.el7.x86_64

之后我安装了流浪汉

vagrant --version
Vagrant 1.9.3

还有virtualbox version 5.1.18 r114002

但是当我开始一个流浪汉盒子时,我无法ssh。决不。盒子的操作系统并不重要:

$ vagrant init bento/centos-7.2
$ vagrant up

当我尝试检查虚拟框GUI时,我遇到了这个错误,但在我的情况下,我认为这不是问题。我只是试着ssh。

==> default: Importing base box 'bento/centos-7.2'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'bento/centos-7.2' is up to date...
==> default: Setting the name of the VM: test_default_1490853341673_52433
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (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
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.

VT-x/AMD-V hardware acceleration is not available on your system. 

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,这是您正在使用的虚拟机版本中的一个错误。尝试下载virtualbox 5.1.4