Linux Lite Forums

Software - Support => Installing Software => Topic started by: Duckeenie on November 02, 2015, 08:42:04 AM

Title: Virtualbox With New Kernel
Post by: Duckeenie on November 02, 2015, 08:42:04 AM

Trying to use Virtualbox with kernel 4.2 but keep getting error: "No suitable module for running kernel found".


Anything we can do to troubleshoot this?
Title: Re: Virtualbox With New Kernel
Post by: Jerry on November 02, 2015, 09:15:17 AM
What version of VirtualBox?
Title: Re: Virtualbox With New Kernel
Post by: Duckeenie on November 02, 2015, 09:20:49 AM
I tried both the one in the LL Repo and 5.0.8 for Ubuntu 15.10
Title: Re: Virtualbox With New Kernel
Post by: Jerry on November 02, 2015, 09:27:37 AM
So which one is and installed that you are using that you get the error with?
Title: Re: Virtualbox With New Kernel
Post by: Duckeenie on November 02, 2015, 09:29:43 AM
I had the same error using both but currently I have 4.3.10 installed.
Title: Re: Virtualbox With New Kernel
Post by: Jerry on November 02, 2015, 09:31:37 AM
In that case it is unlikely to work with the LL kernels we supply, they're built differently than the Ubuntu ones. You'll have to use the stock kernel that ships with LL. Cheers :)
Title: Re: Virtualbox With New Kernel
Post by: Wirezfree on November 02, 2015, 07:07:49 PM
Obviously I'm still learning...
I read that Virtualbox builds it's modules automatically on first install.
It needs to cater for all the variants of kernels.
If the kernel changes, it should re-build them, if dkms is installed.?

Not sure if this helps..??,
see section 2.3.2 (https://www.virtualbox.org/manual/ch02.html#install-linux-host)

maybe what I posted in other thread was wrong..??
Title: Re: Virtualbox With New Kernel
Post by: Jerry on November 02, 2015, 10:38:55 PM
I am running 5.0.8 with kernel 4.3 without issue. Perhaps you could remove everything VirtualBox related and start from scratch, and I mean everything.
Title: Re: Virtualbox With New Kernel
Post by: Wirezfree on November 03, 2015, 03:00:54 AM
@Jerry
Sorry, "Off Topic"..
What version of VBox is provided by Lite Software Centre.?
I have my pre Lite Software Centre version, the last update took it to 4.3.32
I think this was the last in the 4.x family.
Title: Re: Virtualbox With New Kernel
Post by: Jerry on November 03, 2015, 05:36:14 AM
@Wirezfree, whichever is in the Ubuntu repos at the time (see Synaptic).
Title: Re: Virtualbox With New Kernel
Post by: Duckeenie on November 03, 2015, 06:22:47 AM
I am running 5.0.8 with kernel 4.3 without issue. Perhaps you could remove everything VirtualBox related and start from scratch, and I mean everything.

Which of the numerous Virtualbox packages are you running? https://www.virtualbox.org/wiki/Linux_Downloads
Title: Re: Virtualbox With New Kernel
Post by: Duckeenie on November 03, 2015, 06:57:33 AM
Obviously I'm still learning...
I read that Virtualbox builds it's modules automatically on first install.
It needs to cater for all the variants of kernels.
If the kernel changes, it should re-build them, if dkms is installed.?

Not sure if this helps..??,
see section 2.3.2 (https://www.virtualbox.org/manual/ch02.html#install-linux-host)

maybe what I posted in other thread was wrong..??

This is useful info.

At this point I can't really remember whether I upgraded my kernel before installing Virtualbox or vice verse. This is what happens when you try fumbling in the dark. (I still remember reinstalling Win95 on an almost weekly basis)

All good fun though :)
Title: Re: Virtualbox With New Kernel
Post by: Duckeenie on November 03, 2015, 07:33:19 AM
So today I learned the importance of using apt-get purge when appropriate.

Working fine now :)
Title: Re: Virtualbox With New Kernel
Post by: Jerry on November 03, 2015, 12:25:29 PM
Cool :)
Title: Re: Virtualbox With New Kernel
Post by: Wirezfree on November 03, 2015, 01:19:27 PM
@Duckeenie

Did you do a full purge of 4.x, and then a new install of 5.0.8.?
Was this with with an updated kernel already on the Host.?

Which install method did you use to install 5.0.8
The one in the link I provided, or another.??

Thanks...
Title: Re: Virtualbox With New Kernel
Post by: Duckeenie on November 03, 2015, 02:44:48 PM
@Wirezfree

I was already on Linux 4.3, I did the following...

apt-get purge virtualbox of 4.x
apt-get autoremove dkms (with hindsight this was likely unnecessary but at the time I wasn't exactly sure how it related to VB)

Downloaded the 5.0.8 release for Ubuntu 12.04, installed it, created a VM, did a test install to it then on completion proceeded to punch the air.

All seems so simple now...
Title: Re: Virtualbox With New Kernel
Post by: Wirezfree on November 03, 2015, 03:06:33 PM
@Duckeenie,

Many Thanks...
Can you fill in a couple of blanks.?

> Where did you down load from.? Virtualbox Wiki (https://www.virtualbox.org/wiki/Downloads) or Synaptic.


The dkms, from what I have read takes care of VBox when you update the Kernel.
Maybe it gets installed along with VBox on a new install.?


Have you installed the "Extension Pack" also on the above wiki page?
It's a download, then use VBox File > Preferences > Extensions to install it?
Have you installed the "Guest additions" in your 12.04 Guest.?



I'm on 4.3.32, the last in 4.x series
I installed it manually early in the year using instructions on the above VBox wiki page,
It then proceeded to update it'self whenever an update was available via the normal "LL Install Updates".
I was hoping it was going to do that for 5.x, but it appears not to want to.
Title: Re: Virtualbox With New Kernel
Post by: Wirezfree on November 03, 2015, 03:25:42 PM
@Duckeenie
Given you seem to be at the bleeding edge with Kernels/VBox
It's over my head, but you may find it of interest when it comes to further Kernel updates (https://forums.virtualbox.org/viewtopic.php?f=7&t=74238)
Title: Re: Virtualbox With New Kernel
Post by: Duckeenie on November 03, 2015, 03:42:44 PM
@Wirezfree

I downloaded from https://www.virtualbox.org/wiki/Linux_Downloads (https://www.virtualbox.org/wiki/Linux_Downloads)

DKMS does exactly what you say though it isn't exclusive to VB. Not sure whether it comes packaged with your distro or is packaged with programs that require it. (One for Jerry I guess)

I haven't tried the extensions yet, RDP with VB looks like something I might be interested in trying though, even if it''s just so I can say I did.

Haven't bothered with guest additions yet as I was just testing but I have used them previously and find them to be an essential really.

VB 5.x doesn't appear to be in the LL repos yet so I imagine that's why there are no updates forthcoming. There is a little info directly below the VB download wiki that outlines adding their PPA, if you run that through your Enigma machine it might help with your update woes. :)
Title: Re: Virtualbox With New Kernel
Post by: Duckeenie on November 03, 2015, 03:50:35 PM
@Wirezfree - RE: Further kernel upgrades.

Now I need that Enigma Machine. :)
Title: Re: Virtualbox With New Kernel
Post by: Wirezfree on November 03, 2015, 04:17:30 PM
@Duckeenie..
Many Thanks..
Enigma..!! I think I need a new brain,
unfortunately my usual supplier (http://www.amazon.co.uk/Brain-Squeezer-Stress-Balls-StressCHECK/dp/B00HYBZ4CC/ref=sr_1_16?ie=UTF8&qid=1446585153&sr=8-16&keywords=brain) is out of real ones
Title: Re: Virtualbox With New Kernel
Post by: Duckeenie on November 03, 2015, 05:29:18 PM
LOL@Wirezfree
Title: Re: Virtualbox With New Kernel
Post by: Wirezfree on November 04, 2015, 08:29:12 AM
The voyage of discovery continues...
Whilst doing some more research I came across some references to "Two versions of Guest additions being installed"
So I checked my Linux Lite VM's, sure enough I have this warning:

Code: [Select]
dave@vm-ll22:~$ sudo dkms status

[sudo] password for dave:
vboxguest, 4.3.26, 3.13.0-24-generic, x86_64: installed
virtualbox-guest, 4.3.10, 3.13.0-24-generic, x86_64: installed
(WARNING! Diff between built and installed module!)
(WARNING! Diff between built and installed module!)
(WARNING! Diff between built and installed module!)
dave@vm2-ll22:~$

I have the up-to-date version 4.3.26, and the default 4.3.10 which is in most(all) Ubuntu based distros
The default is there to enable certain features immediately if you install straight into a VM.
There is an issue with the Guest Additions installer, it does not remove the default, it's named differently.
It should not cause any problems, but can under certain condition, "not found what they are..??"

After much digging, and trial and error I fixed it with:

So do the following in the "guest", it's case sensitive.?:
Code: [Select]
sudo apt-get purge VirtualBox*
sudo apt-get purge virtualBox*

Re-boot,
Now you will end up with a small 800X480 display and maybe limited mouse movement
So you may need to do manual, not mouse clicks.
Open a terminal, ctrl-alt-t.
Code: [Select]
sudo apt-get install dkms
sudo /etc/init.d/vboxadd setup

Open the little Virtualbox menu and select "Insert Guest Additions CD image"
Open the CD image, then right click "Open Terminal Here", then:
Code: [Select]
sudo sh ./VBoxLinuxAdditions.run
Close terminal, and reboot VM.
Open the little Virtualbox menu and select "View" and click on "Switch to Fullscreen"
Then check again:
Code: [Select]
dave@vm2-ll22:~$ sudo dkms status
[sudo] password for dave:
vboxguest, 4.3.32, 3.13.0-24-generic, x86_64: installed
dave@vm2-ll22:~$



Now fixed, 1 vboxguest additions.