> For the complete documentation index, see [llms.txt](https://docs.platform9.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.platform9.com/private-cloud-director/gpu/gpu-support-pcd/gpu-vm-compatibility.md).

# GPU VM Machine Type and OS Compatibility

## Overview

GPU VMs — whether using passthrough or vGPU — have additional compatibility requirements beyond those of a standard VM. Machine type (Q35 vs. i440fx), UEFI/OVMF firmware, and the combination of host OS, QEMU, and libvirt versions all affect whether a GPU VM boots successfully.

This page documents the compatibility matrix and common boot failures caused by machine-type or OS mismatches, along with a pre-flight checklist to verify compatibility before deploying GPU VMs.

## Machine Type Requirements

<code class="expression">space.vars.product\_name</code> supports two machine types for virtual machines:

* **Q35** — the recommended machine type for GPU VMs. Q35 uses PCIe topology and is required for correct PCI passthrough of modern NVIDIA GPUs. It also supports large PCI MMIO windows needed by GPUs with substantial VRAM (for example, H200).
* **i440fx** — the legacy machine type. It uses PCI (not PCIe) topology and may not expose sufficient address space for modern GPU hardware. Some GPU models will not pass the NVIDIA driver's device initialization on i440fx.

**For GPU passthrough VMs, always use Q35.** If you create a GPU VM with the i440fx machine type and the GPU uses a large MMIO window (such as the H200 or A100), the VM may boot but the NVIDIA driver inside the guest will fail to initialize the GPU, and `nvidia-smi` will report no devices.

You set the machine type via an image property on the VM image:

```bash
pcdctl image set <IMAGE_ID> hw_machine_type=q35
```

Confirm the property is set:

```bash
pcdctl image show <IMAGE_ID> | grep hw_machine_type
```

## UEFI/OVMF Firmware

Modern NVIDIA GPU passthrough generally requires UEFI boot (OVMF firmware) rather than legacy BIOS (SeaBIOS), particularly for:

* GPUs that enumerate as UEFI-only ROM devices.
* Guest OSes using Secure Boot.
* Ubuntu 24.04 guests with newer kernel versions.

Set the UEFI firmware via the image property:

```bash
pcdctl image set <IMAGE_ID> hw_firmware_type=uefi
```

{% hint style="info" %}
If you set `hw_firmware_type=uefi` without also setting `hw_machine_type=q35`, the VM may fail to boot because OVMF requires PCIe topology. Always set both properties together for GPU VMs.
{% endhint %}

Large-BAR GPUs such as the A100 and H200 may also require an enlarged 64-bit PCI/MMIO window for the GPU's memory-mapped region. One or two of these cards boot correctly with the machine type and firmware properties above. Passing three or more into a single VM needs additional address-space properties on the image: see [Configure Large-BAR Multi-GPU VMs](#configure-large-bar-multi-gpu-vms).

## Configure Large-BAR Multi-GPU VMs <a href="#configure-large-bar-multi-gpu-vms" id="configure-large-bar-multi-gpu-vms"></a>

A large-BAR GPU exposes most of its memory through a single 64-bit PCI base address register (BAR). On an H200, for example, one BAR alone is 256 GiB. The guest firmware has to find a 64-bit MMIO window large enough for every card attached to the VM, so the window the VM needs grows with the number of cards.

One or two large-BAR cards fit inside the default window. With three or more, the guest runs out of 64-bit address space: the extra cards enumerate but cannot claim their BARs, and the NVIDIA driver fails to attach to them. In the guest's `dmesg` output this appears as:

```
pci 0000:07:00.0: BAR 2 [mem size 0x4000000000 64bit pref]: can't assign; no space
nvidia: probe of 0000:07:00.0 failed with error -1
```

Inside the guest, `nvidia-smi` then lists fewer GPUs than you attached, or none at all.

To pass three or more large-BAR GPUs into a single VM, set four additional properties on the VM image, alongside `hw_machine_type=q35` and `hw_firmware_type=uefi`. The values depend on the BAR size of your GPU and the number of cards, so calculate them as described below.

### Calculate the Property Values

1. Find the size of the largest 64-bit BAR on one GPU. Run this on the GPU host, using the PCI address of the GPU from `lspci`:

   ```bash
   sudo lspci -vvv -s <PCI_ADDRESS> | grep -i "Memory at"
   ```

   Look for the largest `prefetchable` region with `64-bit` in its description and note its `size=` value. For an H200, this is `size=256G`.
2. Calculate the BAR total: multiply the largest BAR size by the number of GPUs you attach to the VM.
3. Calculate the window size: multiply the BAR total by 2 to leave headroom for alignment and other PCIe devices, then round up to the next power of two. The result, in GiB, is the value for both `hw_pci_mmio_size` and `hw_pci_q35_size`.
4. Calculate the physical address bits: take the base-2 logarithm of the window size in GiB, then add 31. This is the minimum value for `hw_maxphysaddr_bits`. The 31 is 30 bits for GiB to bytes, plus 1 bit so the window and the guest memory fit below the address limit. Add one or more extra bits if the VM also has a large amount of memory.
5. Compare the result with the guest default of 40 bits. If the minimum is 40 or less, you do not need `hw_maxphysaddr_mode` or `hw_maxphysaddr_bits`. If it is more than 40, set both, and make sure every host that can run the VM reports at least that many bits (see [Host Physical Address Bits](#host-physical-address-bits)).

The following table applies the calculation to H200 GPUs. These values were validated on real hardware.

| GPU  | Largest BAR | GPUs per VM | `hw_pci_mmio_size` | `hw_pci_q35_size` | `hw_maxphysaddr_mode` | `hw_maxphysaddr_bits`                               |
| ---- | ----------- | ----------- | ------------------ | ----------------- | --------------------- | --------------------------------------------------- |
| H200 | 256 GiB     | 4           | `2048GiB`          | `2048G`           | `emulate`             | `42` (minimum)                                      |
| H200 | 256 GiB     | 8           | `4096GiB`          | `4096G`           | `emulate`             | `44` (validated; the formula gives 43 as a minimum) |

Substitute the values you calculated for the example values below, and set the properties on the image:

```bash
pcdctl image set <IMAGE_ID> hw_pci_mmio_size=<WINDOW_SIZE>GiB
pcdctl image set <IMAGE_ID> hw_pci_q35_size=<WINDOW_SIZE>G
pcdctl image set <IMAGE_ID> hw_maxphysaddr_mode=emulate
pcdctl image set <IMAGE_ID> hw_maxphysaddr_bits=<BITS>
```

For example, for 4 H200 GPUs:

```bash
pcdctl image set <IMAGE_ID> hw_pci_mmio_size=2048GiB
pcdctl image set <IMAGE_ID> hw_pci_q35_size=2048G
pcdctl image set <IMAGE_ID> hw_maxphysaddr_mode=emulate
pcdctl image set <IMAGE_ID> hw_maxphysaddr_bits=42
```

Confirm all of them are set:

```bash
pcdctl image show <IMAGE_ID> | grep -E "hw_pci_mmio_size|hw_pci_q35_size|hw_maxphysaddr"
```

### Value Formats

The two PCI window properties are strict about their format, and a value that is not recognized is ignored rather than reported as an error:

* `hw_pci_q35_size` takes an integer followed by an uppercase `G`, for example `2048G`. Any other form, including `2048`, `2048g`, and `2048GiB`, is ignored, and the VM starts with the default PCI hole size.
* `hw_pci_q35_size` has no effect on its own. If `hw_pci_mmio_size` is not set on the same image, neither property reaches the VM. Always set both.
* `hw_pci_mmio_size` takes a size with a binary unit suffix, for example `2048GiB`.

Because an ignored value produces a VM that starts and then fails the same way it did before, verify the properties with `pcdctl image show` before you launch the VM.

### Host Physical Address Bits

`hw_maxphysaddr_bits` raises the physical address width the guest sees. A guest defaults to 40 bits, which caps addressable space at 1 TiB and is not enough for a 2048 GiB window, so this property has to be raised for these configurations.

The host must report at least as many physical address bits as the image requests. Check the host's width:

```bash
lscpu | grep -i "address sizes"
```

The first value in the output is the physical address width in bits. A host that reports fewer bits than the image requests cannot run the VM.

### Use a Dedicated Image

Apply these properties to an image used only for large-BAR multi-GPU VMs. A VM that requests more address space than its host provides will not launch, so an image carrying these properties is not a safe default for ordinary VMs, or for single-GPU VMs that may land on a host with a narrower physical address width.

## OS Version Compatibility

The following compatibility notes apply to the host and guest OS versions used with GPU VMs.

### Host OS Compatibility

| Host OS                       | Passthrough | vGPU      |
| ----------------------------- | ----------- | --------- |
| Ubuntu 22.04, kernel 5.15     | Supported   | Supported |
| Ubuntu 22.04, kernel 6.5      | Supported   | Supported |
| Ubuntu 24.04, kernel 6.8      | Supported   | Supported |
| Ubuntu 24.04, kernel 6.11     | Supported   | Supported |
| Rocky Linux 10.2, kernel 6.4+ | Supported   | Supported |

{% hint style="info" %}
As of the 2026.8 release, vGPU is supported on Ubuntu 24.04 and Rocky 10.2 hosts. On Ubuntu 24.04 and Rocky 10.2 , vGPU uses the SR-IOV **type-VF** model rather than mediated (mdev) devices, so the GPU must support SR-IOV and the host configuration sequence differs from Ubuntu 22.04. See Set up vGPU.
{% endhint %}

### Guest OS Compatibility

GPU passthrough is supported with any guest OS that has a compatible NVIDIA driver. vGPU requires the NVIDIA vGPU guest driver, which is available for:

* Ubuntu 22.04 LTS (guest)
* Ubuntu 24.04 LTS (guest) — requires NVIDIA vGPU guest driver version 550 or later

### Ubuntu 24.04 Guests: OVMF Version Constraints

When launching GPU passthrough VMs with an Ubuntu 24.04 guest, use OVMF firmware that is compatible with the QEMU version on the host. On Ubuntu 22.04 hosts, the OVMF package may be an older version. If the guest fails to boot and the console shows:

```
BdsDxe: failed to load Boot0001 "UEFI QEMU DVD-ROM"
```

or gets stuck at the OVMF splash screen, the OVMF version and QEMU version on the host may be mismatched. Update the OVMF package:

```bash
sudo apt-get update && sudo apt-get install --only-upgrade ovmf
```

After the update, power off the VM and power it on again (a reboot is not sufficient if the firmware blob itself changed).

## Pre-Flight Compatibility Checklist

Before deploying a GPU VM, verify all items in this checklist.

### Image Properties

Run the following and confirm the values match your requirements:

```bash
pcdctl image show <IMAGE_ID> | grep -E "hw_machine_type|hw_firmware_type|hw_pci_mmio_size|hw_pci_q35_size|hw_maxphysaddr"
```

| Property              | Required value for GPU VMs                                                                                                                                                |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `hw_machine_type`     | `q35`                                                                                                                                                                     |
| `hw_firmware_type`    | `uefi` (recommended for passthrough; required for UEFI-only GPUs)                                                                                                         |
| `hw_pci_mmio_size`    | Three or more large-BAR GPUs only: calculate the window size (see [Calculate the Property Values](#calculate-the-property-values)); for example `2048GiB` for 4 H200 GPUs |
| `hw_pci_q35_size`     | Three or more large-BAR GPUs only: the same number as `hw_pci_mmio_size`, with a `G` suffix (for example `2048G`). Set it only together with `hw_pci_mmio_size`           |
| `hw_maxphysaddr_mode` | Only when the calculated bits exceed 40: `emulate`                                                                                                                        |
| `hw_maxphysaddr_bits` | Only when the calculated bits exceed 40: the calculated minimum (for example `42` for 4 H200 GPUs), never more than the host reports                                      |

### Host Verification

On the GPU host, confirm the following before launching VMs:

```bash
# Confirm IOMMU is enabled and groups are populated
ls /sys/kernel/iommu_groups/ | wc -l   # should be > 0

# Confirm the GPU PCI device exists and the driver is correct (passthrough)
lspci -k | grep -A 3 "NVIDIA"          # should show vfio-pci for passthrough hosts

# Confirm NVIDIA vGPU manager is running (vGPU hosts)
systemctl status nvidia-vgpu-mgr       # should show active (running)

# Confirm the physical address width (three or more large-BAR GPUs per VM)
lscpu | grep -i "address sizes"        # first value must be >= hw_maxphysaddr_bits
```

### QEMU and libvirt Versions

For vGPU live migration support, the following minimum versions are required on both source and destination hosts:

* libvirt 8.6.0 or later
* QEMU 8.1.0 or later
* Linux kernel 5.18.0 or later

Check the installed versions:

```bash
libvirtd --version
qemu-system-x86_64 --version
uname -r
```

Currently, the default Ubuntu 22.04 LTS packages do not meet the vGPU live migration version requirements. Cold migration of vGPU VMs is the supported approach for moving vGPU workloads between Ubuntu 22.04 hosts. See [GPU FAQs](https://docs.platform9.com/private-cloud-director/gpu/gpu-support-pcd/gpu-faqs.md) for migration behavior details.

## Common Boot Failures and Resolutions

| Symptom                                                                   | Likely Cause                                                             | Resolution                                                                                                                                                                          |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| VM boots but `nvidia-smi` returns no devices, or fewer than were attached | Machine type is i440fx, or a large-BAR GPU needs an enlarged MMIO window | Set `hw_machine_type=q35`; for three or more large-BAR GPUs (A100/H200) set the address-space properties in [Configure Large-BAR Multi-GPU VMs](#configure-large-bar-multi-gpu-vms) |
| VM stuck at OVMF splash screen or fails POST                              | OVMF/QEMU version mismatch                                               | Update OVMF package on the host                                                                                                                                                     |
| VM fails to boot, console shows UEFI error                                | `hw_firmware_type=uefi` set without `hw_machine_type=q35`                | Set both properties together                                                                                                                                                        |
| GPU driver error in guest log: `No NVIDIA GPU found`                      | GPU not bound to vfio-pci on host                                        | Re-run passthrough config; verify binding with `lspci -k`                                                                                                                           |

## Related Pages

* [Set up GPU Passthrough](https://docs.platform9.com/private-cloud-director/gpu/gpu-support-pcd/set-up-gpu-passthrough.md) — passthrough infrastructure setup
* [Set up vGPU](https://docs.platform9.com/private-cloud-director/gpu/gpu-support-pcd/setup-vgpu.md) — vGPU infrastructure setup
* [GPU Post-Upgrade Recovery](https://docs.platform9.com/private-cloud-director/gpu/gpu-support-pcd/gpu-post-upgrade-recovery.md) — recover GPU VMs after host OS upgrades
* [GPU FAQs](https://docs.platform9.com/private-cloud-director/gpu/gpu-support-pcd/gpu-faqs.md) — migration behavior and other common questions


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.platform9.com/private-cloud-director/gpu/gpu-support-pcd/gpu-vm-compatibility.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
