Created
September 7, 2014 00:02
-
-
Save Gurpartap/a16141843547ab6a17c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.require_version ">= 1.6.3" # parallels/boot2docker recommendation. | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "mitchellh/boot2docker" | |
config.vm.box_version = "1.2.0" | |
config.vm.box_check_update = false | |
# Requires patch to enable setting hostname on TinyCore. | |
# See https://github.com/mitchellh/vagrant/pull/4469 | |
config.vm.hostname = "boot2docker" | |
# boot2docker doesn't support NFS | |
config.nfs.functional = false | |
config.vm.provider "virtualbox" do |vb| | |
# On VirtualBox, we don't have guest additions or a functional vboxsf | |
# in TinyCore Linux, so tell Vagrant that so it can be smarter. | |
vb.check_guest_additions = false | |
vb.functional_vboxsf = false | |
vb.customize ["modifyvm", :id, "--memory", "1024"] | |
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"] | |
end | |
config.vm.provider "parallels" do |p| | |
p.check_guest_tools = false | |
p.functional_psf = false | |
end | |
["vmware_fusion", "vmware_workstation"].each do |vmware| | |
config.vm.provider vmware do |vw| | |
if vw.respond_to?(:functional_hgfs=) | |
vw.functional_hgfs = false | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment