[英]Switch Vagrant to use Parallels instead of VirtualBox
是不是可以在Vagrant中使用Parallels而不是(疯狂的)VirtualBox?
Maybe this will help you (fresh and new) 也许这会对你有帮助(新鲜的和新的)
https://github.com/yshahin/vagrant-parallels https://github.com/yshahin/vagrant-parallels
While it's not Parallels (which you may have already paid for), there is a plugin for using VMWare Fusion: 虽然它不是Parallels(您可能已经付费),但有一个使用VMWare Fusion的插件:
http://www.vagrantup.com/vmware http://www.vagrantup.com/vmware
The plugin is not free, so you'll need to buy licenses for both the plugin and Fusion. 该插件不是免费的,因此您需要购买插件和Fusion的许可证。
I get a kernel panic in my VM a few times a week. 我每周几次在我的虚拟机中遇到内核恐慌。 According to Mitchell, VirtualBox has had kernel panic issues on Macs for years that have never been well resolved, and swapping to Fusion is the best alternative.
根据Mitchell的说法,VirtualBox多年来一直在Mac上遇到内核恐慌问题,这些问题从来没有得到很好的解决,并且交换到Fusion是最好的选择。
Finally there is an official Vagrant Provider from and for Parallels! 最后,Parallels有一个官方的Vagrant提供商! Unfortunately it's not mentioned on www.vagrantup.com .
不幸的是, www.vagrantup.com上没有提到它 。
See Paralles' Vagrant Documentation and the Parallels GitHub page of the Vagrant provider project. 请参阅Paralles的Vagrant文档和Vagrant提供程序项目的Parallels GitHub页面 。 For further questions about the provider there is a dedicated official forum .
有关提供者的进一步问题,有一个专门的官方论坛 。
As of now there is just one limitation: "The Parallels provider supports all basic Vagrant features, except the next: "Forwarded ports" configuration is not available yet." 截至目前,只有一个限制:“Parallels提供商支持所有基本的Vagrant功能,除了下一个:”转发端口“配置尚不可用。” (taken from the readme on GitHub ) (摘自GitHub上的自述文件 )
Thank you, AgentK , for pointing out that that "Forwarded ports" are available as of Parallels 10 for Mac. 感谢AgentK ,指出从Parallels 10 for Mac开始就可以使用“转发端口”。
There was a large commit a few month ago, that merged the machine-abstraction branch: 几个月前有一个大型提交,它合并了机器抽象分支:
which was even discussed a bit on Hacker News . 甚至在Hacker News上讨论了一下 。
This branch brings in the "machine abstraction" code.
这个分支引入了“机器抽象”代码。 This is a major milestone in the development of Vagrant as it abstracts all of the VirtualBox-specific code out into a plugin.
这是Vagrant开发的一个重要里程碑,因为它将所有特定于VirtualBox的代码抽象为插件。
The gotcha: 问题:
White it is technically possible now to write plugins for other providers, there is still major work to be done to make this feasible.
白色技术上现在可以为其他提供商编写插件,仍然需要做大量工作才能实现这一点。
And as of now, the only provider in master is virtualbox: 截至目前, master中唯一的提供者是virtualbox:
You can use Parallels with Vagrant. 您可以将Parallels与Vagrant一起使用。 Here's a line by line set of instructions to do so (assumes you have Parallels and Vagrant installed).
这是一行一行的指令(假设您安装了Parallels和Vagrant)。
$ vagrant plugin install vagrant-parallels
$ mkdir some-project/ && cd some-project
$ vagrant init parallels/ubuntu-14.04
$ vagrant up --provider parallels
Note, you only have to install vagrant-parallels
once. 注意,你只需要安装一次
vagrant-parallels
。 Also note, you only have to pass in --provider parallels
the first time you up
, after that it will automatically use the parallels provider. 另请注意,您只需在第一次
up
时传入--provider parallels
,之后它将自动使用parallels提供程序。
在google中发现了这个帖子以及官方的Parallels-Vagrant集成: https : //github.com/Parallels/vagrant-parallels
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.