vagrant突然启动不了

发布于 2022-09-11 15:17:47 字数 3358 浏览 9 评论 0

之前安装了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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

绅刃 2022-09-18 15:17:47

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文