Skip to content

Instantly share code, notes, and snippets.

@Cremator
Created August 14, 2024 10:47
Show Gist options
  • Save Cremator/016d3e6f5ee803311f5be33c0ba2d14d to your computer and use it in GitHub Desktop.
Save Cremator/016d3e6f5ee803311f5be33c0ba2d14d to your computer and use it in GitHub Desktop.
xcp-ng pci device passthrough
#Check the ethernet adapters
lspci | grep -i Ethernet
#Hide those adapters
/opt/xensource/libexec/xen-cmdline --set-dom0 "xen-pciback.hide=(0000:06:00.0)(0000:06:00.1)(0000:06:00.2)(0000:06:00.3)(0000:0b:00.0)(0000:0b:00.1)(0000:81:00.0)(0000:81:00.1)(0000:81:00.2)(0000:81:00.3)"
reboot
lspci | grep -i Ethernet
xl pci-assignable-list
xe vm-param-set other-config:pci=0/0000:06:00.0,0/0000:06:00.1,0/0000:06:00.2,0/0000:06:00.3,0/0000:0b:00.0,0/0000:0b:00.1 uuid=763aafc8-8446-bce2-ce0d-8857bd1212bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment