Disk Passthrough

What is the best method for Disk Passthrough to a VM?

I have an m.2 I would like to pass to a virtual machine.

The raw pci type doesn’t have a boot priority key and the disk type seems to use virtio. Does the disk type also have a pci passthrough option or is this something I would need to configure with the raw qemu config key?

Clarification is that I would like to have the passed through m.2 as the root device for the VM. This seems to work with the default root storage existing and being left unconfigured.

LXD VM’s don’t support using an arbitrary disk device be passed through and used as the root disk.
You would need to use the M2 disk as the backing for a storage pool and then create a VM using that storage pool.

See https://linuxcontainers.org/lxd/docs/master/explanation/storage/