首页 > vagrant配置box文件之后报错。

vagrant配置box文件之后报错。

完全的菜鸟,一边搜索一边弄,配置别人发来的package.box得到vagrantfile之后,输入vagrant up 就开始报错

vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> 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: 22 => 2222 (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
default: Warning: Connection timeout. Retrying...

==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...

default: The guest additions on this VM do not match the installed version of
default: VirtualBox! In most cases this is fine, but in rare cases it can
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors, please make sure the guest additions within the
default: virtual machine match the version of VirtualBox you have installed on
default: your host and reload your VM.
default: 
default: Guest Additions Version: 4.3.10
default: VirtualBox Version: 5.0

==> default: Mounting shared folders...

default: /vagrant => /Users/miffy

==> default: Machine already provisioned. Run vagrant provision or use the --provision
==> default: flag to force provisioning. Provisioners marked to run always will still run.


打开虚拟机之后是这个画面。。。


这是启动输出的正常日志,你管它叫报错么。。
非要说报错也就只说了你vm里的guest addition和virtualbox版本不符,可能会导致共享文件出问题
建议楼主在遇到这种问题的时候认真读一下输出再问

【热门文章】
【热门文章】