Skip to content

Commit

Permalink
node-installer: add GPU-specific options
Browse files Browse the repository at this point in the history
  • Loading branch information
msanft committed Dec 19, 2024
1 parent 6043870 commit f18d3a8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nodeinstaller/internal/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ func KataRuntimeConfig(baseDir string, platform platforms.Platform, qemuExtraKer
if debug {
config.Hypervisor["qemu"]["enable_debug"] = true
}
// GPU-specific settings
if platform == platforms.K3sQEMUSNPGPU {
config.Hypervisor["qemu"]["guest_hook_path"] = "/usr/share/oci/hooks"
config.Hypervisor["qemu"]["cold_plug_vfio"] = "root-port"
// GPU images tend to be larger, so give a better default timeout that
// allows for pulling those.
config.Runtime["create_container_timeout"] = 600
}
default:
return nil, fmt.Errorf("unsupported platform: %s", platform)
}
Expand Down

0 comments on commit f18d3a8

Please sign in to comment.