One-to-One PCI Passthrough#
One-to-One PCI passthrough involves giving a single VM at a time, access to a PCI device that is physically attached to a host node. The VM guest operating system utilizes the device as if it were directly attached.
Host Installation/Configuration#
It is important to read and be familiar with PCI Passthrough Risks and Precautions before making passthrough configurations.
- Navigate to the Resource Manager Dashboard (Main Dashboard > Resources) -OR- Navigate to a specific node dashboard (Main Dashboard > Nodes > double-click desired node in the list.)
- Click PCI Devices.
- Select the desired device(s) in the list and click Make Passthrough on the left menu.
- Select an existing PCI device resource group from the list -OR- Create a new PCI resource group.
Creating a PCI Devices Resource Group#
- Name: label used to identify the resource group (i.e. device pool); use a descriptive name so that users are easily able to identify the type of device(s) in this group, e.g. PCI GPUs
- Type: PCI
- Description: optional field to provide more administrative text about the resource group.
- Class: select the most appropriate classification from the dropdown list. This field is only used to apply an associated icon to the resource group, and does not affect functionality.
-
Click Submit to finish creating the new resource group.
-
A reboot of the associated node(s) may be necessary; a message will appear at the top of the Resource Manager dashboard.
Follow proper Maintenance Mode procedures when rebooting a node to avoid workload disruptions.
After the resource group is selected/created, a *Success message should appear indicating resource rules were created for the device(s).
VM/Guest Configuration#
- Navigate to the dashboard of the desired VM (Main Dashboard > Machines > Virtual Machines > double-click desired VM in the listing).
- Click Devices on the left menu.
- Click New on the left menu.
You can also attach devices to a VM via Resource Manager; this method allows for adding multiple devices to the VM at once. From Resource Group dashboard > double-click the desired PCI Group > View Machine Devices > New; select the VM from the Machine dropdown list.
- Device Entry Form fields:
- Name: provide a name to adequately identify the type of device(s), or leave blank to allow the system to auto-generate a device name.
- Type: PCI
- Description(optional): additional text can be entered here for administrative purposes.
- Resource Group: select the appropriate PCI resource group from the dropdown list
- Count: indicate the number of PCI devices to attach to the VM (from this resource group).
- Click Submit to complete adding the new device.
- The VM will need a restart in order to attach the device. From the VM dashboard, click the Restart link on the message that appears at the top of the dashboard, or click Restart on the left menu.
- Install any required client drivers. Consult hardware vendor documentation.
- Restart the VM.
Passthrough a PCI Device to a Tenant#
PCI devices can be passed to a tenant for the tenant to pass to its own VMs. When you pass through PCI devices to the tenant, a new resource group is created within the tenant.
When devices are shared to a tenant, they are thick provisioned (i.e. the tenant then owns the devices, so they cannot be assigned to other VMs or tenants even when not in use.)
- Navigate to the desired tenant dashboard (Main Dashboard > Tenants > Tenants > double-click the tenant within the list.)
- Click Nodes on the left menu.
- Double-click one of the tenant nodes.
- Click Devices on the left menu.
- Click New on the left menu.
- Enter a Name or leave blank to allow the system to auto-create a name; this name will be used for the resource group created in the tenant.
- Type: PCI
- Description: provides a place to store additional administrative information about the device pool.
- Count: number of devices to pass into the tenant resource group.
- When fields are completed, click Submit to finish passing to the tenant.
- The device(s) will now be available as a resource group to attach to tenant VMs. Follow VM/Guest Configuration instructions above. In order to use the passthrough device, the VM must run on the tenant node where the device is attached.