Error during vagrant up

162 views
Skip to first unread message

João Vitor Brasil

unread,
Jun 23, 2017, 12:46:34 PM6/23/17
to Vagrant
Hello, everyone!

I'm trying to deploy BOSH-LITE to use Cloud Foundry. I'm new in this.

To deploy, i'm using a VM with 4GB RAM, Ubuntu 16.04 32 bits.

So, i've a VM on VM. I can't deploy this on my own machine.

During the instalation, i don't have problems until i use the command 
vagrant up

The error is:

A customization command failed:

["modifyvm", :id, "--memory", 6144]

The following error was experienced:

#<Vagrant::Errors::VBoxManageError: There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["modifyvm", "55bb18ac-0e0f-492d-be72-a0a3cce59119", "--memory", "6144"]

Stderr: VBoxManage: error: Invalid RAM size: 6144 MB (must be in range [4, 3584] MB)
VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component SessionMachine, interface IMachine, callee nsISupports
VBoxManage: error: Context: "COMSETTER(MemorySize)(ValueUnion.u32)" at line 599 of file VBoxManageModifyVM.cpp
>

Please fix this customization and try again.



I tried edit the VagrantFile and change the memory size, but i can't.

If anyone can help me...

Thanks!


Alvaro Miranda Aguilera

unread,
Jun 26, 2017, 3:51:46 AM6/26/17
to vagra...@googlegroups.com

On Fri, Jun 23, 2017 at 6:46 PM, João Vitor Brasil <joao.sa...@acad.pucrs.br> wrote:
6144 MB (must be in range [4, 3584] MB)

The error is clear.


You are trying to give 6111 MB to the VM but the host os MAX have 3584 available.

So adjust the size and try with 1024 and then go upto 3000, so the OS have some memory available.


Alvaro.



--
Alvaro

João Vitor Brasil

unread,
Jun 26, 2017, 8:52:50 AM6/26/17
to Vagrant
Hello, Alvaro.

Thanks for awnser!
To adjust the size where can i go? In the VagrantFiles?

Thanks

Alvaro Miranda Aguilera

unread,
Jun 26, 2017, 9:32:34 AM6/26/17
to vagra...@googlegroups.com
Hello

Share the Vagrantfile you are using.

In that file will be this:
["modifyvm", :id, "--memory", 6144]

Literally, or similar using some variables.

So need to reduce that 6144

Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
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 vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/06874126-d834-4e87-808e-683dbfafc3d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

João Vitor Brasil

unread,
Jun 26, 2017, 9:37:15 AM6/26/17
to Vagrant
Hello, Alvaro

The Vagrantfile contais:

Vagrant.configure('2') do |config|
  config.vm.box = 'cloudfoundry/bosh-lite'

  config.vm.provider :virtualbox do |v, override|
    override.vm.box_version = '9000.137.0' # ci:replace
    # To use a different IP address for the bosh-lite director, uncomment this line:
    # override.vm.network :private_network, ip: '192.168.59.4', id: :local
  end

  config.vm.provider :aws do |v, override|
    override.vm.box_version = '9000.137.0' # ci:replace
    # To turn off public IP echoing, uncomment this line:
    # override.vm.provision :shell, id: "public_ip", run: "always", inline: "/bin/true"

    # To turn off CF port forwarding, uncomment this line:
    # override.vm.provision :shell, id: "port_forwarding", run: "always", inline: "/bin/true"

    # Following minimal config is for Vagrant 1.7 since it loads this file before downloading the box.
    # (Must not fail due to missing ENV variables because this file is loaded for all providers)
    v.access_key_id = ENV['BOSH_AWS_ACCESS_KEY_ID'] || ''
    v.secret_access_key = ENV['BOSH_AWS_SECRET_ACCESS_KEY'] || ''
    v.ami = ''
  end

  config.vm.provider :vmware_fusion do |v, override|
    override.vm.box = 'cloudfoundry/no-support-for-bosh-lite-on-fusion'
    #we no longer build current boxes for vmware_fusion
    #ensure that this fails. otherwise the user gets an old box
  end

  config.vm.provider :vmware_workstation do |v, override|
    override.vm.box = 'cloudfoundry/no-support-for-bosh-lite-on-workstation'
    #we no longer build current boxes for vmware_workstation
    #ensure that this fails. otherwise the user gets an old box
  end
end

I had tried to add some line similar to the one you put, but it still did not work.

Thanks

Alvaro Miranda Aguilera

unread,
Jun 26, 2017, 10:12:01 AM6/26/17
to vagra...@googlegroups.com
Hello

Vagrantfile can be also included in the machine (VM), so in this case check this file:

~/.vagrant.d/boxes/cloudfoundry-VAGRANTSLASH-bosh-lite/9000.137.0/virtualbox/Vagrantfile 


where ~ is your home directory.

Seems they are defaulting to 6GB if the variable VM_MEMORY is not set.


So, if you use cmd.exe do


set VM_MEMORY=1024

if you use linux/mac/bash

export VM_MEMORY=1024


vagrant reload


This should be documented in the project you are using or the box you are using.

Alvaro



--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
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 vagrant-up+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages