From 519e9aafaaf27864defc662c28f279bf128cf8d4 Mon Sep 17 00:00:00 2001 From: Joe Knockenhauer Date: Sat, 4 May 2019 13:02:32 +0000 Subject: [PATCH] Updated for GDM GDM doesn't destroy user sessions when the service is stopped or killed. using ````killall gdm-x-session```` will do this, allowing for the script to properly unbind everything. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index bf67928..f517a72 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,8 @@ I've made my start script ```/etc/libvirt/hooks/qemu.d/{VMName}/prepare/begin/st # Stop display manager systemctl stop display-manager.service +## Uncomment the following line if you use GDM +#killall gdm-x-session # Unbind VTconsoles echo 0 > /sys/class/vtconsole/vtcon0/bind @@ -201,6 +203,8 @@ modprobe vfio-pci sleep 1 ``` +NOTE: Gnome/GDM users. You have to uncommment the line ````killall gdm-x-session```` in order for the script to work properly. Killing GDM does not destroy all users sessions like other display managers do. + ### VM Stop script My stop script is ```/etc/libvirt/hooks/qemu.d/{VMName}/release/end/revert.sh```