Debian 11 freezes when Windows 11 host comes out of sleep mode

Discussions about using Linux guests in VirtualBox.

Debian 11 freezes when Windows 11 host comes out of sleep mode

Postby GRG » 21. Sep 2022, 18:32

Hi,

I'm running Debian 11 on Windows 11 host. After waking up Windows 11 host, I can login to Debian 11 but after login I can't click anywhere or type anything. I can see all the program windows in Debian 11 but they don't respond to mouse click or keypress event. It looks like I'm clicking on a invisible glass window in Debian.

Appreciate your help.

Below is the tail of virtual box log-

Code: Select all   Expand viewCollapse view
07:23:45.234274 Audio:   Output channels = 0
07:23:46.419370 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=1920 h=1080 bpp=0 cbLine=0x0 flags=0x2 origin=0,0
07:23:46.433597 Audio: Device configuration of driver 'WasAPI' has changed
07:23:46.439189 Audio: The input device for WasAPI is changing.
07:23:46.439236 Audio: Device configuration of driver 'WasAPI' has changed
07:23:46.532897 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000013300000 w=1920 h=1080 bpp=32 cbLine=0x1E00 flags=0x1 origin=0,0
07:23:46.723166 GUI: UIMachineLogicFullscreen: Guest-screen count changed
07:23:46.723207 GUI: UIMultiScreenLayout::update: GUI/AutomountGuestScreens is disabled
07:23:46.723554 GUI: UIMachineLogic: Guest-screen count changed
07:23:46.766699 GUI: UIMachineViewFullscreen::adjustGuestScreenSize: Adjust guest-screen size if necessary.
07:23:46.771560 GUI: Machine-window #0 activated
07:23:46.776638 GUI: Machine-view #0 focused, reason=3
07:23:46.777308 GUI: Machine-window #0 deactivated
07:23:46.777338 GUI: Releasing mouse on focus out
07:23:46.777700 GUI: Releasing keyboard on focus out
07:23:46.777727 GUI: Machine-view #0 unfocused, reason=3
07:23:46.777841 GUI: Machine-window #0 activated
07:23:46.780177 GUI: Machine-view #0 focused, reason=3
07:23:46.782015 Audio: Found 5 devices for driver 'WasAPI'
07:23:46.782040 Audio: Device 'Speakers/Headphones (Realtek(R) Audio)':
07:23:46.782041 Audio:   ID              = {0.0.0.00000000}.{2788572c-5a88-405c-a801-ef068ddaffd1}
07:23:46.782042 Audio:   Usage           = output
07:23:46.782042 Audio:   Flags           = DEFAULT_OUT
07:23:46.782043 Audio:   Input channels  = 0
07:23:46.782044 Audio:   Output channels = 2
07:23:46.782050 Audio: Device 'Speakers/Headphones (Realtek(R) Audio)':
07:23:46.782051 Audio:   ID              = {0.0.0.00000000}.{2788572c-5a88-405c-a801-ef068ddaffd1}
07:23:46.782052 Audio:   Usage           = output
07:23:46.782052 Audio:   Flags           = NONE
07:23:46.782053 Audio:   Input channels  = 0
07:23:46.782054 Audio:   Output channels = 2
07:23:46.782060 Audio: Device 'Microphone (Streaming Webcam mic)':
07:23:46.782061 Audio:   ID              = {0.0.1.00000000}.{5e459159-f5a2-44f0-bab3-93a35ad4149d}
07:23:46.782061 Audio:   Usage           = input
07:23:46.782062 Audio:   Flags           = DEFAULT_IN
07:23:46.782062 Audio:   Input channels  = 2
07:23:46.782063 Audio:   Output channels = 0
07:23:46.782068 Audio: Device 'Microphone (Streaming Webcam mic)':
07:23:46.782069 Audio:   ID              = {0.0.1.00000000}.{5e459159-f5a2-44f0-bab3-93a35ad4149d}
07:23:46.782070 Audio:   Usage           = input
07:23:46.782070 Audio:   Flags           = NONE
07:23:46.782071 Audio:   Input channels  = 2
07:23:46.782071 Audio:   Output channels = 0
07:23:46.782076 Audio: Device 'Microphone Array (Intel® Smart Sound Technology (Intel® SST))':
07:23:46.782077 Audio:   ID              = {0.0.1.00000000}.{612da687-86db-4a17-8d12-22d1a4676e67}
07:23:46.782078 Audio:   Usage           = input
07:23:46.782078 Audio:   Flags           = NONE
07:23:46.782079 Audio:   Input channels  = 2
07:23:46.782079 Audio:   Output channels = 0
07:23:48.902261 VMMDev: vmmDevHeartbeatFlatlinedTimer: Guest seems to be unresponsive. Last heartbeat received 4 seconds ago
07:23:50.016210 Audio: Device configuration of driver 'WasAPI' has changed
07:23:50.352642 Audio: Found 6 devices for driver 'WasAPI'
07:23:50.352663 Audio: Device 'Speakers/Headphones (Realtek(R) Audio)':
07:23:50.352664 Audio:   ID              = {0.0.0.00000000}.{2788572c-5a88-405c-a801-ef068ddaffd1}
07:23:50.352664 Audio:   Usage           = output
07:23:50.352664 Audio:   Flags           = DEFAULT_OUT
07:23:50.352665 Audio:   Input channels  = 0
07:23:50.352665 Audio:   Output channels = 2
07:23:50.352669 Audio: Device 'Speakers/Headphones (Realtek(R) Audio)':
07:23:50.352669 Audio:   ID              = {0.0.0.00000000}.{2788572c-5a88-405c-a801-ef068ddaffd1}
07:23:50.352670 Audio:   Usage           = output
07:23:50.352670 Audio:   Flags           = NONE
07:23:50.352670 Audio:   Input channels  = 0
07:23:50.352671 Audio:   Output channels = 2
07:23:50.352674 Audio: Device 'DELL U2713HM (Intel(R) Display Audio)':
07:23:50.352674 Audio:   ID              = {0.0.0.00000000}.{f1c8ff0e-d338-45ee-bc3b-9c72d9f757d8}
07:23:50.352674 Audio:   Usage           = output
07:23:50.352675 Audio:   Flags           = NONE
07:23:50.352675 Audio:   Input channels  = 0
07:23:50.352675 Audio:   Output channels = 2
07:23:50.352682 Audio: Device 'Microphone (Streaming Webcam mic)':
07:23:50.352682 Audio:   ID              = {0.0.1.00000000}.{5e459159-f5a2-44f0-bab3-93a35ad4149d}
07:23:50.352683 Audio:   Usage           = input
07:23:50.352683 Audio:   Flags           = DEFAULT_IN
07:23:50.352683 Audio:   Input channels  = 2
07:23:50.352683 Audio:   Output channels = 0
07:23:50.352688 Audio: Device 'Microphone (Streaming Webcam mic)':
07:23:50.352689 Audio:   ID              = {0.0.1.00000000}.{5e459159-f5a2-44f0-bab3-93a35ad4149d}
07:23:50.352689 Audio:   Usage           = input
07:23:50.352689 Audio:   Flags           = NONE
07:23:50.352690 Audio:   Input channels  = 2
07:23:50.352690 Audio:   Output channels = 0
07:23:50.352693 Audio: Device 'Microphone Array (Intel® Smart Sound Technology (Intel® SST))':
07:23:50.352693 Audio:   ID              = {0.0.1.00000000}.{612da687-86db-4a17-8d12-22d1a4676e67}
07:23:50.352694 Audio:   Usage           = input
07:23:50.352694 Audio:   Flags           = NONE
07:23:50.352694 Audio:   Input channels  = 2
07:23:50.352694 Audio:   Output channels = 0
07:23:59.339698 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=1920 h=1080 bpp=0 cbLine=0x0 flags=0x2 origin=0,0
07:23:59.343353 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000012f00000 w=800 h=600 bpp=32 cbLine=0xC80 flags=0x1 origin=0,0
07:23:59.345460 GUI: UIMachineLogicFullscreen: Guest-screen count changed
07:23:59.345482 GUI: UIMultiScreenLayout::update: GUI/AutomountGuestScreens is disabled
07:23:59.345516 GUI: UIMachineLogic: Guest-screen count changed
07:23:59.345531 GUI: UIMachineViewFullscreen::adjustGuestScreenSize: Adjust guest-screen size if necessary.
07:23:59.345536 GUI: UIMachineView::sltPerformGuestResize: Sending guest size-hint to screen 0 as 1920x1080 if necessary
07:23:59.345546 VMMDev: SetVideoModeHint: Got a video mode hint (1920x1080x32)@(0x0),(1;0) at 0
07:23:59.739433 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=800 h=600 bpp=0 cbLine=0x0 flags=0x2 origin=0,0
07:23:59.740079 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000013300000 w=1920 h=1080 bpp=32 cbLine=0x1E00 flags=0x1 origin=0,0
07:23:59.744946 GUI: UIMachineLogicFullscreen: Guest-screen count changed
07:23:59.744973 GUI: UIMultiScreenLayout::update: GUI/AutomountGuestScreens is disabled
07:23:59.745008 GUI: UIMachineLogic: Guest-screen count changed
07:23:59.745023 GUI: UIMachineViewFullscreen::adjustGuestScreenSize: Adjust guest-screen size if necessary.
07:23:59.968100 VMMDev: GuestHeartBeat: Guest is alive (gone 15 065 846 788 ns)
07:24:05.508775 GUI: Machine-window #0 deactivated
07:24:05.508801 GUI: Releasing mouse on focus out
07:24:05.508825 GUI: Releasing keyboard on focus out
07:24:05.509002 GUI: Machine-view #0 unfocused, reason=3
07:24:06.529671 GUI: Machine-window #0 activated
07:24:06.529748 GUI: Capturing keyboard on focus in
07:24:06.529767 GUI: Machine-view #0 focused, reason=3
07:24:08.630272 GUI: Machine-window #0 deactivated
07:24:08.630296 GUI: Releasing mouse on focus out
07:24:08.630307 GUI: Releasing keyboard on focus out
07:24:08.630316 GUI: Machine-view #0 unfocused, reason=3
07:24:14.232794 GUI: Machine-window #0 activated
07:24:14.232881 GUI: Capturing keyboard on focus in
07:24:14.232909 GUI: Machine-view #0 focused, reason=3
07:24:17.254384 GUI: Machine-window #0 deactivated
07:24:17.254402 GUI: Releasing mouse on focus out
07:24:17.254419 GUI: Releasing keyboard on focus out
07:24:17.254430 GUI: Machine-view #0 unfocused, reason=3
07:24:17.385248 GUI: Machine-window #0 activated
07:24:17.385283 GUI: Capturing keyboard on focus in
07:24:17.385301 GUI: Machine-view #0 focused, reason=3
07:24:18.758846 GUI: Machine-window #0 deactivated
07:24:18.758869 GUI: Releasing mouse on focus out
07:24:18.758912 GUI: Releasing keyboard on focus out
07:24:18.758926 GUI: Machine-view #0 unfocused, reason=3
Last edited by mpack on 21. Sep 2022, 18:39, edited 1 time in total.
Reason: Add code brackets.
GRG
 
