Skip to content

Instantly share code, notes, and snippets.

@bbenson29
Last active January 9, 2017 20:24
Show Gist options
  • Save bbenson29/94e107a742d7ca178225b462c75f7c7d to your computer and use it in GitHub Desktop.
Save bbenson29/94e107a742d7ca178225b462c75f7c7d to your computer and use it in GitHub Desktop.
SATA Controller
************************************************
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config1|
config1.vm.define "apt" do |a|
a.vm.box = "geerlingguy/ubuntu1604"
a.vm.hostname = "apt"
a.vm.network "private_network", ip: "192.168.60.8"
disk = './large_disk.vdi'
a.vm.provider "virtualbox" do |vb|
if not File.exist?(disk)
vb.customize ['createhd', '--filename', disk, '--variant', 'Fixed', '--size', 1 * 1024]
end
vb.customize ['storageattach', :id, '--storagectl', 'SATAController', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', disk]
end
end
end
IDE
*****************************************************
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config1|
config1.vm.define "apt" do |a|
a.vm.box = "geerlingguy/ubuntu1604"
a.vm.hostname = "apt"
a.vm.network "private_network", ip: "192.168.60.8"
disk = './large_disk.vdi'
a.vm.provider "virtualbox" do |vb|
if not File.exist?(disk)
vb.customize ['createhd', '--filename', disk, '--variant', 'Fixed', '--size', 1 * 1024]
end
vb.customize [ "storageattach", :id, "--storagectl","IDE Controller", "--port", 1, "--device", 0, "--type", "hdd", "--medium", disk ]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment