我现在的设置是多余的,但仅用于测试目的。
我正在运行 VMware fusion 8.5.5
在我的笔记本电脑上。在我的 VMware 中,我安装了 Centos 7:
$ uname -r
3.10.0-514.10.2.el7.x86_64
之后我安装了 vagrant
vagrant --version
Vagrant 1.9.3
还有
virtualbox version 5.1.18 r114002
但是当我启动一个 vagrant box 时,我无法 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.
最佳答案
我有同样的问题,这是您使用的虚拟盒版本中的错误。尝试下载 virtualbox 5.1.4
关于ssh - 无法 ssh 到 vagrant + virtualbox(来自 vmware),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43109752/