这是我升级到 OS X 10.10(Beta)后第一次运行 vagrant,所以它可能就在那里连接。 --version
是 1.4.3,VirtualBox 是 4.3.0,当使用 VAGRANT_LOG=DEBUG
运行时,我得到了底部的困惑。 Vagrantfile
再简单不过了:
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu-14.04"
end
我被困在这里,输出如下:
[default] -- 22 => 2222 (adapter 1)
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "modifyvm", "76ef7d0b-2b19-4b12-9a1a-b5e0654a143f", "--natpf1", "ssh,tcp,127.0.0.1,2222,,22"]
DEBUG subprocess: Command not in installer, not touching env vars.
DEBUG subprocess: Selecting on IO
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
INFO warden: Calling IN action: #<Vagrant::Action::Builtin::SetHostname:0x00000100a219c0>
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::SaneDefaults:0x00000100a21998>
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "storagectl", "76ef7d0b-2b19-4b12-9a1a-b5e0654a143f", "--name", "SATA Controller", "--hostiocache", "on"]
DEBUG subprocess: Command not in installer, not touching env vars.
DEBUG subprocess: Selecting on IO
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "modifyvm", "76ef7d0b-2b19-4b12-9a1a-b5e0654a143f", "--rtcuseutc", "on"]
DEBUG subprocess: Command not in installer, not touching env vars.
DEBUG subprocess: Selecting on IO
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
INFO sanedefaults: Automatically figuring out whether to enable/disable NAT DNS proxy...
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "modifyvm", "76ef7d0b-2b19-4b12-9a1a-b5e0654a143f", "--natdnsproxy1", "on"]
DEBUG subprocess: Command not in installer, not touching env vars.
DEBUG subprocess: Selecting on IO
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::Customize:0x00000100a53dd0>
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::Boot:0x00000100a53da8>
INFO interface: info: Booting VM...
[default] Booting VM...
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "startvm", "76ef7d0b-2b19-4b12-9a1a-b5e0654a143f", "--type", "headless"]
DEBUG subprocess: Command not in installer, not touching env vars.
DEBUG subprocess: Selecting on IO
这里发生了什么?版本兼容性问题还是其他问题?
最佳答案
在没有回复后,我在 Twitter 上发布了此消息。我的一位 friend 指出 VirtualBox 版本可能是原因。
VirtualBox 中的更新没有更新,所以我:
- 二手AppCleaner删除旧版本
- 已下载最新的 VirtualBox
- 重新运行
vagrant up
,没有错误
供其他希望 VirtualBox 按预期更新的人引用。
关于macos - vagrant up 在启动虚拟机时挂起,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25859377/