# Select SYSTEM datastore in template

**URL:** <https://forum.opennebula.io/t/select-system-datastore-in-template/4305>\
**Category:** Product Support\
**Created:** [May 17, 2017, 11:14am UTC](https://forum.opennebula.io/t/select-system-datastore-in-template/4305 "2017-05-17T11:14:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snowman](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@Snowman](https://forum.opennebula.io/u/Snowman)\
**Post date:** [May 17, 2017, 11:14am UTC](https://forum.opennebula.io/t/select-system-datastore-in-template/4305/1 "2017-05-17T11:14:13Z")

</div>

Hi,  
what should I set as template parameters to be able to select exact VM datastore ?  
I have cluster of 3 nodes with 2 datastores (SSH and HDD). I am using Opennebula 5.

BR

---

<div class="post-metadata">

**Author:** ![atodorov\_storpool](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/atodorov_storpool/32/5327_2.png) [@atodorov\_storpool](https://forum.opennebula.io/u/atodorov_storpool)\
**Post date:** [May 17, 2017, 2:04pm UTC](https://forum.opennebula.io/t/select-system-datastore-in-template/4305/2 "2017-05-17T14:04:29Z")

</div>

Hi Martin,

To tell the OpenNebula’s scheduler to deploy the VMs only on given SYSTEM datastore set `SCHED_DS_REQUIREMENTS` in the VM template the following attribute:

SCHED\_DS\_REQUIREMENTS=“TM\_MAD=systemDatastoeName\_or\_ID”

Using sunstone it is located in “Update VM template” -\> “Scheduling” -\> “Placement” -\> “Datastore Requirements”. Set the “Expression” to TM\_MAD=systemDatastoeName\_or\_ID

Best Regards,  
Anton Todorov
