FS#51592 - [linux] kernel 4.8.4 not working with virtualbox

Attached to Project: Arch Linux
Opened by Jeff Hodd (jghodd) - Sunday, 30 October 2016, 19:18 GMT
Last edited by freswa (frederik) - Monday, 17 August 2020, 21:55 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: The Arch Linux 4.8.4 kernel is not booting up in a virtualbox VM. I have not tried other 4.8.x kernels, but 4.7.x kernels work without any issues. A 4.7.6 VM would no longer boot after an upgrade to 4.8.4. The log files of the working version and the non-working version are identical up to this entry:

00:00:11.232402 TM: Switching TSC mode from 'Dynamic' to 'RealTscOffset'

After that, the 4.8.4 VM hangs.

On a successful 4.7.6 boot, that entry is followed by:

00:00:27.368408 GIM: KVM: Enabled wall-clock struct. at 0x0000000001802988 - u32Sec=1477847099 u32Nano=410214000 uVersion=2

This entry never comes for a 4.8.4 boot.

Additional info:
* kernel 4.8.4-1
* virtualbox 5.1.8-1


Steps to reproduce: Create a virtualbox VM and attach an Arch Linux 4.8.4 iso image as a LiveCD optical drive. Click start.

If I had to guess, I'm figuring some option in the kernel config file has changed.

Attached are 2 log files:

VBox.log.1 is from a failed 4.8.4 boot
VBox.log.2 is from a successful 4.7.6 boot

Also attached are the kernel config files for the 4.7.6 and 4.8.4 kernels. I couldn't help notice that the 4.7.6 config file was a good bit larger than the 4.8.4 config file...

Let me know if you need anything else from me.
This task depends upon

Closed by  freswa (frederik)
Monday, 17 August 2020, 21:55 GMT
Reason for closing:  Works for me
Comment by Jeff Hodd (jghodd) - Sunday, 30 October 2016, 19:37 GMT
Sorry. The config.4.7.6 file attached initially was for an i686 kernel, but the config.4.8.4 config file was for an x86_64 kernel. The config file I'm attaching now is for the 4.7.6 x86_64 kernel. We want to compare apples to apples. Neither the i686 nor the x86_64 4.8.4 kernels boot up in vbox.
Comment by Jeff Hodd (jghodd) - Sunday, 30 October 2016, 23:13 GMT
It looks like the culprit is the CONFIG_KVM_APIC_ARCHITECTURE kernel config option. It is set in the 4.7.x kernels, but is not present in 4.8.4 (I can't speak to its existence in 4.8.[0-3] - I don't have a working system with any of these versions).

The solution is to enable I/O APIC when doing motherboard setup. This wasn't required when using a 4.7.x kernel, so I'm not sure if this is an oversight in the kernel build, or a deliberate change in kernel configuration. If the former, then this is a bug, if the latter, this bug can be closed.

Loading...