From 62f88217bc7c0048a125fc01c627986419b9a818 Mon Sep 17 00:00:00 2001 From: Oliver Bock Date: Wed, 29 Mar 2017 14:16:11 +0200 Subject: [PATCH] [#1829][android] Configure VM for Android Studio --- android/Vagrantfile | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/android/Vagrantfile b/android/Vagrantfile index c03a2f92eb..66d8e6b9f5 100644 --- a/android/Vagrantfile +++ b/android/Vagrantfile @@ -43,13 +43,29 @@ Vagrant.configure("2") do |config| # backing providers for Vagrant. These expose provider-specific options. # Example for VirtualBox: # - # config.vm.provider "virtualbox" do |vb| - # # Display the VirtualBox GUI when booting the machine - # vb.gui = true - # - # # Customize the amount of memory on the VM: - # vb.memory = "1024" - # end + config.vm.provider "virtualbox" do |vb| + # Set VM name + vb.name = "BOINC-Android-Development" + + # Display the VirtualBox GUI when booting the machine + vb.gui = true + + # Customize the number of CPU cores on the VM: + vb.cpus = 2 + + # Customize the amount of memory on the VM: + vb.memory = "2048" + + # Increase video memory to 128 MB + vb.customize ["modifyvm", :id, "--vram", "128"] + + # Enable 3D acceleration + vb.customize ["modifyvm", :id, "--accelerate3d", "on"] + + # Enable USB + vb.customize ["modifyvm", :id, "--usb", "on"] + vb.customize ["modifyvm", :id, "--usbxhci", "on"] + end # # View the documentation for the provider you are using for more # information on available options.