Hello Steff

Are several vsphere plugins, which one are you using?

If you are using this:
https://github.com/nsidc/vagrant-vsphere 
<https://github.com/nsidc/vagrant-vsphere>

The resource pool is on the GUI that defines the rules of the VM.

You usually don’t needed. Test leaving that commented out.

You can deploy from template, or cloning a VM, try both.

This is how I created a multi-vm setup

To clone from a Template, you need:
        vsphere.template_name = 'oracle6-template'
        vsphere.linked_clone = false

ie

#name of vm to current directory
vm_prefix = "webserver"
#number of vms
vm_number = 1
#ram
vm_ram = 1024
#cpu
vm_cpu = 2

Vagrant.configure("2") do |config|

  config.vm.box = 'dummy'
  config.vm.box_url = '../dummy.box'
  config.vm.synced_folder ".", "/vagrant", disabled: true
  config.vm.provision "shell", run: "always", inline: "[ -f 
/etc/udev/rules.d/70-persistent-net.rules ] && rm -fr 
/etc/udev/rules.d/70-persistent-net.rules"

  config.ssh.username = 'root'
  config.ssh.password = 'root'
  config.ssh.forward_x11 = true

  (1..vm_number).each do |i|
    config.vm.define vm_name = "#{vm_prefix}%01d" % i do |config|
      config.vm.hostname = vm_name
      config.vm.provider :vsphere do |vsphere|
        vsphere.vm_base_path = 'vagrant-vsphere'  
        vsphere.name = vm_name
        vsphere.template_name = 'oracle6-template'
        vsphere.linked_clone = false
        vsphere.data_store_name = 'datastore1'
        vsphere.memory_mb = vm_ram
        vsphere.cpu_count = vm_cpu
        vsphere.host = '192.168.1.28'
        vsphere.insecure = true
        vsphere.compute_resource_name = '192.168.1.30'
        vsphere.user = '[email protected]'
        vsphere.password = '<password>'
      end
    end
  end
end



> On 14/01/2016, at 9:46 PM, Stefaans Mostert <[email protected]> 
> wrote:
> 
> 
> Allo all
> 
> Trying to use the vagrant-vsphere plugin.
> Who can tell me how to find out what the resource pool for an environment is?
> Yes, I have a useless VMware admin.
> 
> Steff
> 
> 
> 
> -- 
> This mailing list is governed under the HashiCorp Community Guidelines - 
> https://www.hashicorp.com/community-guidelines.html 
> <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 
> <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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/vagrant-up/826a4507-2b3c-43b6-a780-9a415ec64c41%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/vagrant-up/826a4507-2b3c-43b6-a780-9a415ec64c41%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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/FFAF5F3A-60CF-470D-8B93-3062279A3188%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to