Whonix freezes host

Hello,

I am running Kubuntu 21.04, and the latest official version of virtualbox and whonix as of wrting.

This issue has been occuring the past 2 months or so, and I’ve been trying to diagnose it myself but when I have both the gateway and workstation (gateway-cli and workstation-xfce) running, it seems anywhere from 5 mins to an hour after launch and it’ll freeze the host. The mouse moves, but nothing is responsive within the vm, or host. I’ve let it sit for upwards to 30 minutes before and it never resumed. I’ve got swap disabled on my host, i did enable it for testing with no luck. Both gateway and workstation have 2GB ram allowed by virtualbox. I’ve tried with all default settings, then again with my custom settings. I’ve tried using on different hdd’s, and ssd’s. This January 2021, i switched to a new computer where I started sometime after notcing this where it didn’t occur on my last pc, however I’m not sure if this is just a conicidence or not, can’t test it now. My pc, if it helps is a Lenovo Legion 15-ARH05 released around mid 2020.

This issue doesn’t occur when using a windows 10 vm, which i’ve used for 3 hours straight for testing. So I do not believe it is over using system resources or a virtualbox bug.

I do not know how to check dmsg for any issues as they seem to get erased or reset every restart of linux, and I can’t check it when the host locks up on me (When it does a hard shutdown is needed).

Anyway to figure out whats going on?

Thank you

See these:

random guess:

I have looked at the troubleshooting guides before with no luck.

As for the reccomended version, I missed that. However when trying to downgrade from 6.1.22 to 6.1.20, when starting vm on 6.1.20 it results in an error:

Failed to open a session for the virtual machine Whonix-Gateway.

The VM session was aborted.

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: SessionMachine
Interface: ISession {c0447716-ff5a-4795-b57a-ecd5fffa18a4}

Is there a special way to downgrade?

I have the official virtualbox repo added to my sources. So what I did was kept the source for now, uninstalled virtualbox-6.1 (sudo apt purge virtualbox-6.1), downloaded the package for ubuntu from virtualbox download section for older builds, as well as extension pack. Installed the deb (sudo dpkg -i virtualbox-6.1_6.1.20-143896~Ubuntu~eoan_amd64.deb) and extension pack (sudo vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.20.vbox-extpack). Then comment out the line in Virtualbox.list to prevent apt from updating it.

This error occurs for each attempted start of gateway and workstation.

In case it comes up, I do have AMD SVM Virtualization Technology enabled in BIOS, as well as secure boot disabled.booted in UEFI mode.

Well, after some further testing I managed to get it booted (on recomended virtualbox version 6.1.20) by switching both gateway and workstation storage types (storage controller) to AHCI from LsiLogic SAS.

The issue still persist, after about 15 minutes or so the host entirely froze again and a hard reboot was requried. First thing I did afterwards was grab the full log from each vm and saved them. They contain certain sensitive things in them so I will post the last bit in log which seems to resemble an error that might reflect it.

00:00:36.397568 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:00:36.397590 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:36.397799 VMMDev: Guest Log: 05:55:32.706906 main vbglR3GuestCtrlDetectPeekGetCancelSupport: Supported (#1)
00:00:36.397989 Guest Control: GUEST_MSG_REPORT_FEATURES: 0x7, 0x8000000000000000
00:00:36.405342 VMMDev: Guest Log: 05:55:32.714388 timesync Error: vgsvcTimeSyncWorker: VbglR3GetHostTime failed; rc2=VERR_NOT_SUPPORTED
00:00:36.409631 GUI: UISession::sltAdditionsChange: GA state really changed, notifying listeners
00:00:36.409657 GUI: UIMachineViewNormal::adjustGuestScreenSize: Adjust guest-screen size if necessary
00:00:36.409684 GUI: UIMachineView::sltPerformGuestResize: Sending guest size-hint to screen 0 as 1024x768 if necessary
00:00:36.409698 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:00:36.409703 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:46.410513 VMMDev: Guest Log: 05:55:42.714600 timesync Error: vgsvcTimeSyncWorker: VbglR3GetHostTime failed; rc2=VERR_NOT_SUPPORTED
00:00:56.420499 VMMDev: Guest Log: 05:55:52.719582 timesync Error: vgsvcTimeSyncWorker: VbglR3GetHostTime failed; rc2=VERR_NOT_SUPPORTED
00:01:06.425854 VMMDev: Guest Log: 05:56:02.720015 timesync Error: vgsvcTimeSyncWorker: VbglR3GetHostTime failed; rc2=VERR_NOT_SUPPORTED
00:01:16.431222 VMMDev: Guest Log: 05:56:12.720444 timesync Error: vgsvcTimeSyncWorker: VbglR3GetHostTime failed; rc2=VERR_NOT_SUPPORTED
00:01:26.469384 VMMDev: Guest Log: 05:56:22.753518 timesync Error: vgsvcTimeSyncWorker: VbglR3GetHostTime failed; rc2=VERR_NOT_SUPPORTED
00:01:36.474789 VMMDev: Guest Log: 05:56:32.753963 timesync Error: vgsvcTimeSyncWorker: VbglR3GetHostTime failed; rc2=VERR_NOT_SUPPORTED
00:01:46.480130 VMMDev: Guest Log: 05:56:42.754371 timesync Error: vgsvcTimeSyncWorker: VbglR3GetHostTime failed; rc2=VERR_NOT_SUPPORTED
00:01:56.486240 VMMDev: Guest Log: 05:56:52.755445 timesync Error: vgsvcTimeSyncWorker: VbglR3GetHostTime failed; rc2=VERR_NOT_SUPPORTED
00:02:06.491450 VMMDev: Guest Log: 05:57:02.755731 timesync Error: vgsvcTimeSyncWorker: VbglR3GetHostTime failed; rc2=VERR_NOT_SUPPORTED

Kicksecure ™ in VirtualBox - Troubleshooting - Kicksecure ™ does not Start?

Kicksecure ™ in VirtualBox - Troubleshooting - Kicksecure ™ does not Start? applies. Which says

Same as below Aborted Status.

If step 1. and 2. listed there don’t help, the only option remains is 3.