mirror of
https://github.com/joeknock90/Single-GPU-Passthrough.git
synced 2026-10-12 02:16:50 +00:00
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.
This commit is contained in:
@@ -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```
|
||||
|
||||
Reference in New Issue
Block a user