Skip to content

Commit

Permalink
feat: Looking glass shm OOB auto generation and support (#424)
Browse files Browse the repository at this point in the history
* feat: add support for default looking-glass shm file

* feat: add command to add selinux file context for looking-glass shm

* fix: add better description to the just command

* fix: correct vfio.pci.disable_vga=1 to vfio_pci.disable_vga=1
  • Loading branch information
HikariKnight committed Oct 13, 2023
1 parent 24b3a66 commit 1682676
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
@@ -0,0 +1,2 @@
# Type Path Mode UID GID Age Argument
f /dev/shm/looking-glass 0660 1000 qemu -
Expand Up @@ -292,7 +292,7 @@ enable-vfio:
--append-if-missing="${VENDOR_KARG}" \
--append-if-missing="iommu=pt" \
--append-if-missing="rd.driver.pre=vfio_pci" \
--append-if-missing="vfio.pci.disable_vga=1"
--append-if-missing="vfio_pci.disable_vga=1"
echo "VFIO enabled, make sure you enable IOMMU, VT-d or AMD-v in your BIOS!"
echo "Please understand that since this is such a niche use case, support will be very limited!"
echo "To add your unused/second GPU device ids to the vfio driver by running"
Expand Down Expand Up @@ -326,3 +326,7 @@ disable-watchdog:
WATCHDOG_KARGS="$WATCHDOG_KARGS --append-if-missing=modprobe.blacklist=sp5100_tco"
fi
rpm-ostree kargs $WATCHDOG_KARGS

# Add SELinux file context for default looking-glass shm file so that libvirt can create it when needed
selinux-looking-glass:
sudo semanage fcontext -a -t svirt_tmpfs_t /dev/shm/looking-glass

0 comments on commit 1682676

Please sign in to comment.