# Assigning a vNIC Profile to an oVirt VM

**URL:** <https://forum.ansible.com/t/assigning-a-vnic-profile-to-an-ovirt-vm/37269>\
**Category:** Ansible Project\
**Created:** [October 26, 2022, 3:26am UTC](https://forum.ansible.com/t/assigning-a-vnic-profile-to-an-ovirt-vm/37269 "2022-10-26T03:26:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Will1](https://avatars.discourse-cdn.com/v4/letter/w/46a35a/32.png) [@Will1](https://forum.ansible.com/u/Will1)\
**Post date:** [October 26, 2022, 3:26am UTC](https://forum.ansible.com/t/assigning-a-vnic-profile-to-an-ovirt-vm/37269/1 "2022-10-26T03:26:15Z")

</div>

Hello, I’m attempting to create a VM with the simple playbook below, and attach an existing NIC profile to it. In the oVirt web-gui, I would do this by simply selecting the profile in the VM settings under “_Instantiate VM network interfaces by picking a vNIC profile._”

When I attempt to assign it via Ansible, I get the following error:

_Fault reason is “Operation Failed”. Fault detail is “[Cannot add Interface. The network interface type doesn’t match the profile. Virtual machine interface of type ‘PCI Passthrough’ should have ‘Passthrough’ profile and vice versa.]”._

Am I adding the vNIC in the incorrect way?
