Skip to content

Instantly share code, notes, and snippets.

@jameshilliard
Created November 23, 2013 06:05
Show Gist options
  • Save jameshilliard/7611354 to your computer and use it in GitHub Desktop.
Save jameshilliard/7611354 to your computer and use it in GitHub Desktop.
disk2_path = Dir.pwd() + "/" + "Tomato-Data" + ".vmdk"
#end
vb.customize ["storagectl", :id, "--name", "SATAController", "--controller", "IntelAHCI", "--portcount", "2", "--hostiocache", "on"]
vb.customize ["storageattach", :id, "--storagectl", "SATAController", "--port", "0", "--device", "0", "--nonrotational", "on"]
vb.customize ["createhd", "--filename", disk2_path, "--size", 300*1024, "--format", "vmdk", "--variant", "Standard"]
vb.customize ["storageattach", :id, "--storagectl", "SATAController", "--port", "1", "--device", "0", "--type", "hdd", "--medium", disk2_path]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment