Bug 1132941

Summary: TW 20190418 VirtualBox: Windows 7 Guest BSOD with "The BIOS in this system is not fully ACPI compliant"
Product: [openSUSE] openSUSE Tumbleweed Reporter: Tseng Wynn <wynn1212>
Component: Virtualization:OtherAssignee: Larry Finger <Larry.Finger>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: dommason, doug.jaquays, email, heitorcmj, ingo.goeppert+suse, maik.h, nt1277, opensuse, open_suse, pepesanza, timothyadams
Version: Current   
Target Milestone: ---   
Hardware: PC   
OS: openSUSE Factory   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Tseng Wynn 2019-04-20 12:40:32 UTC
After upgrade to 20190418. I found out I can't start my Virtualbox Windows 7 guest vm anymore. It BSOD and show "The BIOS in this system is not fully ACPI compliant"

The issue might related to this virtualbox forums: https://forums.virtualbox.org/viewtopic.php?f=7&t=92709

VirtualBox Version: 6.0.4_SUSE r128164
OpenSUSE Tumbleweed Snapshot: 20190418
Kernel Version: 5.0.8-1-default

Package information about virtualbox via "zypper if"

linux-dffr:~ # zypper if virtualbox
Loading repository data...
Reading installed packages...


Information for package virtualbox:
-----------------------------------
Repository     : 主要套件庫 (OSS)         
Name           : virtualbox               
Version        : 6.0.4-3.3                
Arch           : x86_64                   
Vendor         : openSUSE                 
Installed Size : 38.6 MiB                 
Installed      : Yes                      
Status         : up-to-date               
Source package : virtualbox-6.0.4-3.3.src 
Summary        : VirtualBox is an Emulator
Description    :                          
    VirtualBox is a hosted hypervisor for x86 computers. It supports the
    creation and management of guest virtual machines running versions
    and derivations of Windows, Linux, BSD, OS/2, Solaris, Haiku, OSx86
    and others, and limited virtualization of macOS guests on Apple
    hardware. VirtualBox is freely available as Open Source Software under
    the terms of the GNU Public License (GPL).
Comment 1 Dominic Mason 2019-04-22 08:13:21 UTC
Confirmed 

See https://bugzilla.opensuse.org/show_bug.cgi?id=113295 which I probably wrote whilst this report was being posted

The arch tracker bug report says it is a problem because of this:

" iasl from acpica 20190329-1 miscompiles ACPI tables of VirtualBox. Building with older acpica fixes the issue"

