Skip to content

Instantly share code, notes, and snippets.

@double-p
Created August 24, 2018 05:27
Show Gist options
  • Save double-p/fbb5462146304ba3b4e139067b026c4b to your computer and use it in GitHub Desktop.
Save double-p/fbb5462146304ba3b4e139067b026c4b to your computer and use it in GitHub Desktop.
diskfile = File.realpath( "." ).to_s + "/data.vdi"
config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--memory", 512]
v.gui = true;
#v.customize ["createhd", "--filename", diskfile, "--format", "VDI", "--size", 5120 ]
v.customize ["storageattach", :id, "--storagectl", "IDE", "--port", 1, "--device", 1, "--type", "hdd", "--medium", diskfile]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment