vagrant-vsphere icon indicating copy to clipboard operation
vagrant-vsphere copied to clipboard

allow setting target host for vm

Open alclonky opened this issue 6 years ago • 3 comments

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

...

alclonky avatar Mar 25 '19 12:03 alclonky

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

edmcman avatar Mar 25 '19 13:03 edmcman

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 avatar Mar 25 '19 14:03 alclonky

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

alclonky avatar Mar 25 '19 14:03 alclonky