Skip to content

Instantly share code, notes, and snippets.

@calhounpaul
calhounpaul / xe_gpu_passthrough.sh
Created September 20, 2023 17:35
Dual GPU passthrough - XCP-ng 8.3
#!/bin/bash
declare -A UUIDS
UUIDS["vm1"]="aaaabbbb-06cd-2864-18b1-2c8d1176ef15"
UUIDS["vm2"]="ccccdddd-00fb-c691-e020-8c887ed1e6f7"
UUIDS["vm3"]="eeeeffff-1e36-b28c-8891-47f9cddab6b6"
# etc
GPU1="0/0000:03:00.0,0/0000:03:00.1"
GPU2="0/0000:06:00.0,0/0000:06:00.1"