vagrant突然启动不了

之前安装了vagrant,php相关环境也都搭建好了,可是今天我使用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: Adapter 2: bridged
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...

几天前用的好好的,突然这样了,而且我每次退出都vagrant halt的,而且这个时候发现如果去点开virtualBox,发现又可以正常启动了,如下

$ 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: Adapter 2: bridged
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> 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 reset. Retrying...
    default: Warning: Connection aborted. Retrying...
    default: Warning: Connection reset. 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 o                                                                                                                                   f
    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 t                                                                                                                                   he
    default: virtual machine match the version of VirtualBox you have installed                                                                                                                                    on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 5.1.38
    default: VirtualBox Version: 5.2
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => D:/soft/vagrantbox/www
    default: /var/www/html => D:/soft/vagrantbox/www
==> default: Machine already provisioned. Run `vagrant provision` or use the `--                                                                                                                                   provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run

总不可能每次都双击点开virtualBox吧,到底什么问题,启动不了啊?
相关版本:win10 vagrant2.1.2 virtualBox5.2.18

阅读 4k
1 个回答

错误信息的意思是版本不一致,虚拟机的版本是5.1.38,vitualbox的版本是5.2,是不是这个原因

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题