# Problem with vsphere\_guest on vm\_extra\_config and state reconfigured

**URL:** <https://forum.ansible.com/t/problem-with-vsphere-guest-on-vm-extra-config-and-state-reconfigured/19230>\
**Category:** Ansible Project\
**Created:** [September 10, 2015, 2:24pm UTC](https://forum.ansible.com/t/problem-with-vsphere-guest-on-vm-extra-config-and-state-reconfigured/19230 "2015-09-10T14:24:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timo](https://avatars.discourse-cdn.com/v4/letter/t/c4cdca/32.png) [@Timo](https://forum.ansible.com/u/Timo)\
**Post date:** [September 10, 2015, 2:24pm UTC](https://forum.ansible.com/t/problem-with-vsphere-guest-on-vm-extra-config-and-state-reconfigured/19230/1 "2015-09-10T14:24:27Z")

</div>

Dear list,

i want to change a parameter in the vm\_extra\_config from what i understand will modify my .vmx of my VM.

This is my part of the vm\_extra\_config:

vm\_extra\_config:  
notes: “{{ notes }}”  
vcpu.hotadd: yes  
mem.hotadd: yes  
folder: “{{ folder }}”  
tools.upgrade.policy: upgradeAtPowerCycle

Everything works fine, till to the last entry.  
By no chance it will be changed with  
state: reconfigured  
or got it from the beginning with  
state: present (create new VM)

Second problem, also with  
state: reconfigured  
if i change a parameter in

network: Portgroup

to a new value (New\_Portgroup) it does also not recognizes it.  
In fact it disconnects the adapter from the vSwitch in the end.  
But it always says, OK after the run without the change of the portgroup for this adapter.

If i change for example CPU-Count, RAM, Disk etc. this works fine.

So any ideas how to get the new parameters into the .vmx?  
And how to change a portgroup with state: reconfigured?  
Or do i have to do this with state: present?

Right now i am on: ansible 1.9.3

Thx a lot in advance!

Timo

---

<div class="post-metadata">

**Author:** ![Timo](https://avatars.discourse-cdn.com/v4/letter/t/c4cdca/32.png) [@Timo](https://forum.ansible.com/u/Timo)\
**Post date:** [September 15, 2015, 6:42am UTC](https://forum.ansible.com/t/problem-with-vsphere-guest-on-vm-extra-config-and-state-reconfigured/19230/2 "2015-09-15T06:42:55Z")

</div>

Hi,

no one any ideas on that?

Thx!

Timo

---

<div class="post-metadata">

**Author:** ![pax\_pacis](https://avatars.discourse-cdn.com/v4/letter/p/7ea924/32.png) [@pax\_pacis](https://forum.ansible.com/u/pax_pacis)\
**Post date:** [October 6, 2015, 10:39am UTC](https://forum.ansible.com/t/problem-with-vsphere-guest-on-vm-extra-config-and-state-reconfigured/19230/3 "2015-10-06T10:39:42Z")

</div>

Hi Timo,

I have the same issue at the moment, I can not change any of the network configuration or even add/change the notes. Adding a CPU or changing disk or memory is working.

Also I do not get any errors on the network change.
