简体   繁体   中英

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

While it's not Parallels (which you may have already paid for), there is a plugin for using VMWare Fusion:

http://www.vagrantup.com/vmware

The plugin is not free, so you'll need to buy licenses for both the plugin and 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.

Finally there is an official Vagrant Provider from and for Parallels! Unfortunately it's not mentioned on www.vagrantup.com .

See Paralles' Vagrant Documentation and the Parallels GitHub page of the Vagrant provider project. 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." (taken from the readme on GitHub )

Thank you, AgentK , for pointing out that that "Forwarded ports" are available as of 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 .

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.

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:

You can use Parallels with Vagrant. Here's a line by line set of instructions to do so (assumes you have Parallels and Vagrant installed).

  1. $ vagrant plugin install vagrant-parallels
  2. $ mkdir some-project/ && cd some-project
  3. $ vagrant init parallels/ubuntu-14.04
  4. $ vagrant up --provider parallels

Note, you only have to install vagrant-parallels once. Also note, you only have to pass in --provider parallels the first time you up , after that it will automatically use the parallels provider.

在google中发现了这个帖子以及官方的Parallels-Vagrant集成: https//github.com/Parallels/vagrant-parallels

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM