Skip to content

Commit e877df4

Browse files
committed
Merge pull request rails#66 from jasl/parallels-support
Add Parallels Desktop support
2 parents 83e36f5 + 9055254 commit e877df4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This project automates the setup of a development environment for working on Rub
88

99
## Requirements
1010

11-
* [VirtualBox](https://www.virtualbox.org) or [VMWare Fusion](http://www.vmware.com/products/fusion)
11+
* [VirtualBox](https://www.virtualbox.org) or [VMWare Fusion](http://www.vmware.com/products/fusion) or [Parallels Desktop](http://www.parallels.com/products/desktop/)(need Vagrant 1.5+, see [vagrant-parallels](http://parallels.github.io/vagrant-parallels/docs/installation/index.html))
1212

1313
* [Vagrant 1.1+](http://vagrantup.com) (not a Ruby gem)
1414

@@ -24,6 +24,8 @@ That's it.
2424

2525
(If you want to use VMWare Fusion instead of VirtualBox, write `vagrant up --provider=vmware_fusion` instead of `vagrant up` when building the VM for the first time. After that, Vagrant will remember your provider choice, and you won't need to include the `provider` flag again.)
2626

27+
(If you want to use Parallels Desktop instead of VirtualBox, you need Vagrant 1.5+, and write `vagrant up --provider=parallels` instead of `vagrant up` when building the VM for the first time. After that, Vagrant will remember your provider choice, and you won't need to include the `provider` flag again.)
28+
2729
If the base box is not present that command fetches it first. The setup itself takes about 3 minutes in my MacBook Air. After the installation has finished, you can access the virtual machine with
2830

2931
host $ vagrant ssh

Vagrantfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ Vagrant.configure('2') do |config|
1010
override.vm.box_url = 'http://files.vagrantup.com/precise64_vmware.box'
1111
end
1212

13+
config.vm.provider 'parallels' do |v, override|
14+
override.vm.box = 'parallels/ubuntu-12.04'
15+
override.vm.box_url = 'https://vagrantcloud.com/parallels/ubuntu-12.04'
16+
17+
# Can be running at background, see https://github.com/Parallels/vagrant-parallels/issues/39
18+
v.customize ['set', :id, '--on-window-close', 'keep-running']
19+
end
20+
1321
config.vm.network :forwarded_port, guest: 3000, host: 3000
1422

1523
config.vm.provision :puppet do |puppet|

0 commit comments

Comments
 (0)