Page 1 of 1

[SOLVED]MGA5.1 new install - Virtualbox guest gets err (RC=-

PostPosted: Jul 28th, '17, 07:00
by Myles
Below was in response to a question I asked about which version of Virtualbox to install, as part of another problem I was having with no sound in VLC after the #5.1 re-install (now SOLVED).

Benmc: Helping me again I see. Thanks. I don't know what happened but when I searched for VB in the repositories I only found 4 entries for VB-kernel or something (????) I have now found VB (5.1.122) successfully in the repositories and installed it as well as a kernel driver and other stuff, but I get an error message when I try and start a new machine (I hadn't told it where to find the ISO yet even). If I can remember how to attach an image I will but it was err=-1908. So I unistalled Virtualbox, rebooted and re-installed VB (but I still get an 2 error msgs in dialog boxes -
Virtualbox - Kernel Driver problem on start of machine.png
Virtualbox - Kernel Driver problem on start of machine.png (244.25 KiB) Viewed 1858 times


So I tried to do what is says and get:
Code: Select all
[root@Bilbo myles]# /sbin/vboxconfig
bash: /sbin/vboxconfig: No such file or directory
[root@Bilbo myles]#

Re: MGA5.1 new install - Virtualbox guest gets err (RC=-1908

PostPosted: Jul 28th, '17, 08:38
by jkerr82508
Please show the results of the following commands:
Code: Select all
uname -a
rpm -qa --last | grep virtualbox
rpm -qa | grep vbox

Jim

Re: MGA5.1 new install - Virtualbox guest gets err (RC=-1908

PostPosted: Jul 28th, '17, 09:02
by Myles
Jim,
Here are the results:

Code: Select all
[myles@Bilbo ~]$ uname -a
Linux Bilbo.Hobbiton 4.4.68-server-1.mga5 #1 SMP Sun May 14 18:43:16 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[myles@Bilbo ~]$


Code: Select all
[myles@Bilbo ~]$ rpm -qa --last | grep virtualbox
virtualbox-guest-additions-5.1.22-1.mga5.x86_64 Wed 26 Jul 2017 16:37:03 AEST
virtualbox-doc-5.1.22-1.mga5.noarch           Wed 26 Jul 2017 16:37:03 AEST
dkms-virtualbox-5.1.22-1.mga5.noarch          Wed 26 Jul 2017 16:37:01 AEST
virtualbox-kernel-server-latest-5.1.22-7.mga5.x86_64 Wed 26 Jul 2017 16:37:00 AEST
virtualbox-5.1.22-1.mga5.x86_64               Wed 26 Jul 2017 16:36:58 AEST
virtualbox-kernel-desktop-latest-5.1.22-7.mga5.x86_64 Wed 26 Jul 2017 16:36:55 AEST
virtualbox-kernel-4.4.74-server-1.mga5-5.1.22-7.mga5.x86_64 Wed 26 Jul 2017 16:36:54 AEST
virtualbox-kernel-4.4.74-desktop-1.mga5-5.1.22-7.mga5.x86_64 Wed 26 Jul 2017 16:36:54 AEST
[myles@Bilbo ~]$


Code: Select all
[myles@Bilbo ~]$ rpm -qa | grep vbox
x11-driver-video-vboxvideo-5.1.22-1.mga5
vboxadditions-kernel-desktop-latest-5.1.22-7.mga5
vboxadditions-kernel-4.4.74-desktop-1.mga5-5.1.22-7.mga5
[myles@Bilbo ~]$

Re: MGA5.1 new install - Virtualbox guest gets err (RC=-1908

PostPosted: Jul 28th, '17, 09:44
by jkerr82508
The virtualbox kernel modules that you have installed do not correspond with the kernel that you are running. You are using kernel-server-4.4.68 but the modules are for 4.4.74. You should update your kernel to kernel-server-4.4.74. (To ensure that you keep your kernel up to date install kernel-server-latest-4.4.74.)

You do not need the following packages which are for use in Mageia running as a guest system :
Code: Select all
x11-driver-video-vboxvideo-5.1.22-1.mga5
vboxadditions-kernel-desktop-latest-5.1.22-7.mga5
vboxadditions-kernel-4.4.74-desktop-1.mga5-5.1.22-7.mga5
virtualbox-guest-additions-5.1.22-1.mga5


Since you are using the server kernel, you do not need:
Code: Select all
virtualbox-kernel-desktop-latest-5.1.22-7.mga5
virtualbox-kernel-4.4.74-desktop-1.mga5-5.1.22-7.mga5


Since you have installed the binary kernel modules, you do not need
Code: Select all
dkms-virtualbox-5.1.22-1.mga5

Jim

Re: MGA5.1 new install - Virtualbox guest gets err (RC=-1908

PostPosted: Jul 28th, '17, 12:15
by Myles
Jim,
Wow, you have been a great help, thankyou.
But, before I go ahead and start un-installing stuff, could you tell me what exactly I need to get VB installed and working so that I can add other Linux distros (to look at) and other Mageia versions to assess as working systems under VB (so I can update my doco so I don't have to go through this again next time).
I don't remember having anything like this sort of trouble previously when I installed VB. I just thought that I selected VB and it installed the things it needed and away I went!

Also I have to point out that since I did this last re-install (the tenth I have done in a week trying to re-build my perfectly working #5.0 system that I stupidly upgraded to #6 online WITHOUT taking an image first!! I then proceeded to dig the hole deeper and deeper with self-inflicted mistakes with each successive re-install). So I have not wanted to apply any updates at this point in case I had to turn around and re-install yet again!

As for updating the 'kernel' to 4.4.74, I found this:
kernel-server - showing 2 versions.png
kernel-server - showing 2 versions.png (12.12 KiB) Viewed 1840 times


It is already installed as well as 4.4.68-1. So should I just un-install 4.4.68-1? As well as all the other things you mentioned?

Sorry to be such a pain, but it's been a VERY long week!

Re: MGA5.1 new install - Virtualbox guest gets err (RC=-1908

PostPosted: Jul 28th, '17, 13:18
by Myles
Also, I forgot to say about installing VB - I thought that I always had to - install VB, Guest Additions and Extended Pack to get the full functionality of VB. Am I mistaken in that belief?

Re: MGA5.1 new install - Virtualbox guest gets err (RC=-1908

PostPosted: Jul 28th, '17, 14:04
by jkerr82508
Myles wrote: I don't remember having anything like this sort of trouble previously when I installed VB. I just thought that I selected VB and it installed the things it needed and away I went!

That is what is supposed to happen, but you are running an older version of the kernel, or perhaps you were using kernel-desktop when you installed virtualbox?

Look for server-4.4.74 in the grub menu. If you are using Grub2, look for it in the Advanced Options.

Normally, you only need to install virtualbox. (The appropriate kernel module for your running system will be installed as a dependency.) If you want to use USB devices with your VM, then you would need the corresponding proprietary extension pack from Oracle. virtualbox-guest-additions is only needed in guest systems.

Jim

Re: MGA5.1 new install - Virtualbox guest gets err (RC=-1908

PostPosted: Jul 29th, '17, 00:48
by Myles
Jim,
Success! Thankyou very much for all of your patience and valuable help, most appreciated.

I booted selecting the 4.4.74 kernel from GRUB2 Advanced Options and all is well, A virtual machine is starting up as we speak!

But to avoid having to logon selecting the 4.4.74 kernel from GRUB2 Advanced Options just to use VB, shall I just un-install kernel-4.4.68 and will my normal logon default to kernel-4.4.74??

sorry not sure about this as I have only used these sort of alternative options from the boot menu if an upgrade went wrong and needed to boot into a previous environment.

Re: MGA5.1 new install - Virtualbox guest gets err (RC=-1908

PostPosted: Jul 29th, '17, 17:49
by jkerr82508
Myles wrote: to avoid having to logon selecting the 4.4.74 kernel from GRUB2 Advanced Options just to use VB, shall I just un-install kernel-4.4.68 and will my normal logon default to kernel-4.4.74

I don't think that would do any harm. However, I did something similar once and the symlinks in /boot were not updated. So I had to use the Advanced option anyway.
There's a kernel update on the way soon and when you install that it should become the default "Mageia" entry in the boot menu.

Jim

Re: MGA5.1 new install - Virtualbox guest gets err (RC=-1908

PostPosted: Jul 30th, '17, 09:49
by Myles
Thanks Jim for all of your help, most appreciated. VB is working fine now, thankyou.

And thanks for the heads up about the kernel update, I'll hold off and let it happen.

I'll mark this solved.