# Failed to Setup Container for group 57: No available IOMMU Models

## Problem

Instance in an error state as libvirtd failed to setup container for group 57 as there was no IOMMU module configured on the host.

{% tabs %}
{% tab title="None" %}

```none
Failed to start libvirt guest: libvirtError: internal error: qemu unexpectedly closed the monitor: 2020-06-26T23:19:48.842902Z qemu-system-x86_64: -device vfio-pci,host=83:00.0,id=hostdev0,bus=pci.0,addr=0x5: vfio error: 0000:83:00.0: failed to setup container for group 57: No available IOMMU models
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack - All Versions
* Libvirtd

## Cause

1. vfio\_iommu\_type1 module isn't loaded.

{% tabs %}
{% tab title="None" %}

```none
pf9@host:~$ lsmod | grep vfio_iommu_type1pf9@host:~$
```

{% endtab %}
{% endtabs %}

## Resolution

1. Load the Module using the followingcommand.

{% tabs %}
{% tab title="None" %}

```none
pf9@host:~$ modprobe module_name
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="None" %}

```none
pf9@host:~$ lsmod | grep vfio_iommu_type1vfio_iommu_type1       20480  0vfio                   28672  2 vfio_iommu_type1,vfio_pci
```

{% endtab %}
{% endtabs %}

2. Instance seen to be in the running state after making the change.

{% tabs %}
{% tab title="None" %}

```none
pf9@host:~$ sudo virsh list --all | grep [UUID] 14    [UUID] running
```

{% endtab %}
{% endtabs %}

## Additional Information