"https://bugs.archlinux.org/task/62381#comment178770"
Comment 2 Dominic Mason 2019-04-22 08:16:08 UTC
*** Bug 1132951 has been marked as a duplicate of this bug. ***
Comment 3 Dominic Mason 2019-04-22 08:32:12 UTC
(In reply to Dominic Mason from comment #1)

> See https://bugzilla.opensuse.org/show_bug.cgi?id=113295 which I probably
> wrote whilst this report was being posted


sorry, that should have been 1132951

 https://bugzilla.opensuse.org/show_bug.cgi?id=1132951
Comment 4 Larry Finger 2019-04-22 15:58:18 UTC
The upstream acpica project is aware of the problem (https://github.com/acpica/acpica/issues/462) and is working on the issue as of 3 days ago.
Comment 5 Larry Finger 2019-04-23 13:44:59 UTC
A patch to the iASL component of acpica has been published. I used it to generate a new RPM for VirtualBox. Only one of the packages is affected. To use this updated code before the revised acpica package reaches TW, stop the VB GUI and run the following commands:

wget http://lwfinger.com/download/virtualbox-6.0.6-0.x86_64.rpm
sudo zypper in --force virtualbox-6.0.6-0.x86_64.rpm

The new new package is not signed, thus ignore the warning that pops up.
Comment 6 Dominic Mason 2019-04-23 18:44:40 UTC
Hi Larry

Thanks for sorting out a virtualbox rpm for 6.0.6

(which is what all the arch users were having this problem with)

The problem with OpenSUSE Tumbleweed is appears to have started with version 6.0.4-3.3

(I'm pretty sure 6.0.4-3.1 did not have this problem)

Will your 6.0.6 rpm work with the other TW packages which are all for 6.0.4? 

sudo zypper info virtualbox
Information for package virtualbox:
-----------------------------------
Repository     : openSUSE-Tumbleweed-Oss  
Name           : virtualbox               
Version        : 6.0.4-3.3                
Arch           : x86_64                   
Vendor         : openSUSE                 
Installed Size : 38.6 MiB                 
Installed      : Yes                      
Status         : up-to-date               
Source package : virtualbox-6.0.4-3.3.src 
Summary        : VirtualBox is an Emulator



Sorry to be a pain, I know the reference bug on Arch Linux are for 6.0.6 

So it looks like Arch is ahead on TW on VirtualBox versions, but Tumbleweed is building earlier releases with later tools.


I note that the latest version in Oracle's own VirtualBox repo is 6.0.6, too


Regards
Comment 7 Larry Finger 2019-04-24 02:12:13 UTC
You have s slight misunderstanding. The bug is NOT in VirtualBox, but in iASL - a BIOS compiler used to build VirtualBox.

Unfortunately, I cannot back out of v6.0.6 in order to generate a fixed version of 6.9.4; however if you add https://build.opensuse.org/package/binaries/home:lwfinger:branches:openSUSE:Factory/virtualbox/openSUSE_Factory as a new repository and update the VB packages from it, and then use the commands in Comment #5, you will get a working version. Yes, it is a bit of a pain.

I have no idea what version of iASL is being used by Oracle. Their version might work, and if might not.
Comment 8 Larry Finger 2019-04-26 16:15:41 UTC
I have an update. As discussed in https://build.opensuse.org/request/show/697900, the openSUSE maintainer of acpica is unwilling to accept the patch that I tested. He will be waiting for the upstream maintainer to complete all of his tests to verify the patch. Of course, that ignores the fact the the test suite completely missed the introduction of the bug! :)

Until those tests are completed, and any fixes are done upstream, booting of Windows 7 VMs will continue to fail UNLESS you follow the prescription of comment 5. If you have Win 7 VMs and the above fails, then please notify me through this bug report.
Comment 9 Jose Sanz 2019-04-26 22:07:28 UTC
Larry: I can confirm that your solution of comments 7 & 5 works flawlessly.
As far as the maintainer aptitude, I am going to keep my opinion private. 
Thank you so much for your great help with this issue, truly appreciated.
Comment 10 Tamás Németh 2019-04-30 08:40:59 UTC
Thanks Larry, your build of VirtualBox 6.0.6 works perfectly for me too. Since you haven't built the virtualbox-host-kmp and virtualbox-qt packages, I used the official 6.0.4 versions from Tumbleweed, and interestingly it still works with it. I also updated the extansion pack and guest additions to 6.0.6. Thank you very much again.
Comment 11 Vladimir Pekar 2019-05-07 13:04:50 UTC
Thanks Larry, 
Patch is working well after fresh Tumbleweed install make today with 6.0.6.
Great work.
Comment 12 Bernhard Seebass 2019-05-16 09:36:21 UTC
*** Bug 1135290 has been marked as a duplicate of this bug. ***
Comment 13 Larry Finger 2019-05-16 14:39:58 UTC
The GitHub repo for acpica has been updated, but I have not yet seen any action for the openSUSE maintainer of the package.
Comment 14 Larry Finger 2019-05-17 13:18:19 UTC
*** Bug 1135452 has been marked as a duplicate of this bug. ***
Comment 15 Doug Jaquays 2019-05-20 19:31:12 UTC
Larry,

  I see you added a new version of VB (6.0.8.477) to your OBS repository.  What I haven't been able to successfully figure out is how to add your OBS repo to zypper in such a way as to let me upgrade.  I did a 'dup' without thinking and ended up with a broken version of VB again.
Comment 16 Larry Finger 2019-05-21 00:14:02 UTC
To get a correct version of 6.0.8 to handle Windows 7,

wget http://lwfinger.com/download/virtualbox-6.0.8-0.x86_64.rpm
sudo zypper in --force virtualbox-6.0.8-0.x86_64.rpm
Comment 17 Larry Finger 2019-05-22 18:41:37 UTC
The update for acpica is now in hardware/acpica, but not yet in openSUSE:Factory/acpica. If all goes well, it should be in Tumbleweed fairly soon. Leap 15.1 has an older version that does not contain the bug.
Comment 18 T Adams 2019-05-27 15:13:30 UTC
FWIW:  After seeing a new package date for acpica in today's 20190525 snapshot, I removed locks for acpica and virtualbox and zypper dup'd to the new (20190509) acpica and Virtualbox 6.0.6.

Same Windows 7 blue screen, unfortunately.
Comment 19 Larry Finger 2019-05-27 17:42:58 UTC
(In reply to T Adams from comment #18)
> FWIW:  After seeing a new package date for acpica in today's 20190525
> snapshot, I removed locks for acpica and virtualbox and zypper dup'd to the
> new (20190509) acpica and Virtualbox 6.0.6.
> 
> Same Windows 7 blue screen, unfortunately.

The new version of acpica fixes the problem; however, virtualbox was not rebuilt. Thus you will need to continue to apply the RPM from lwfinger.com. Once VB 6.0.8 reaches TW, this sorry mess should be fixed.
Comment 20 T Adams 2019-05-27 19:43:23 UTC
> The new version of acpica fixes the problem; however, virtualbox was not
> rebuilt. Thus you will need to continue to apply the RPM from lwfinger.com.
> Once VB 6.0.8 reaches TW, this sorry mess should be fixed.

Ah ha!  That explains it.  Thanks, Larry.
Comment 21 Tamás Németh 2019-06-05 10:00:55 UTC
This one is fixed. However, virtualbox-host-kmp-default is built for an incorrect kernel version now, but it can be fixed by compiling the kernel modules from the package virtualbox-host-source. Thank you Larry for the interim solution.
Comment 22 Larry Finger 2019-06-05 18:08:43 UTC
(In reply to Tamás Németh from comment #21)
> This one is fixed. However, virtualbox-host-kmp-default is built for an
> incorrect kernel version now, but it can be fixed by compiling the kernel
> modules from the package virtualbox-host-source. Thank you Larry for the
> interim solution.

I just did a zypper dup to Tumbleweed snapshot 20190604. The correct kernel modules were included. I'm not sure what happened to you, but it should be a one-off problem.
Comment 23 Tamás Németh 2019-06-06 14:58:48 UTC
(In reply to Larry Finger from comment #22)
> (In reply to Tamás Németh from comment #21)
> > This one is fixed. However, virtualbox-host-kmp-default is built for an
> > incorrect kernel version now, but it can be fixed by compiling the kernel
> > modules from the package virtualbox-host-source. Thank you Larry for the
> > interim solution.
> 
> I just did a zypper dup to Tumbleweed snapshot 20190604. The correct kernel
> modules were included. I'm not sure what happened to you, but it should be a
> one-off problem.

OK, a further update solved the problem. Before this very last update virtualbox-host-kmp-default was built for kernel 5.1.4, but the latest on is for the current 5.1.5.