Skip to content

Instantly share code, notes, and snippets.

@yono
Last active August 29, 2015 14:02
Show Gist options
  • Save yono/db87718b5b313fa12856 to your computer and use it in GitHub Desktop.
Save yono/db87718b5b313fa12856 to your computer and use it in GitHub Desktop.
vagrant のデフォルト設定を上書きする

~/.vagrant.d/Vagrantfile を配置すると vagrant のデフォルト設定を変更できる。

メモリ設定がデフォルトだと 512 なんだけど 2048 にしたいとかそういう場合に使う

参考: http://docs.vagrantup.com/v2/vagrantfile/index.html

# -*- 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.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", 2048]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment