# Changing the $i number in VM name

**URL:** <https://forum.opennebula.io/t/changing-the-i-number-in-vm-name/7665>\
**Category:** Installation & Configuration\
**Created:** [September 17, 2019, 3:15pm UTC](https://forum.opennebula.io/t/changing-the-i-number-in-vm-name/7665 "2019-09-17T15:15:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yacine\_FETOUH](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/yacine_fetouh/32/6120_2.png) [@Yacine\_FETOUH](https://forum.opennebula.io/u/Yacine_FETOUH)\
**Post date:** [September 17, 2019, 3:15pm UTC](https://forum.opennebula.io/t/changing-the-i-number-in-vm-name/7665/1 "2019-09-17T15:15:35Z")

</div>

Hi there,

According to documentation :

_–name name Name of the new VM or TEMPLATE. When_  
_instantiating multiple VMs you can use the “%i”_  
_wildcard to produce different names such as_  
_vm-0, vm-1…_

Is it possible to make the increment start from 01 insteed of 0 ?

Expected result would be VM%i → VM01, VM02 …

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![Alexander\_Litvak](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/alexander_litvak/32/5935_2.png) [@Alexander\_Litvak](https://forum.opennebula.io/u/Alexander_Litvak)\
**Post date:** [September 18, 2019, 1:15pm UTC](https://forum.opennebula.io/t/changing-the-i-number-in-vm-name/7665/2 "2019-09-18T13:15:56Z")

</div>

I wonder if it is possible to make variables a part of the name. This way %i can be anywhere in the name and vm01 or node2vm1 or node01vm would work. Also in your case what would happen after you reach 9?

---

<div class="post-metadata">

**Author:** ![Yacine\_FETOUH](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/yacine_fetouh/32/6120_2.png) [@Yacine\_FETOUH](https://forum.opennebula.io/u/Yacine_FETOUH)\
**Post date:** [September 19, 2019, 9:30am UTC](https://forum.opennebula.io/t/changing-the-i-number-in-vm-name/7665/3 "2019-09-19T09:30:13Z")

</div>

Hi,

After reaching 9, the expected result would be 11 12 13 …

---

<div class="post-metadata">

**Author:** ![pczerny](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/pczerny/32/6224_2.png) [@pczerny](https://forum.opennebula.io/u/pczerny)\
**Post date:** [September 24, 2019, 1:53pm UTC](https://forum.opennebula.io/t/changing-the-i-number-in-vm-name/7665/4 "2019-09-24T13:53:41Z")

</div>

Hi,  
looking into the code the leading zeros (VM01, VM02, …) are not possible.  
If you need it, create a feature request [https://github.com/OpenNebula/one/issues](https://github.com/OpenNebula/one/issues)

---

<div class="post-metadata">

**Author:** ![Yacine\_FETOUH](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/yacine_fetouh/32/6120_2.png) [@Yacine\_FETOUH](https://forum.opennebula.io/u/Yacine_FETOUH)\
**Post date:** [September 25, 2019, 3:05pm UTC](https://forum.opennebula.io/t/changing-the-i-number-in-vm-name/7665/5 "2019-09-25T15:05:44Z")

</div>

Hi,

Thank you .
