Skip to content

Commit 1cb8555

Browse files
authored
fix(just): add libvirt package to setup-virtualization (ublue-os#1549)
* fix: add libvirt package into install upstream removed libvirt as a dependency for virt-manager * chore: update information text about VFIO
1 parent 5400fed commit 1cb8555

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

system_files/desktop/shared/usr/share/ublue-os/just/84-bazzite-virt.just

+13-4
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ setup-virtualization ACTION="":
4343
if [[ "${OPTION,,}" =~ (^enable[[:space:]]virtualization|virt-on) ]]; then
4444
if ! rpm -q virt-manager | grep -P "^virt-manager-" 1>/dev/null; then
4545
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
4747
rpm-ostree kargs \
4848
--append-if-missing="kvm.ignore_msrs=1" \
4949
--append-if-missing="kvm.report_ignored_msrs=0"
@@ -61,7 +61,7 @@ setup-virtualization ACTION="":
6161
sudo systemctl disable --now bazzite-libvirtd-setup.service 2> /dev/null
6262
fi
6363
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
6565
rpm-ostree kargs \
6666
--delete-if-present="kvm.ignore_msrs=1" \
6767
--delete-if-present="kvm.report_ignored_msrs=0"
@@ -95,9 +95,18 @@ setup-virtualization ACTION="":
9595
--append-if-missing="vfio_pci.disable_vga=1"
9696
echo "VFIO will be enabled on next boot, make sure you enable IOMMU, VT-d or AMD-v in your BIOS!"
9797
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"
99101
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}"
101110
fi
102111
fi
103112
elif [[ "${OPTION,,}" =~ (^disable[[:space:]]vfio|vfio-off) ]]; then

0 commit comments

Comments
 (0)