Comment 41 for bug 1736116

Revision history for this message
Pedro CĂ´rte-Real (pedrocr) wrote : Re: Host with kernel 4.13 freezes when starting a VM with VirtualBox

I was seeing more screen tearing after going back to the 4.4 kernel and corresponding xserver so I decided I wanted to be able to use the HWE stack again. I almost moved to virtualbox 5.2 from the virtualbox.org repos but then I just decided to backport virtualbox 5.1.30 from artful and that worked fine. The process is roughly:

```sh
$ sudo apt build-dep virtualbox
# Set your /etc/apt/sources.list deb-src entries to point to artful. You want to replace xenial with artful in the lines:
# deb-src http://pt.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://pt.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
$ apt source virtualbox
$ cd virtualbox-5.1.30-dfsg
$ sudo dpkg-buildpackage -us -uc -nc
# This will fail but tell you some missing dependencies that you need to install
# You can install everything but kbuild but we will just ignore it next (the -d flag)
$ sudo dpkg-buildpackage -d -us -uc -nc
# now you have the packages built
$ cd ..
$ sudo dpkg -i <whichever packages you need>
```

If you also need the proprietary extensions package you can just grab the exact one from artful from here:

https://packages.ubuntu.com/bionic/virtualbox-ext-pack

This virtualbox version seems to work fine. The 5.2 from bionic fails with some qt5 issues, which may just be other missing dependencies. It would seem simple enough to just backport virtualbox 5.1 (or even 5.2) to xenial but I don't know if there's a maintainer around to do it.