This code for construction GPUPassthrough and OpenStack environment on NixOS.
This code assumes environments refer from "OpenStack Installation Tutorial for Ubuntu". (http://docs.openstack.org/newton/install-guide-ubuntu/index.html)
- keystone-10.0.0
- nova-14.0.3
- neutron-9.1.1
- glance-13.0.0
- horizon-10.0.1
hw_firmware_type uefi
hw_machine_type pc-q35-2.8
pci_passthrough_whitelist=[{ "vendor_id":"10de", "product_id":"XXXX"}, { "vendor_id":"10de", "product_id":"YYYY"}, ... ]
pci_alias={"vendor_id":"10de", "product_id":"XXXX", "name":"Device1", "device_type":"type-PCI"}
pci_alias={"vendor_id":"10de", "product_id":"YYYY", "name":"Device2", "device_type":"type-PCI"}
...
pci_passthrough:alias <Device1 name>:<Device1 count>,<Device2 name>:<Device2 count>, ...