Skip to content

Instantly share code, notes, and snippets.

@minyk
Created October 17, 2016 02:29
Show Gist options
  • Save minyk/e486bf7b0e852ee7777547229ef93da3 to your computer and use it in GitHub Desktop.
Save minyk/e486bf7b0e852ee7777547229ef93da3 to your computer and use it in GitHub Desktop.
Vagrant within another machinefolder
machine.vm.provider 'virtualbox' do |v, override|
v.name = machine.vm.hostname
v.cpus = machine_type['cpus'] || 2
v.memory = machine_type['memory'] || 2048
v.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
v.customize ['setproperty', 'machinefolder','/data/vagrant/vmz']
override.vm.network :private_network, ip: machine_type['ip']
end
@minyk
Copy link
Author

minyk commented Oct 17, 2016

v.customize ['setproperty', 'machinefolder','/data/vagrant/vmz']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment