# OpenNebula VM name

**URL:** <https://forum.opennebula.io/t/opennebula-vm-name/1285>\
**Category:** Product Support\
**Created:** [October 2, 2015, 10:00pm UTC](https://forum.opennebula.io/t/opennebula-vm-name/1285 "2015-10-02T22:00:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![serverx](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@serverx](https://forum.opennebula.io/u/serverx)\
**Post date:** [October 2, 2015, 10:00pm UTC](https://forum.opennebula.io/t/opennebula-vm-name/1285/1 "2015-10-02T22:00:43Z")

</div>

Hello, im very new to OpenNebula, i setup my first OpenNebula server with Cenots, as hosts im using my vcenter cluster, all seems be fine except the virtual machine name, each VM that im creating getting the name "one-\<vm\_id\>"  
Ho i can modify OpenNebula so the VM will have the “VM Name” set during the VM creation panel ?  
Thanks

---

<div class="post-metadata">

**Author:** ![tinova](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/tinova/32/25_2.png) [@tinova](https://forum.opennebula.io/u/tinova)\
**Post date:** [October 5, 2015, 2:45pm UTC](https://forum.opennebula.io/t/opennebula-vm-name/1285/2 "2015-10-05T14:45:38Z")

</div>

This feature is not supported in 4.14. Having said that, the code to support this behaviour is already present in the git repository:

[https://github.com/OpenNebula/one/commit/639fede40dc22893b5eca6e00a96a70440dedb4b](https://github.com/OpenNebula/one/commit/639fede40dc22893b5eca6e00a96a70440dedb4b)

You are welcome to try this and give any feedback you deem useful.

---

<div class="post-metadata">

**Author:** ![serverx](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@serverx](https://forum.opennebula.io/u/serverx)\
**Post date:** [October 5, 2015, 5:49pm UTC](https://forum.opennebula.io/t/opennebula-vm-name/1285/3 "2015-10-05T17:49:10Z")

</div>

Great thank you so much

---

<div class="post-metadata">

**Author:** ![serverx](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@serverx](https://forum.opennebula.io/u/serverx)\
**Post date:** [October 9, 2015, 3:01pm UTC](https://forum.opennebula.io/t/opennebula-vm-name/1285/4 "2015-10-09T15:01:17Z")

</div>

seems not work… my opennebula installation is 4.14.0 when im restarting opennebula-sunstone im getting the following error:

/usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in `gem_original_require': ./vcenter_driver.rb:341: undefined (?...) sequence: /^one-(?<id>\d*)(-(?<tail>.*))?$/ (SyntaxError) ./vcenter_driver.rb:696: undefined (?...) sequence: /^one-(?<id>\d*)(-(?<tail>.*))?$/ from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`require’  
from /usr/lib/one/sunstone/routes/vcenter.rb:26  
from /usr/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`require’  
from /usr/lib/one/sunstone/sunstone-server.rb:363  
from /usr/lib/one/sunstone/sunstone-server.rb:362:in `each’  
from /usr/lib/one/sunstone/sunstone-server.rb:362

Thanks

---

<div class="post-metadata">

**Author:** ![tinova](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/tinova/32/25_2.png) [@tinova](https://forum.opennebula.io/u/tinova)\
**Post date:** [October 9, 2015, 3:03pm UTC](https://forum.opennebula.io/t/opennebula-vm-name/1285/5 "2015-10-09T15:03:49Z")

</div>

This is related to the ruby version (it should work with 1.9+) , and has been fixed in HEAD of the master branch. Please use the latest code and try again.

---

<div class="post-metadata">

**Author:** ![serverx](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@serverx](https://forum.opennebula.io/u/serverx)\
**Post date:** [October 9, 2015, 6:06pm UTC](https://forum.opennebula.io/t/opennebula-vm-name/1285/6 "2015-10-09T18:06:12Z")

</div>

hello, sorry but i didnt understand… i have to update ruby via yum ? may u explain exactly what do do ? im very new to opennebula.  
Thanks

---

<div class="post-metadata">

**Author:** ![jamdev12](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jamdev12](https://forum.opennebula.io/u/jamdev12)\
**Post date:** [October 11, 2015, 2:22am UTC](https://forum.opennebula.io/t/opennebula-vm-name/1285/7 "2015-10-11T02:22:39Z")

</div>

Hi serverx,

Like Tino replied above, the issue was code related where Ruby code compatible with version 1.9+ was put in the repo by mistake. Developers have fixed the issue which makes the code compatible with Ruby version 1.8.7. Download the latest code from Github and recompile OpenNebula and install.

Hope this helps,  
Jesus

---

<div class="post-metadata">

**Author:** ![serverx](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@serverx](https://forum.opennebula.io/u/serverx)\
**Post date:** [October 11, 2015, 10:48am UTC](https://forum.opennebula.io/t/opennebula-vm-name/1285/8 "2015-10-11T10:48:26Z")

</div>

thank you so much… but i would like to know how to do it… there is a guide?

---

<div class="post-metadata">

**Author:** ![tinova](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/tinova/32/25_2.png) [@tinova](https://forum.opennebula.io/u/tinova)\
**Post date:** [October 16, 2015, 8:38am UTC](https://forum.opennebula.io/t/opennebula-vm-name/1285/9 "2015-10-16T08:38:39Z")

</div>

Hi,

Yes, you can follow the following guide:

[http://docs.opennebula.org/4.14/integration/references/compile.html#compile](http://docs.opennebula.org/4.14/integration/references/compile.html#compile)

Best,

-T
