Howto Customize VM Memory

44 views
Skip to first unread message

Timothy Washington

unread,
Feb 7, 2016, 8:53:23 PM2/7/16
to otto...@googlegroups.com
Hi, 

Is there a way to control (ie increase) the amount of memory otto allots to the VM? If there's no idiomatic way, I'd just tweak the generated Vagrantfile(s) I found in my project dir.

$ .otto//compiled/app/dev/Vagrantfile                                                                                                                                                                                                                                                                         
$ .otto//compiled/app/foundation-layers/0-consul/Vagrantfile                                                                                                                                                                                                                                                  

But I gather those will be removed / changed by otto during the compile / dev cycle. 

There are some examples here. But I don't see any direction there.

I also see a “$OTTO_ROOT/images/app-go-dev/template.json” that has a “builders” section.

  "builders": [ 
    { 
      "type": "virtualbox-iso", 
      "boot_command": [ 
        ... 
      ], 
      ... 
      "ssh_wait_timeout": "10000s", 
      "shutdown_command": "echo 'shutdown -P now' > /tmp/shutdown.sh; echo 'vagrant'|sudo -S sh '/tmp/shutdown.sh'", 
      "vboxmanage": [ 
        [ "modifyvm", "{{.Name}}", "--memory", "512" ], 
        [ "modifyvm", "{{.Name}}", "--cpus", "1" ] 
      ] 
    }, 

The "template" briefly discussed in the compile and customization > template section. But neither of those have all the options we can put into that file. Nor where we would put our own template.son file, if that's even meant to be fiddled with. 


Thanks
Tim

Reply all
Reply to author
Forward
0 new messages