# Apropriate place to force virtio devices

**URL:** <https://forum.opennebula.io/t/apropriate-place-to-force-virtio-devices/7529>\
**Category:** Installation & Configuration\
**Created:** [August 6, 2019, 10:10am UTC](https://forum.opennebula.io/t/apropriate-place-to-force-virtio-devices/7529 "2019-08-06T10:10:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucian](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/lucian/32/6188_2.png) [@Lucian](https://forum.opennebula.io/u/Lucian)\
**Post date:** [August 6, 2019, 10:10am UTC](https://forum.opennebula.io/t/apropriate-place-to-force-virtio-devices/7529/1 "2019-08-06T10:10:27Z")

</div>

Hello,

I am new to ONE, I just deployed CentOS 7 from the market place, but I noticed it has an rtl NIC instead of virtio. What is the right place to define virtio NIC devices for VMs?

While at it, I’d like the VM deployed from this template to default to virtio-scsi for storage, so same question, where is this best defined?

Regards

---

<div class="post-metadata">

**Author:** ![ahuertas](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ahuertas/32/7487_2.png) [@ahuertas](https://forum.opennebula.io/u/ahuertas)\
**Post date:** [August 6, 2019, 10:23am UTC](https://forum.opennebula.io/t/apropriate-place-to-force-virtio-devices/7529/2 "2019-08-06T10:23:29Z")

</div>

Hello @Lucian

You can define both things in the file `/etc/one/vmm_exec/vmm_exec_kvm.conf`.

---

<div class="post-metadata">

**Author:** ![Lucian](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/lucian/32/6188_2.png) [@Lucian](https://forum.opennebula.io/u/Lucian)\
**Post date:** [August 6, 2019, 12:19pm UTC](https://forum.opennebula.io/t/apropriate-place-to-force-virtio-devices/7529/3 "2019-08-06T12:19:44Z")

</div>

Thanks Alejandro, do you know what options and parameters can be added to that file?

---

<div class="post-metadata">

**Author:** ![ahuertas](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ahuertas/32/7487_2.png) [@ahuertas](https://forum.opennebula.io/u/ahuertas)\
**Post date:** [August 7, 2019, 8:30am UTC](https://forum.opennebula.io/t/apropriate-place-to-force-virtio-devices/7529/4 "2019-08-07T08:30:04Z")

</div>

You can add all the information that libvirt supports, check official documentation. You can use [raw](http://docs.opennebula.org/5.8/operation/references/template.html#hypervisor-section) section to add something which is not generated by opennebula.

---

<div class="post-metadata">

**Author:** ![Lucian](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/lucian/32/6188_2.png) [@Lucian](https://forum.opennebula.io/u/Lucian)\
**Post date:** [August 7, 2019, 10:32am UTC](https://forum.opennebula.io/t/apropriate-place-to-force-virtio-devices/7529/5 "2019-08-07T10:32:21Z")

</div>

Hi,

Thanks, what’s the syntax to add virtio-scsi?

Regards

Alejandro Huertas via OpenNebula Community writes:

---

<div class="post-metadata">

**Author:** ![ahuertas](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ahuertas/32/7487_2.png) [@ahuertas](https://forum.opennebula.io/u/ahuertas)\
**Post date:** [August 7, 2019, 10:45am UTC](https://forum.opennebula.io/t/apropriate-place-to-force-virtio-devices/7529/6 "2019-08-07T10:45:05Z")

</div>

Check this [documentation](https://libvirt.org/formatdomain.html#elementsHostDev).

---

<div class="post-metadata">

**Author:** ![Lucian](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/lucian/32/6188_2.png) [@Lucian](https://forum.opennebula.io/u/Lucian)\
**Post date:** [August 7, 2019, 11:06am UTC](https://forum.opennebula.io/t/apropriate-place-to-force-virtio-devices/7529/7 "2019-08-07T11:06:28Z")

</div>

Right, I was hoping I could just write “virtio-scsi” in some config file…

---

<div class="post-metadata">

**Author:** ![Lucian](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/lucian/32/6188_2.png) [@Lucian](https://forum.opennebula.io/u/Lucian)\
**Post date:** [August 8, 2019, 3:42pm UTC](https://forum.opennebula.io/t/apropriate-place-to-force-virtio-devices/7529/8 "2019-08-08T15:42:06Z")

</div>

To answer myself, changing the BUS to SCSI in the Advanced Options of the template I am deploying from leads to virtio-scsi being used for the VM. See pic.

 ![Selection_057](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/3/3909d22a67dc297fb96dfb6b6485a7b889835173.png)
