Created
August 14, 2024 10:47
-
-
Save Cremator/016d3e6f5ee803311f5be33c0ba2d14d to your computer and use it in GitHub Desktop.
xcp-ng pci device passthrough
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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