Posts: 3
Joined: 21. Sep 2022, 18:24

Re: Debian 11 freezes when Windows 11 host comes out of sleep mode

Postby mpack » 21. Sep 2022, 18:38

Bits of logs sprayed over the forums are not useful. We need the whole thing, as an attachment.

Make sure the VM is fully shut down, then right click it in the manager UI. Select "Show Log" and save "VBox.log" (no other file) to a zip file. Attach the zip here.
mpack
Site Moderator
 
Posts: 37481
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Debian 11 freezes when Windows 11 host comes out of sleep mode

Postby GRG » 23. Sep 2022, 17:46

Thanks for your response. I have attached the Virtual Box log as you said.
Attachments
VBox.zip
Virtual Box Log
(47.57 KiB) Downloaded 6 times
GRG
 
Posts: 3
Joined: 21. Sep 2022, 18:24

Re: Debian 11 freezes when Windows 11 host comes out of sleep mode

Postby mpack » 23. Sep 2022, 18:11

There are several things I don't like about the configuration of this VM.

  1. You have allocated 6 cores, which is 100% of available cores, to guest code, leaving none for VirtualBox or the host OS. It should be obvious that this is not a good idea. Most VMs run best with 2 cores. At most you should give it 4 cores IF you have a process running in the VM that needs multiple cores.
  2. You have only allocated 80MB graphics RAM, why so stingy? I would max this out at 128MB.
  3. You are running in a full HD graphics mode without enabling hardware assistance (a.k.a. 3D acceleration). Again this is not usually a good idea.
  4. You have allocated ~20GB of RAM to the VM (the host has 25GB available), does it really need this much? An excessive RAM allocation can especially cause problems if you have a habit of hibernating your PC, as all that RAM needs to be saved to and restored from disk. Even on an NVMe SSD with an I/O rate of 3GB/s, that is still several seconds.
