Vagrantfile with 2 providers

12 views
Skip to first unread message

Paulo Tada

unread,
Oct 29, 2015, 1:42:59 PM10/29/15
to Vagrant
Hello all,

I'm trying to do a Vagrantfile with 2 providers
My vagrant file looks like:

config.vm.define 'zeus' do |social|
  social.vm.provider 'lxc' do |vm, override|
    override.vm.box = lxc_box
    vm.container_name = :machine
  end
  social.vm.provider 'virtualbox' do |vm, override|
    override.vm.box = virtualbox_box
    vm.name = :machine
  end
end

But when I try to up with virtualbox I get
==> poseidon: Setting the name of the VM: machine
==> poseidon: Destroying VM and associated drives...
... undefined method `encode' for :machine:Symbol (NoMethodError)

I've found this https://github.com/fgrehm/vagrant-lxc/issues/337 it's exactly the same error except that is using lxc provider
Am I doing something wrong in the vagrantfile?
Reply all
Reply to author
Forward
0 new messages