在 OS X 10.8.4 上使用 vagrant 1.2.7 和 virtualbox 4.2.16
sudo vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Running 'pre-boot' VM customizations...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Mounting shared folders...
[default] -- /vagrant
vagrant ssh
VM must be created before running this command. Run `vagrant up` first.
但是,如上所示,它已启动并可以使用。
我启用了“gui”模式,vb 正在运行但无法从主机 ssh。
我注意到 vb 适配器是 'NAT'ing'。我应该切换到“桥”吗?此外,运行时:
#VBoxManage 列出正在运行的vms
我什么也没得到,就像没有运行 vbs,但它是。
非常感谢任何帮助!
谢谢