There are also warnings in the log having to do with the VM being very laggy, failing to respond for extended periods. A fairer allocation of CPU resources might help with that.

I don't immediately see anything that should result in a hang, but note that Windows 11 is still not yet an officially supported host OS.
mpack
Site Moderator
 
Posts: 37481
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Debian 11 freezes when Windows 11 host comes out of sleep mode

Postby GRG » 24. Sep 2022, 15:12

Thank you for the response.
1. I have allocated 6 virtual cores out of 12 virtual cores to the VM, which mean I have allocated 50% of processing power to the VM. My machines has 6 physical cores and 12 virtual cores and virtual box only let me allocate virtual cores to VM. To be honest processing wise this combination is working well given I do some processor heavy dev work on virtual machine.
2. I'll allocate 128MB graphics RAM.
3. I'll enable 3D acceleration.
4. My host has 32 GB memory and I have allocated 20 GB to VM, leaving out 12 GB for the host.

Ah I was not aware that Windows 11 still not supported. I did not face problem in my initial setup of Windows 10 Pro Host and Debian 10. In my current setup of Windows 11 Pro + Debian 11, I'm trying to understand if Windows 11 Pro or Debian 11 is causing the freezing issue. I'll report back if above changes help or I found something interested in Debian log.
GRG
 
Posts: 3
Joined: 21. Sep 2022, 18:24

Re: Debian 11 freezes when Windows 11 host comes out of sleep mode

Postby fth0 » 24. Sep 2022, 16:32

GRG wrote:I have allocated 6 virtual cores out of 12 virtual cores to the VM, which mean I have allocated 50% of processing power to the VM.

Let me give you a third opinion on that (partially backed by Intel ;)):

From my POV, it can (*) be ok to provide 6 vCPUs to the VM, if the host CPU only runs the VirtualBox hypervisor and the VM (and a bit of host OS housekeeping). But your math is wrong: According to Intel - What Is Hyper-Threading?, "Hyper-Threading improves the CPU throughput by up to 30% in server applications". This means that you provide ~75% to the VM and leave ~25% for the VirtualBox hypervisor and the host OS.

(*) An additional role plays the workload of the VM. If it is CPU bound, it will probably be ok, but if it is I/O bound, it could be different. When in doubt, I'd suggest to measure real world workloads with a clock.
fth0
Volunteer
 
Posts: 4149
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...

Re: Debian 11 freezes when Windows 11 host comes out of sleep mode

Postby mpack » 24. Sep 2022, 17:46

GRG wrote:virtual cores

Core means physical silicon, so "virtual core" is a contradiction in terms.

Only the cores matter, not the threads. FAQ: Cores vs Threads.

GRG wrote:4. My host has 32 GB memory and I have allocated 20 GB to VM, leaving out 12 GB for the host.

It doesn't matter how much RAM you have installed. What matters is how much is currently available, this info can be found in the log near the top.
mpack
Site Moderator
 
Posts: 37481
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP


Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 11 guests