Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set vagrant virtualbox video memory

I have googled this and can't find what command allows me to allocate the video memory for when using vagrant and virtualbox. Can someone tell me what it is? This is what I have for my virtual box configuration so far:

config.vm.provider "virtualbox" do |v|   v.memory = 2048   v.cpus = 1   v.name = "Awesome Box" end 
like image 811
user5013 Avatar asked Jun 15 '14 16:06

user5013


People also ask

How do I increase my Vagrant memory?

You can easily increase your VM's RAM by modifying the memory property of config. vm. provider section in your vagrant file. This allocates about 4GB of RAM to your VM.

How do you increase memory in Vagrant box?

Increase Memory and CPU on Vagrant machine from commandlineDefine the RAM size and CPU count like below. As per the above configuration, I have defined 2 GB RAM and 2 CPU core to my Vagrant machine. Make sure you have added these lines before the last "end" line. Press ESC key, and type :wq to save the file and exit.


1 Answers

You'll need to use the following config:

config.vm.provider "virtualbox" do |v|    v.customize ["modifyvm", :id, "--vram", "<vramsize in MB>"] end 

How I found this? I looked at VirtualBox docs but haven't found anything about 'Video' or 'Memory' that seem related to video memory. So I ran VBoxManage showvminfo <vm name> command and looked for the line with the amount of video memory I have set in Virtualbox GUI (12MB).

And then I saw:

VRAM size:       12MB 

So now back to the documentation looking for 'vram' string.

like image 60
m1keil Avatar answered Oct 30 '22 00:10

m1keil