# XML-RPC API one.vm.updateconf remove GRAPHICS config section

**URL:** <https://forum.opennebula.io/t/xml-rpc-api-one-vm-updateconf-remove-graphics-config-section/5782>\
**Category:** Product Support\
**Created:** [March 8, 2018, 12:36pm UTC](https://forum.opennebula.io/t/xml-rpc-api-one-vm-updateconf-remove-graphics-config-section/5782 "2018-03-08T12:36:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![caiconkhicon](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@caiconkhicon](https://forum.opennebula.io/u/caiconkhicon)\
**Post date:** [March 8, 2018, 12:36pm UTC](https://forum.opennebula.io/t/xml-rpc-api-one-vm-updateconf-remove-graphics-config-section/5782/1 "2018-03-08T12:36:49Z")

</div>

Hi all, I am using XML-RPC API to change VM configuration, the action I use is one.vm.updateconf:

VM\_ID = 3001  
ONE\_AUTH = ‘{0}:{1}’.format(ONE\_USERNAME, ONE\_PASSWORD)  
XML\_TEMPLATE = 'RAW=[type=“kvm”,data="\<cpu match=\“exact\” mode=\“host-model\”\>"]'  
response = proxy.one.vm.updateconf( ONE\_AUTH, VM\_ID, XML\_TEMPLATE )

It can update the RAW section correctly. However, it also clears GRAPHICS section, so I lose the VNC configuration. Is it a bug or I do anything wrong?

* * *

**Versions of the related components and OS (frontend, hypervisors, VMs):**  
Opennebula 5.2.1

**Current results:**  
Update RAW config section and remove GRAPHICS section  
**Expected results:**  
Only update RAW config section

---

<div class="post-metadata">

**Author:** ![GabrielDias](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/gabrieldias/32/5457_2.png) [@GabrielDias](https://forum.opennebula.io/u/GabrielDias)\
**Post date:** [March 28, 2018, 5:34pm UTC](https://forum.opennebula.io/t/xml-rpc-api-one-vm-updateconf-remove-graphics-config-section/5782/2 "2018-03-28T17:34:05Z")

</div>

The same error.

> [@Change custom attribute in VM with API](https://forum.opennebula.io/t/change-custom-attribute-in-vm-with-api/5860):
>
> Hi, Today I created a functional for changing the tariff plan for my customers and I get a problem. After instantiated VM from template, i see this (It`s OK and script working, when change between tariffs): I try to setup password for instantiated VM with custom USER_INPUTS, e.g. PASSWORD_BASE64 with API one.vm.updateconf, and change ONLY parameter PASSWORD_BASE64, but after VM starts parameter OS, FEATURES and GRAPHICS are deleted and parameter PASSWORD_BASE64 doesn`t change. If i tr…
