jakeday / linux-surface

Linux Kernel for Surface Devices
2.59k stars 242 forks source link

Virtualbox not compatible with kernel 5.1.15-surface-linux #646

Open gpilleux opened 4 years ago

gpilleux commented 4 years ago

I've just installed the latest surface-kernel (5.1.15) and tried installing virtualbox. Virtualbox DOES run on my machine but DOESN'T let me open any VM.

I've tried uninstall and reinstalling virtualbox and no luck. Also I've tried this issue with same results.

Here's the output of installing virtualbox-dkms

> sudo apt-get install -y virtualbox-dkms Loading new virtualbox-6.0.14 DKMS files... Building for 5.1.15-surface-linux-surface 5.3.0-42-generic Building initial module for 5.1.15-surface-linux-surface ERROR (dkms apport): kernel package linux-headers-5.1.15-surface-linux-surface is not supported Error! Bad return status for module build on kernel: 5.1.15-surface-linux-surface (x86_64) Consult /var/lib/dkms/virtualbox/6.0.14/build/make.log for more information. dpkg: error processing package virtualbox-dkms (--configure): installed virtualbox-dkms package post-installation script subprocess returned error exit status 10 dpkg: dependency problems prevent configuration of virtualbox: virtualbox depends on virtualbox-dkms (>= 6.0.14-dfsg-1) | virtualbox-source (>= 6.0.14-dfsg-1) | virtualbox-modules; however: Package virtualbox-dkms is not configured yet. Package virtualbox-source is not installed. Package virtualbox-modules is not installed. Package virtualbox-dkms which provides virtualbox-modules is not configured yet. dpkg: error processing package virtualbox (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of virtualbox-qt: virtualbox-qt depends on virtualbox (= 6.0.14-dfsg-1); however: usr/bin/dpkg returned an error code (1)

Here's additional information of my kernel

> uname -a Linux matrix 5.1.15-surface-linux-surface #8 SMP Thu Jun 27 12:03:55 EDT 2019 x86_64 x86_64 x86_64 GNU/Linux

Is this a kernel problem or virtualbox problem?

Should I install surface-linux-4.19 kernel version?

gpilleux commented 4 years ago

Just downloaded the 4.19.56-surface-linux-surface kernel version and still having the same problem.... Could this be a problem with my distro? I'm running Ubuntu 19.10 > uname -a Linux matrix 4.19.56-surface-linux-surface #7 SMP Wed Jun 26 20:47:56 EDT 2019 x86_64 x86_64 x86_64 GNU/Linux

Vishram1123 commented 4 years ago

I seem to have the same problem with Ubuntu 20.04 LTS. My Virtualbox works on the default kernel, but otherwise, it doesn't work. I have been trying to follow instructions on this link, but it hasn't helped. I have also been trying compile my own kernel kind of like they did here, but I do not how to port that over to this kernel. Maybe you could use make menuconfig in some way, shape, or form?

KatsuoRyuu commented 4 years ago

This problem does not exist on Gentoo, which is a distro where you compile everything by yourself, so I suspect the problem is the DKMS and virtual box modules are not compiled to that specific kernel change.

What if you manually compile the virtual box modules?

Vishram1123 commented 4 years ago

I feel like an idiot ... but how do you do that?

Edit I have the 5.0.7 surface kernel installed and the 5.1.15 surface kernel installed, as well as the generic 5.4.0 kernel, where virtualbox works perfectly.

Vishram1123 commented 4 years ago

I finally got it: The key is Virtualbox 6.1 with the 5.0.7 Surface Kernel. You have to add the repository: sudo add-apt-repository 'deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian eoan contrib', then sudo apt update, and then install Virtualbox 6.1 sudo apt install virtualbox-6.1. I know this doesn't completely solve the problem, but hey, at least Virtualbox works on a surface kernel.

sphh commented 3 years ago

Please also see #677.