I made two changes to the code you provided: I included a missing "end" 
statement. I changed the provider from "virtualbox" to "vmware_desktop" as 
I don't have VBox installed.

Here's the code:

# -*- mode: ruby -*-
# vi: set ft=ruby ts=2 :

hosts = {
  "sys1" => { :ip => "192.168.56.101" },
  "sys2" => { :ip => "192.168.56.102" },
  "sys3" => { :ip => "192.168.56.103" },
  "sys4" => { :ip => "192.168.56.104" },
}

Vagrant.configure("2") do |config|
  config.vm.box = "centos/7"

  hosts.each_with_index do |(hostname, info), index|
    config.vm.define hostname do |cfg|
      cfg.vm.provider :vmware_desktop do |vb, override|
        override.vm.hostname = hostname
        override.vm.network "private_network", ip: info[:ip]
      end
    end
  end
end

Here are the results:

PS C:\Users\Aaron Kulbe\Code\Vagrant_Dev> vagrant up
Bringing machine 'sys1' up with 'vmware_desktop' provider...
Bringing machine 'sys2' up with 'vmware_desktop' provider...
Bringing machine 'sys3' up with 'vmware_desktop' provider...
Bringing machine 'sys4' up with 'vmware_desktop' provider...
==> sys1: Checking if box 'centos/7' version '1902.01' is up to date...
==> sys1: Verifying vmnet devices are healthy...
==> sys1: Preparing network adapters...
==> sys1: Starting the VMware VM...
An error occurred while executing `vmrun`, a utility for controlling
VMware machines. The command and output are below:

Command: ["start", "C:\\Users\\Aaron 
Kulbe\\Code\\Vagrant_Dev\\.vagrant\\machines\\sys1\\vmware_desktop\\9ec638a6-0a13-4d94-bdd1-a3878230668a\\centos-7-1-1.x86_64.vmx",
 
"nogui", {:notify=>[:stdout, :stderr], :timeout=>45}]

Stdout: Error: The operation was canceled

Stderr:

On Thursday, March 21, 2019 at 1:51:35 PM UTC-7, [email protected] wrote:
>
>
> Ignore setting the memory for now and just try to get 4 boxes to come up...
>
> Try this...
>
> # -*- mode: ruby -*-
> # vi: set ft=ruby ts=2 :
>
> hosts = {
>   "sys1"  => { :ip => "192.168.56.101"  },
>   "sys2"  => { :ip => "192.168.56.102"  },
>   "sys3"  => { :ip => "192.168.56.103"  },
>   "sys4"  => { :ip => "192.168.56.104"  },
> }
>
> Vagrant.configure("2") do |config|
>
>   config.vm.box = "centos/7"
>
>   hosts.each_with_index do |(hostname,info), index|
>
>     config.vm.define hostname do |cfg|
>       cfg.vm.provider :virtualbox do |vb, override|
>          override.vm.hostname = hostname
>          override.vm.network "private_network", ip: info[:ip]
>      end # end config
>
>   end # end hosts
>
> end # end configure
>
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/200cffd2-a47b-4b29-9279-3da1d82f3c12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to