Print raw qemu command to do the gpu passthrough
This commit is contained in:
parent
ed0d400c2f
commit
f3391a622e
1 changed files with 10 additions and 1 deletions
|
@ -125,7 +125,7 @@ to disable/unbind the graphic card from the vfio driver on boot.
|
||||||
The files inside \"$SCRIPTDIR/$QUICKEMU\" are currently unused files, however they provide
|
The files inside \"$SCRIPTDIR/$QUICKEMU\" are currently unused files, however they provide
|
||||||
the required information that the QuickEMU project can hook into and use to add support for VFIO enabled VMs.
|
the required information that the QuickEMU project can hook into and use to add support for VFIO enabled VMs.
|
||||||
|
|
||||||
The PCI Devices with these IDs are what you should add to your VMs:
|
The PCI Devices with these IDs are what you should add to your VMs using Virt Manager:
|
||||||
NOTE: Some AMD GPUs will require the vendor-reset kernel module from https://github.com/gnif/vendor-reset to be installed!"
|
NOTE: Some AMD GPUs will require the vendor-reset kernel module from https://github.com/gnif/vendor-reset to be installed!"
|
||||||
|
|
||||||
source "${SCRIPTDIR}/config/quickemu/qemu-vfio_vars.conf"
|
source "${SCRIPTDIR}/config/quickemu/qemu-vfio_vars.conf"
|
||||||
|
@ -139,6 +139,15 @@ NOTE: Some AMD GPUs will require the vendor-reset kernel module from https://git
|
||||||
echo "* $dev"
|
echo "* $dev"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo "
|
||||||
|
To add the graphic card to your VM using qemu directly, use the following arguments:"
|
||||||
|
for dev in "${GPU_PCI_ID[@]}"
|
||||||
|
do
|
||||||
|
|
||||||
|
echo -n "-device vfio-pci,host=$dev "
|
||||||
|
done
|
||||||
|
printf "\n"
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
For performance tuning and advanced configuration look at:
|
For performance tuning and advanced configuration look at:
|
||||||
https://github.com/HikariKnight/vfio-setup-docs/wiki"
|
https://github.com/HikariKnight/vfio-setup-docs/wiki"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue