【强迫症】使用Parallels运行Homestead

下载最新的Vagrant:

https://www.vagrantup.com/downloads.html

Homestead切到最新的发布分支:

https://github.com/laravel/homestead/releases

安装Vagrant-Parallels插件:

https://github.com/Parallels/vagrant-parallels

插件有个英文文档:

https://parallels.github.io/vagrant-parallels/docs/usage.html

下面的步骤很重要:

修改Homestead.yaml:

# 把数据库自动备份打开
backup: true 

把旧的虚拟机删除(启动状态下):

vagrant destroy --force

之前虚拟机中的数据库会被自动备份到Homestead文件中的这个位置:


image.png

把virtualbox的盒子删掉:

vagrant box remove laravel/homestead

把虚拟机提供者改掉(Homestead.yaml文件):

provider: parallels

运行安装新的盒子:

vagrant box add laravel/homestead

嫌慢就用迅雷:

https://vagrantcloud.com/laravel/boxes/homestead/versions/7.1.0/providers/parallels.box

迅雷下载好了手动加盒子:

vagrant box add laravel/homestead ~/Downloads/virtualbox.box

去这个位置:

~/.vagrant.d/boxes/laravel-VAGRANTSLASH-homestead

把文件夹名字改成盒子版本号,另外创建一个metadata_url文件,内容是:

https://app.vagrantup.com/laravel/boxes/homestead

最后

vagrant up

启动的过程中可能会有一段黄色的文字提示tools不是最新版:

http://download.parallels.com/desktop/v10/docs/zh_CN/Parallels%20Desktop%20User%27s%20Guide/33306.htm

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容