Skip to content

Instantly share code, notes, and snippets.

View jabbas's full-sized avatar

Grzegorz Dzięgielewski jabbas

View GitHub Profile
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: qemu-guest-agent
namespace: kube-system
spec:
selector:
matchLabels:
name: qemu-guest-agent
template:
#!/bin/bash
for d in /sys/kernel/iommu_groups/*/devices/*; do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done