nsidc / vagrant-vsphere

VMware vSphere provider for Vagrant
Other
608 stars 166 forks source link

allow setting target host for vm #281

Open alclonky opened 5 years ago

alclonky commented 5 years ago

allows loadbalancing vms on the esx hosts

we are using it like

...

(1..30).each do |i|
  config.vm.define "client-#{i}" do |client|
    client.vm.provider "vsphere"
    client.vm.provider :vsphere do |vsphere|
      vsphere.name = "client-#{i}"
      if i.even?
        vsphere.target_host = 'esxhost1'
      else
        vsphere.target_host = 'esxhost2'
      end
    end
  end
end

...

edmcman commented 5 years ago

You might also be interested in my pull request if you use DRS: https://github.com/nsidc/vagrant-vsphere/pull/232

alclonky commented 5 years ago

You might also be interested in my pull request if you use DRS: #232

I do not have a licences which provides DRS, thats why i needed this feature

alclonky commented 5 years ago

seems to be duplicate of https://github.com/nsidc/vagrant-vsphere/pull/257 why isn't it merged yet?