...
 
......@@ -168,3 +168,62 @@ index c29226b..1c70f73 100644
--
2.24.1
From 4755da3b85dba0457102335c12a60f4a0439aa9c Mon Sep 17 00:00:00 2001
From: TotallyNotElite <[email protected]>
Date: Sat, 11 Jan 2020 14:53:28 +0100
Subject: [video-virtualmachine] Add spice (qemu, kvm) (virt
manager, gnome boxes) support
---
.../video-virtualmachine/MHWDCONFIG | 22 ++++++++++++-------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/pci/graphic_drivers/video-virtualmachine/MHWDCONFIG b/pci/graphic_drivers/video-virtualmachine/MHWDCONFIG
index 1c70f73..6b41772 100644
--- a/pci/graphic_drivers/video-virtualmachine/MHWDCONFIG
+++ b/pci/graphic_drivers/video-virtualmachine/MHWDCONFIG
@@ -8,11 +8,12 @@ PRIORITY="2"
CLASSIDS="0300"
# Virtualbox version 6.0 uses VMSVGA on Linux guests by default, which has VMWare's VENDORID.
-VENDORIDS="80ee 15AD"
+# VENDOR VMWare=80ee Virtualbox=15AD Redhat(QXL)=1af4 Redhat(VirtIO)=1b36
+VENDORIDS="80ee 15AD 1af4 1b36"
DEVICEIDS="*"
# Dependencies, gtkmm3 is needed to enable copy/paste support with vmware
-DEPENDS="virtualbox-guest-utils xf86-video-vmware open-vm-tools xf86-input-vmmouse"
+DEPENDS="virtualbox-guest-utils xf86-video-vmware open-vm-tools xf86-input-vmmouse spice-vdagent"
OPTREMDEPENDS="gtkmm3"
DEPKMOD="virtualbox-guest-modules"
@@ -52,14 +53,19 @@ post_install()
fi
# We have to make /dev/vboxuser read-write, otherwise VBoxClient won't be able to connect. This is not done automatically until the next reboot.
chmod 666 /dev/vboxuser
- elif [[ "$(systemd-detect-virt)" == "vmware" ]]; then
- # Vmware detected
-
- # Remove VBOX-Client when running on VMWare
+ else
+ # Remove VBox-Client desktop file when not running in virtualbox
rm -f "/etc/xdg/autostart/vboxclient.desktop"
- if [[ ! -d /run/openrc ]]; then
- systemctl enable --now vmtoolsd.service
+ if [[ "$(systemd-detect-virt)" == "vmware" ]]; then
+ # Vmware detected
+
+ if [[ ! -d /run/openrc ]]; then
+ systemctl enable --now vmtoolsd.service
+ fi
+ else
+ # Not virtualbox or vmware. Start spice-vdagentd.socket to auto detect if spice is in use. Otherwise, do nothing.
+ systemctl start spice-vdagentd.socket
fi
fi
}
--
2.24.1