# vmware\_guest module configure networks with distributed switch / Portgroup

**URL:** <https://forum.ansible.com/t/vmware-guest-module-configure-networks-with-distributed-switch-portgroup/25408>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [September 5, 2017, 1:28pm UTC](https://forum.ansible.com/t/vmware-guest-module-configure-networks-with-distributed-switch-portgroup/25408 "2017-09-05T13:28:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorg\_Mainzer](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@Jorg\_Mainzer](https://forum.ansible.com/u/Jorg_Mainzer)\
**Post date:** [September 5, 2017, 1:28pm UTC](https://forum.ansible.com/t/vmware-guest-module-configure-networks-with-distributed-switch-portgroup/25408/1 "2017-09-05T13:28:54Z")

</div>

Hello,

on creation or reconfiguration of a vmware guest I got an error:  
fatal: [localhost]: FAILED! =\> {“changed”: true, “failed”: true, “msg”: “Das Objekt oder Element, auf das Bezug genommen wurde, konnte nicht gefunden werden.”}

when the network is a Portgroup of a vSphere distributed switch.

Using a standard switch network is ok.

The vsphere\_guest module has the option to specify the network\_type, like:  
network\_type: dvs  
So with the vsphere module I can create the network, but with the vmware\_guest module I am stuck.

Is the vmware\_guest module not supporting dvs?

Joerg
