Excellent: Install VirtualBox 6 on Debian 10

Everything about X, Gnome, KDE, ... and everything running on it

Excellent: Install VirtualBox 6 on Debian 10

Postby Loci.Cantos » 2019-11-23 17:23

There are some poorly considered procedures floating around the cloud for installing VirtualBox 6 on Buster. This link will take you to an excellent procedure for that process. It's clean and quick, and it worked perfectly. Good luck. Thank you to Josphat Mutai for making this available.

https://computingforgeeks.com/install-v ... tu-debian/
Loci.Cantos
 
Posts: 28
Joined: 2018-08-03 15:39

Re: Excellent: Install VirtualBox 6 on Debian 10

Postby Head_on_a_Stick » 2019-11-23 18:01

I don't think adding Oracle's repositories is a good idea. I also don't think using VirtualBox is a good idea, it was removed from Debian stable because it isn't of sufficient quality.
Don't break DebianHow to report bugs

SharpBang GNU/Linux® — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10695
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Excellent: Install VirtualBox 6 on Debian 10

Postby Loci.Cantos » 2019-11-23 18:36

Thanks for the head-up, I didn't know this HoaS.

Does it cause problems for itself only (internally inconsistent), or does it cause problems across the system as well, affecting system operation and/or other applications?

Is there some alternative hypervisor? I've stayed mostly with vb over the years but I'm happy to look at others. Do you have any suggestions?

Thank you.

lc
Loci.Cantos
 
Posts: 28
Joined: 2018-08-03 15:39

Re: Excellent: Install VirtualBox 6 on Debian 10

Postby Head_on_a_Stick » 2019-11-23 18:42

Loci.Cantos wrote:Does it cause problems for itself only (internally inconsistent), or does it cause problems across the system as well, affecting system operation and/or other applications?

Potentially both, the developers have a tendency to ignore security issues so it seems likely their packaging skills may be lacking.

Loci.Cantos wrote:Is there some alternative hypervisor?

KVM is native to Linux and is supported by QEMU. Or use gnome-boxes.
Don't break DebianHow to report bugs

SharpBang GNU/Linux® — a pre-configured Openbox/Tint2 desktop running on Debian stable
User avatar
Head_on_a_Stick
 
Posts: 10695
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Excellent: Install VirtualBox 6 on Debian 10

Postby Loci.Cantos » 2019-11-23 18:44

Thank you. I will look into these now.
Loci.Cantos
 
Posts: 28
Joined: 2018-08-03 15:39

Re: Excellent: Install VirtualBox 6 on Debian 10

Postby stevepusser » 2019-11-24 01:12

Well, you can get 6.0.10 from my OBS repo https://build.opensuse.org/project/show ... box-buster

I'll update it to 6.0.14 tomorrow, the same as is backported already for MX 19 and 17/18.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Clipgrab 3.8.6, Hedgewars 1.0.0, PulseEffects 4.6.9, Telegram-desktop 1.8.15, Pale Moon 28.8.0, KeepassXC 2.5.1
User avatar
stevepusser
 
Posts: 11316
Joined: 2009-10-06 05:53

Re: Excellent: Install VirtualBox 6 on Debian 10

Postby kedaha » 2019-11-24 16:52

stevepusser wrote:Well, you can get 6.0.10 from my OBS repo https://build.opensuse.org/project/show ... box-buster

I'll update it to 6.0.14 tomorrow, the same as is backported already for MX 19 and 17/18.

That's good; it took a long time to build but I successfully backported 6.0.14 from sid to Buster:

I noticed when starting it via the terminal I got this:
Code: Select all
user@debian:~$ virtualbox
WARNING: The character device /dev/vboxdrv does not exist.
    Please install the virtualbox-dkms package and the appropriate
    headers, most likely linux-headers-amd64.

    You will not be able to start VMs until this problem is fixed.

A little searching and I fixed it with:
Code: Select all
# dpkg-reconfigure virtualbox-dkms
# dpkg-reconfigure virtualbox
# modprobe vboxdrv

And it starts fine, with no errors.
Last edited by kedaha on 2019-11-24 20:58, edited 1 time in total.
Mate DE & OSSv4.
FreedomBox in Debian
ispmail
Debian Stable

Words, as is well known, are the great foes of reality. Joseph Conrad.
Kedaha's Conjecture
User avatar
kedaha
 
Posts: 3034
Joined: 2008-05-24 12:26

Re: Excellent: Install VirtualBox 6 on Debian 10

Postby kedaha » 2019-11-24 20:57

For anyone interested, this is how I backported VirtualBox 6.0.14 from sid to buster:
This simple method doesn't always work so, in general, I recommend stevepusser's repository because it's much quicker.
As always, to build a quick personal backport from unstable "sid" for one's own architecture, first edit or add the source to your /etc/apt/sources.list file with a command like (modify for your mirror):
Code: Select all
# echo "deb-src http://ftp.us.debian.org/debian unstable main contrib" >> /etc/apt/sources.list && apt-get update

Now as your user (not root);
Code: Select all
$ mkdir BUILD && cd BUILD
user@debian:~/BUILD$ apt-get -b virtualbox

ls command will show the resulting backported packages:
Code: Select all
user@debian:~/BUILD$ ls
virtualbox-6.0.14-dfsg
virtualbox_6.0.14-dfsg-2_amd64.buildinfo
virtualbox_6.0.14-dfsg-2_amd64.changes
virtualbox_6.0.14-dfsg-2_amd64.deb
virtualbox_6.0.14-dfsg-2.debian.tar.xz
virtualbox_6.0.14-dfsg-2.dsc
virtualbox_6.0.14-dfsg.orig.tar.xz
virtualbox-dbgsym_6.0.14-dfsg-2_amd64.deb
virtualbox-dkms_6.0.14-dfsg-2_all.deb
virtualbox-guest-dkms_6.0.14-dfsg-2_all.deb
virtualbox-guest-source_6.0.14-dfsg-2_all.deb
virtualbox-guest-utils_6.0.14-dfsg-2_amd64.deb
virtualbox-guest-utils-dbgsym_6.0.14-dfsg-2_amd64.deb
virtualbox-guest-x11_6.0.14-dfsg-2_amd64.deb
virtualbox-guest-x11-dbgsym_6.0.14-dfsg-2_amd64.deb
virtualbox-qt_6.0.14-dfsg-2_amd64.deb
virtualbox-qt-dbgsym_6.0.14-dfsg-2_amd64.deb
virtualbox-source_6.0.14-dfsg-2_all.deb

The debs can be installed (from within the BUILD directory) with
Code: Select all
$ su -c "dpkg -i ./*.deb"

However, I needed to redifine the path variable (don't copy the initial $):
Code: Select all
$ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin su -c "dpkg -i ./*.deb"

Followed by the commands I gave above:
Code: Select all
# dpkg-reconfigure virtualbox-dkms
# dpkg-reconfigure virtualbox
# modprobe vboxdrv

After that, to get rid of the build dependencies there are various ways to do this; see for example this how-to-uninstall-all-packages-installed-by-aptitude-build-dep which are OK even though apt was used in this example.
Mate DE & OSSv4.
FreedomBox in Debian
ispmail
Debian Stable

Words, as is well known, are the great foes of reality. Joseph Conrad.
Kedaha's Conjecture
User avatar
kedaha
 
Posts: 3034
Joined: 2008-05-24 12:26

Re: Excellent: Install VirtualBox 6 on Debian 10

Postby Loci.Cantos » 2019-11-24 22:09

Nice. Lots of good information here.
Thanks Head_on_a_Stick. Thanks Steve Pusser. Thanks Kedaha.
Loci.Cantos
 
Posts: 28
Joined: 2018-08-03 15:39


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable