@@ -43,7 +43,7 @@ setup-virtualization ACTION="":
43
43
if [[ "${OPTION,,}" =~ (^enable[[ :space:]]virtualization|virt-on) ]]; then
44
44
if ! rpm -q virt-manager | grep -P "^virt-manager-" 1>/dev/null; then
45
45
echo "Installing QEMU and virt-manager..."
46
- rpm-ostree install -y virt-manager edk2-ovmf qemu
46
+ rpm-ostree install -y virt-manager edk2-ovmf qemu libvirt
47
47
rpm-ostree kargs \
48
48
--append-if-missing="kvm.ignore_msrs =1" \
49
49
--append-if-missing="kvm.report_ignored_msrs=0"
@@ -61,7 +61,7 @@ setup-virtualization ACTION="":
61
61
sudo systemctl disable --now bazzite-libvirtd-setup.service 2> /dev/null
62
62
fi
63
63
echo "Removing QEMU and virt-manager..."
64
- rpm-ostree remove -y virt-manager edk2-ovmf qemu
64
+ rpm-ostree remove -y virt-manager edk2-ovmf qemu libvirt
65
65
rpm-ostree kargs \
66
66
--delete-if-present="kvm.ignore_msrs =1" \
67
67
--delete-if-present="kvm.report_ignored_msrs=0"
@@ -95,9 +95,18 @@ setup-virtualization ACTION="":
95
95
--append-if-missing="vfio_pci.disable_vga=1"
96
96
echo "VFIO will be enabled on next boot, make sure you enable IOMMU, VT-d or AMD-v in your BIOS!"
97
97
echo "Please understand that since this is such a niche use case, support will be very limited!"
98
- echo "To add your unused/second GPU device ids to the vfio driver by running"
98
+ echo ""
99
+ echo "${b}Systems with multiple GPUs${n}"
100
+ echo "Bind your unused/second GPU device ids to the vfio driver by running"
99
101
echo 'rpm-ostree kargs --append-if-missing="vfio-pci.ids=xxxx :yyyy,xxxx:yyzz"'
100
- echo "NOTE : Your second GPU will not be usable by the host after you do this!"
102
+ echo "You will require a $(Urllink "https ://www.amazon.com/s?k=hdmi+displayport+dummy+plug" "Dummy HDMI/DisplayPort plug (Ghost Adapter)") or hook the GPU"
103
+ echo "to a separate monitor input in order to turn the GPU on when starting the VM."
104
+ echo "NOTE : Your second GPU will not be usable by the host after you bind it to the vfio driver!"
105
+ echo ""
106
+ echo "${b}Systems with 1 GPU${n}"
107
+ echo "Once rebooted you can continue setting up whatever scripts and hooks you need"
108
+ echo "to get Single GPU passthrough working, however ${u}you will be on your own${n}."
109
+ echo "${b}Do not ask for support for setting up Single GPU Passthrough, we can not help you!${n}"
101
110
fi
102
111
fi
103
112
elif [[ "${OPTION,,}" =~ (^disable[[ :space:]]vfio|vfio-off) ]]; then
0 commit comments