<a id="devices-pci"></a>

# Type: `pci`


            <p class="youtube_link">
              <a href="https://www.youtube.com/watch?v=h3DZXbmsZHg" target="_blank">
                <span title="LXD PCI devices" class="play_icon">▶</span>
                <span title="LXD PCI devices">Watch on YouTube</span>
              </a>
            </p>
        
#### NOTE
The `pci` device type is supported for VMs.

PCI devices are used to pass raw PCI devices from the host into a virtual machine.

They are mainly intended to be used for specialized single-function PCI cards like sound cards or video capture cards.
In theory, you can also use them for more advanced PCI devices like GPUs or network cards, but it’s usually more convenient to use the specific device types that LXD provides for these devices ([`gpu` device](https://canonical.com/lxd/docs/default/reference/devices_gpu/index.html.md#devices-gpu) or [`nic` device](https://canonical.com/lxd/docs/default/reference/devices_nic/index.html.md#devices-nic)).

## Device options

`pci` devices have the following device options:

<!-- Include content from [../metadata.txt](../metadata.txt) -->

<a id="device-pci-device-conf:address"></a>
`address`

PCI address of the device

[<i class="icon"><svg><use href="#svg-arrow-right"></use></svg></i>](#device-pci-device-conf:address)

| **Key:**      | `address`   |
|---------------|-------------|
| **Type:**     | string      |
| **Required:** | yes         |

## Configuration examples

Add a `pci` device to a virtual machine by specifying its PCI address:

```none
lxc config device add <instance_name> <device_name> pci address=<pci_address>
```

To determine the PCI address, you can use **lspci**, for example.

See [Configure devices](https://canonical.com/lxd/docs/default/howto/instances_configure/index.html.md#instances-configure-devices) for more information.
