Create GPU Enabled Flavors
After configuring passthrough GPU or vGPU hosts, create GPU enabled flavors and deploy virtual machines with dedicated GPU access.
Step 1: Create GPU flavors
Create VM flavors that include either passthrough GPU or vGPU specifications. Users select these flavors when deploying VMs that need exclusive GPU access.
Navigate to Virtual Machines > Flavors in the product_acronym console.
Select Create Flavor.
Enter a Name for your flavor (for example, "gpu-passthrough-l4-large").
Configure the basic resources:
vCPUs: Number of virtual CPUs
RAM: Amount of memory in MB
Disk: Storage size in GB
Toggle Enable GPU to On.
You can select either:
GPU Mode: Passthrough.
GPU Mode: vGPU.
If you choose GPU Mode: Passthrough:
Select the GPU Model that matches your host configuration.
Set Number of GPUs to 1 or more. For passthrough mode, each VM gets exclusive access to the specified number of physical GPUs.
If you choose GPU Mode: vGPU
Select the Host OS Version that matches the hosts in your target cluster: Ubuntu 22, Ubuntu 24, or Rocky.
Set the SR-IOV toggle to match how vGPU is configured on those hosts.
Select a vGPU Trait or a Resource Class, depending on the host OS and SR-IOV combination. See vGPU flavor selectors.
Set Number of vGPUs. To assign more than one vGPU to a single VM, see Assign multiple vGPUs to a VM — on some host OS and SR-IOV combinations this field alone is not sufficient.
Select Create Flavor.
Your GPU flavor is now available for VM deployment.
vGPU flavor selectors
For vGPU flavors, the selector field shown in the Create Flavor dialog depends on the Host OS Version and the SR-IOV toggle.
Ubuntu 22
On
vGPU Trait (optional)
Select a trait to pin the flavor to a specific vGPU profile
Ubuntu 22
Off
Resource Class
CUSTOM_NVIDIA_* value
Ubuntu 24
On
Resource Class
CUSTOM_NVIDIA_* value
Ubuntu 24
Off
—
Not a valid combination. vGPU on Ubuntu 24 requires SR-IOV
Rocky
On
Resource Class
CUSTOM_NVIDIA_* value
Rocky
Off
Resource Class
CUSTOM_NVIDIA_* value
vGPU Trait
On Ubuntu 22 hosts with SR-IOV enabled, the dialog shows a vGPU Trait (Optional) dropdown.
The trait is optional. Leave it unset and the flavor matches any vGPU profile available on the hosts in the cluster. Select a trait to pin the flavor to a specific vGPU profile — use this when the cluster contains hosts configured with different vGPU profiles and the workload requires a particular one.
The dropdown is populated from the vGPU profiles that hosts in your environment are currently reporting. If it shows No vGPU Trait (Optional) available, no host is reporting vGPU profile inventory. Confirm that:
At least one host is authorized into a GPU-enabled cluster with GPU mode set to vGPU.
A vGPU profile is configured on that host under Infrastructure > GPU Hosts.
The host is reporting vGPU inventory. See vGPU Inventory Troubleshooting and Multiple vGPU per VM.
Resource Class
For all other supported combinations, the dialog shows a Resource Class dropdown.
Resource class names follow the format CUSTOM_NVIDIA_<vgpu-type-id>, where the ID is the NVIDIA vGPU type configured on the host — for example, CUSTOM_NVIDIA_914. Each value corresponds to a vGPU profile reported by the hosts in your environment.
Select the resource class matching the vGPU profile configured on the hosts in your target cluster. Always select from the dropdown rather than constructing the name by hand, so the value matches reported inventory exactly. As with traits, an empty dropdown means no host is reporting a vGPU profile.
Assign multiple vGPUs to a VM
How you request more than one vGPU for a single VM depends on the Host OS Version and SR-IOV combination.
Ubuntu 24
On
Set Number of vGPUs in the Create Flavor dialog
Rocky
On
Set Number of vGPUs in the Create Flavor dialog
Ubuntu 22
On
Add flavor metadata manually — see below
Ubuntu 22
Off
Add flavor metadata manually — see below
Rocky
Off
Add flavor metadata manually — see below
Using the Number of vGPUs field
On Ubuntu 24 and Rocky hosts with SR-IOV enabled, set Number of vGPUs to the required count when you create the flavor. No further configuration is needed.
Adding flavor metadata manually
On Ubuntu 22 hosts (with or without SR-IOV) and on Rocky hosts without SR-IOV, the Number of vGPUs field does not produce a working multi-vGPU flavor. Each vGPU must be requested as a separate numbered resource group in the flavor's metadata.
Create the vGPU flavor as described in Step 1, leaving Number of vGPUs at
1.Navigate to Virtual Machines > Flavors in the PCD console.
Select your flavor and edit its metadata.
Add one
resourcesN:entry per vGPU, plus the group policy. For a VM with two vGPUs using vGPU type914:
resources1:CUSTOM_NVIDIA_914
1
resources2:CUSTOM_NVIDIA_914
1
group_policy
isolate
Save the flavor.
Increment the group number for each additional vGPU — a four-vGPU flavor uses resources1: through resources4:. Substitute the vGPU type ID configured on your hosts for 914.
Step 2: Deploy VMs with passthrough or vGPU support
Deploy virtual machines with exclusive GPU access using passthrough or vGPU flavors.
Navigate to Virtual Machines in the PCD console.
Select Create VM and then on Name enter a name for your VM.
Select Boot VM From the list.
Select a GPU-enabled cluster with GPU mode from the cluster dropdown.
Select GPU flavor from the flavor dropdown.
Configure the VM settings:
Network: Configure network settings as needed.
VM Spec: Configure additional specifications for your VM.
Select Deploy VM.
You may be required to wait for the VM to deploy. The system validates that the selected GPU flavor has available capacity on the host. After the VM is successfully deployed, your VM is now running with shared GPU access.
Last updated
Was this helpful?
