# Modify SET\_HOSTNAME value

**URL:** https://forum.opennebula.io/t/modify-set-hostname-value/8004
**Category:** Installation & Configuration
**Created:** [January 24, 2020, 9:57am UTC](https://forum.opennebula.io/t/modify-set-hostname-value/8004 "2020-01-24T09:57:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Marco](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/marco/32/6210_2.png) [@Marco](https://forum.opennebula.io/u/Marco)
#### Post date: [January 24, 2020, 9:57am UTC](https://forum.opennebula.io/t/modify-set-hostname-value/8004/1 "2020-01-24T09:57:24Z")

</div>

Hello  
In my templates I have the variable “SET\_HOSTNAME = $name” in context section  
It could happen that a user starts a VM using a hostname that must be changed afterward.  
He can edit the name in suntone, change the hostname in the operating system, but obviously the VM at the next reboot will resume the SET\_HOSTNAME value.  
There is a way to give the permission to change “SET\_HOSTNAME” variable to the end user, without engage the admin user?

Thank you

---

<div class="post-metadata">

### Author: ![DaD](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/dad/32/8466_2.png) [@DaD](https://forum.opennebula.io/u/DaD)
#### Post date: [July 14, 2020, 11:09am UTC](https://forum.opennebula.io/t/modify-set-hostname-value/8004/2 "2020-07-14T11:09:02Z")

</div>

Hello.

Have you tried to [update the VM configuration](http://docs.opennebula.io/5.12/operation/vm_management/vm_instances.html#updating-vm-configuration)?

---

<div class="post-metadata">

### Author: ![Marco](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/marco/32/6210_2.png) [@Marco](https://forum.opennebula.io/u/Marco)
#### Post date: [August 19, 2020, 4:01pm UTC](https://forum.opennebula.io/t/modify-set-hostname-value/8004/3 "2020-08-19T16:01:21Z")

</div>

Yes, it works.  
Thanks for the hint, @DaD
