Skip to content

Feature: Add support for GPU with KVM hosts - #11143

Merged
sureshanaparti merged 30 commits into
apache:mainfrom
shapeblue:integrate-gpu
Jul 29, 2025
Merged

Feature: Add support for GPU with KVM hosts#11143
sureshanaparti merged 30 commits into
apache:mainfrom
shapeblue:integrate-gpu

Conversation

@vishesh92

@vishesh92 vishesh92 commented Jul 4, 2025

Copy link
Copy Markdown
Member

Description

This PR allows attaching of GPU devices via PCI, mdev or VF to an Instance for KVM.
CWiki Design doc: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Support+for+GPU+with+KVM+hosts
Doc PR: apache/cloudstack-documentation#526

Generated summary

This pull request introduces several changes across multiple files, focusing on enhancing GPU-related functionality, adding new properties for VM hooks, and updating resource management capabilities. The most significant updates include the addition of GPU properties and event types, the introduction of new VM shell script properties, and modifications to resource limits and types to support GPU devices.

GPU-related enhancements:

VM hook properties:

Resource management updates:

Miscellaneous updates:

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Screenshots (if appropriate):

How Has This Been Tested?

This was tested locally on my laptop with passthrough of a consumer graphics card (NVIDIA RTX 3050). Due to unavailability of actual hardware, I wasn't able to test with vGPU profiles or mdev.

Framework level testing was done using the simulator plugin.

How did you try to break this feature and the system with this change?

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Add NVidia Datacenter (V100/A100/H100) GPU assignment to CloudStack guests