VirtualBox AHCI #274
VirtualBox AHCI #274
Comments
Something needs to be done. Considering options... Would IDE introduce any issues? Would SAS introduce any issues? How compatible is it with other guest operating systems such as Windows? That would be interesting for Whonix-Custom-Workstation (an empty disk VM, where the user just needs to install its operating system as per https://www.whonix.org/wiki/Other_Operating_Systems). |
Upstream bug report: |
That is the point, SATA AHCI used to crash after few hours and lagging constantly my hardware, after changing to SAS i had no issue, its been working 19+ hours. With AHCI i used to find on the VirtualBox console the status of the workstation as "Aborted", you know, you leave the bitcoin client working at night, you wake up and instead of a finished blockchain you have a crashed virtual machine. |
Quotes from VBox manual (https://www.virtualbox.org/manual/ch05.html):
So let's not use IDE.
What could be of concern for Whonix-Custom-Workstation (an empty VM one can import and manually install a operating system oneself) is this notice about compatibility.
Since Windows XP is deprecated anyway, those wanting to use it, we can tell them to continue using manual VM creation steps as per: |
Unless there are good arguments, we'll be using SAS for Whonix 9. |
As for windows SAS support, windows server 2003 has native support for Lsi Logic chipsets, and Windows Server 2K3 was running around the same time as XP, and if somebody wants to add SAS support to XP they can always add the drivers to the installation through a custom windows ISO. The problem i had was with linux whonix VM's and what i basically did, was removing the virtual SATA controller, and add a SAS controller, and the import the virtual disk, that was being used before as SATA. Easy workaround, 0 headaches. |
Looks like we need to revert this. Switching to SAS created a new issue. Experiences this myself in 8.6.6.7:
It's a long standing issue: Any other suggestions about controllers that actually do work? |
Happened just one for me when I was starting Whonix-Gateway 8.6.6.7 for the first time while at the same time importing Whonix-Workstation 8.6.6.7. So this happened while the host hdd was under high load. Since it was only those kernel messages, no other ill effects, and very few bug reports about this on the web, I guess we can keep this for Whonix 9. |
I have another suggestion if this happens again, disable I/0 APIC. VirtualBox says that it might decrease performance if its turned on, by default the VM uses 1 core, and its a 32 bit guest operative, system, I/O APIC is good on multi-processor setups and 64 bit guests OS, WHONIX is a 32 bit guest OS, and i don't use more than 1 core for it, at least in my case. I don't know what is the main use when people use WHONIX, but anonymity, doesn't require 4 or 8 cores, WHONIX its limited because its a 32 bit OS so there shouldn't be much of a issue. |
Disabling I/0 APIC didn't help. Same issue. |
What hard drives are you using on the host system ? This looks like an I/O overflow to me. And it might not be the emulation system, but the host system hardware failure. Could be anything some weird firmware causing this or who knows. |
Got a ssd drive on the host. No issues on the host otherwise. |
Closed until we get more info/things to try. |
Any update? |
I have very similar problem - https://www.virtualbox.org/ticket/19429 |
There is a bug with the SATA AHCI driver that seems to fail under high I/O like when for example the bitcoin client is running, and freezes the computer constantly during its process and then crashing the virtual machine. I recommend switching to the driver on the workstation (the only one under high load) to SAS or IDE. No problem detected using the SAS driver, workstation on for 19+ hours.
This is the bug and there doesn't seem to be a better a fix from VirtualBox
!!Assertion Failed!!
Expression: !ASMAtomicReadU32(&pAhciPort->cTasksActive) || (pAhciReqExcept && ASMAtomicReadU32(&pAhciPort->cTasksActive) == 1)
Location : /home/vbox/vbox-4.3.14/src/VBox/Devices/Storage/DevAHCI.cpp(5689) bool ahciCancelActiveTasks(PAHCIPort, PAHCIREQ)
The text was updated successfully, but these errors were encountered: