pyvmomi icon indicating copy to clipboard operation
pyvmomi copied to clipboard

Multiple VLANs in different VMs

Open joseluisgonzalezcalvo opened this issue 6 years ago • 1 comments

Hi,

I'm trying to manage VM networking and I would like to know if it's possible to configure multiple VLANs for a host and assign a different VLAN to each VM of this host. If possible, a MWE is really appreciated.

Thanks.

joseluisgonzalezcalvo avatar Sep 18 '19 12:09 joseluisgonzalezcalvo

To my knowledge, it is possible by creating portgroups in VSwitch of host and assigning VLAN ID to it. configure Vms to attach to port group. I will share you the code soon.

kumahesh avatar Sep 26 '19 10:09 kumahesh