Switch between GUI Ctrl+Alt+F7 - Keyboard locked?

Greetings!

This an openSuse Leap-15.3 installation.
I’m running KVM on server ‘KVM1’ with KVM-guest ‘MAG1’.

GDM is the display-manager on KVM1.

To have the guest GUI available I’m using XDMCP and start the guest GUI with

nohup /usr/bin/Xorg :8.0 vt8 -query MAG1

Switchung between KVM1 server GUI and guest GUI is done with
Ctrl + Alt + F7 and Ctrl + Alt + F8
Works as requred.

However

after running

ssh wg@KVM1 'sudo /root/remountUSB.sh'

on MAG1 guest several times I cannot switch to KVM1 server.

/root/remountUSB.sh:

#!/bin/bash
/usr/bin/virsh detach-device MAG1 /root/$USB_MODEM.xml
/usr/bin/virsh attach-device MAG1 /root/$USB_MODEM.xml

The guest MAG1 is still running ok.

I can reach KVM1 server via

ssh **root**@KVM1

the prompt and password dialog appears as expected.
It however takes about 3min to get the KVM1 server root prompt.

If I

ssh **wg**@KVM1

the KVM1 server prompt returns immediately.

Running

systemctl restart display-manager

on KVM1 hangs

Xorg logfile:

  1846.622] 
X.Org X Server 1.20.3
X Protocol Version 11, Revision 0
  1846.622] Build Operating System: openSUSE SUSE LINUX
  1846.622] Current Operating System: Linux KVM1 5.3.18-59.37-default #1 SMP Mon Nov 22 12:29:04 UTC 2021 (d10168e) x86_64
  1846.622] Kernel command line: BOOT_IMAGE=/vmlinuz-5.3.18-59.37-default root=UUID=dbc2294b-2bc5-405f-acaa-3ee02d4313de splash=silent nomodeset resume=/dev/disk/by-label/SWAP quiet mitigations=auto
  1846.622] Build Date: 14 June 2021  12:00:00PM
  1846.622]  
...
... cut away - how to upload longer text???
...
 14234.019] (II) event4  - Power Button: is tagged by udev as: Keyboard
 14234.019] (II) event4  - Power Button: device is a keyboard
 14234.020] (II) event0  - CHESEN PS2 to USB Converter: is tagged by udev as: Keyboard
 14234.020] (II) event0  - CHESEN PS2 to USB Converter: device is a keyboard
 14234.022] (II) event1  - CHESEN PS2 to USB Converter Mouse: is tagged by udev as: Mouse
 14234.023] (II) event1  - CHESEN PS2 to USB Converter Mouse: device is a pointer
 14234.023] (II) event2  - CHESEN PS2 to USB Converter System Control: is tagged by udev as: Keyboard
 14234.023] (II) event2  - CHESEN PS2 to USB Converter System Control: device is a keyboard
 14234.024] (II) event3  - CHESEN PS2 to USB Converter Consumer Control: is tagged by udev as: Keyboard
 14234.024] (II) event3  - CHESEN PS2 to USB Converter Consumer Control: device is a keyboard
 14242.275] (II) event4  - Power Button: device removed
 14242.288] (II) event0  - CHESEN PS2 to USB Converter: device removed
 14242.304] (II) event1  - CHESEN PS2 to USB Converter Mouse: device removed
 14242.336] (II) event2  - CHESEN PS2 to USB Converter System Control: device removed
 14242.352] (II) event3  - CHESEN PS2 to USB Converter Consumer Control: device removed
 14246.834] (II) event4  - Power Button: is tagged by udev as: Keyboard
 14246.834] (II) event4  - Power Button: device is a keyboard
 14246.835] (II) event0  - CHESEN PS2 to USB Converter: is tagged by udev as: Keyboard
 14246.835] (II) event0  - CHESEN PS2 to USB Converter: device is a keyboard
 14246.835] (II) event1  - CHESEN PS2 to USB Converter Mouse: is tagged by udev as: Mouse
 14246.835] (II) event1  - CHESEN PS2 to USB Converter Mouse: device is a pointer
 14246.838] (II) event2  - CHESEN PS2 to USB Converter System Control: is tagged by udev as: Keyboard
 14246.838] (II) event2  - CHESEN PS2 to USB Converter System Control: device is a keyboard
 14246.838] (II) event3  - CHESEN PS2 to USB Converter Consumer Control: is tagged by udev as: Keyboard
 14246.838] (II) event3  - CHESEN PS2 to USB Converter Consumer Control: device is a keyboard

The above configuration is running on OpenSuse-Leap-42.3 sinvce several years and I’ve never seen such an issue.

The problem might be related with the remote sudo command…

I ver much appreciate any hint where to search for the reason of this issue.

Thanks for reading.

Fresh OS install?

Yes, the KVM server is a new install.

It appears that the remote call to /root/remountUSB.sh is causing the trounble.

Havent had time yet to investigae closer.

Isn’t this a Virtualization question?

OK, moving to virtualization

Thanks for reading and comments.

I interpreted this as a request for moving, which I did.