Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config.vm.customize is deprecated in favor of config.vm.provider #3

Open
shurane opened this issue Feb 3, 2014 · 1 comment
Open

Comments

@shurane
Copy link

shurane commented Feb 3, 2014

Well, that's the output I get from example3, but I'm guessing they all have it.

Here's output:

There were warnings and/or errors while loading your Vagrantfile
for the machine 'default'.

Your Vagrantfile was written for an earlier version of Vagrant,
and while Vagrant does the best it can to remain backwards
compatible, there are some cases where things have changed
significantly enough to warrant a message. These messages are
shown below.

Warnings:
* `config.vm.customize` calls are VirtualBox-specific. If you're
using any other provider, you'll have to use config.vm.provider in a
v2 configuration block.
@stvnwrgs
Copy link

replace

  node_config.vm.customize [
        'modifyvm', :id,
        '--name', node[:hostname],
        '--memory', memory.to_s
      ]

with

node_config.vm"virtualbox" do |v|
        v.customize[
            'modifyvm', :id,
            '--name', node[:hostname],
            '--memory', memory.to_s
          ]
      end

stvnwrgs added a commit to stvnwrgs/vagrant-examples that referenced this issue Feb 12, 2014
MichielDeMey added a commit to astromo/astromo-vagrant that referenced this issue Mar 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants