VMware {code} Community
broedi
Contributor
Contributor

vmcreate.pl and Distributed Virtual Switches...

Hi,

I use the vmcreate.pl example to create a new vm. Everything is working fine, except if I try to connect the nic to a PortGroup of a Distributed Virtual switch.

There is no error from the script, but the VM is not correct connected to the PortGroup. Have anybody got an idea how to do this?

Thanks!

Willi

0 Kudos
2 Replies
lamw
Community Manager
Community Manager

Yes handling vDS will be slightly different as you most likely need to locate the vDS portgroup from the vDS (distributed switch), and then set it. Unfortunately I don't have a vDS setup, but you'll definitely need to modify the code to handle this as it won't be using the local host's standard vSwitch.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos
vtzanoudakis
Contributor
Contributor

Dear All,

I have just posted a solution for vmcreate.pl + vDS portgroup Network here: https://communities.vmware.com/thread/436559

Enjoy Smiley Happy

========================================================================= Vasilios Tzanoudakis Systems & Security Administrator http://www.linkedin.com/in/vtzan
0 Kudos