Configuring memory allocation

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Configuring memory allocation

Brian Lalor
I thought there was a Vagrant-native way to set the memory allocated to a VM in 1.1 but can't find it.  Is this still the only way?

Vagrant.configure("2") do |config|
  config.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id, "--memory", "4096"]
  end
end


--
Brian Lalor
[hidden email]


--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.


Reply | Threaded
Open this post in threaded view
|

Re: Configuring memory allocation

Mitchell Hashimoto
Brian,

That is the way (with VirtualBox).

There is no Vagrant-native way because it isn't cross-provider compatible. i.e. What does setting memory mean in AWS? It can't be done. :)

Best,
Mitchell


On Tue, Apr 9, 2013 at 9:39 AM, Brian Lalor <[hidden email]> wrote:
I thought there was a Vagrant-native way to set the memory allocated to a VM in 1.1 but can't find it.  Is this still the only way?

Vagrant.configure("2") do |config|
  config.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id, "--memory", "4096"]
  end
end


--
Brian Lalor
[hidden email]


--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Configuring memory allocation

Brian Lalor
On Apr 9, 2013, at 5:43 PM, Mitchell Hashimoto <[hidden email]> wrote:

That is the way (with VirtualBox).

There is no Vagrant-native way because it isn't cross-provider compatible. i.e. What does setting memory mean in AWS? It can't be done. :)

Thanks, Mitchell.  Seems like it'd be a handy shortcut to have in addition to the customize command for certain providers, but I understand that it isn't globally available.

--
Brian Lalor
[hidden email]


--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.