Proper way to install VirtualBox [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Proper way to install VirtualBox [Solved]

Postby gocool » Wed Aug 28, 2013 3:41

Hi,
I installed the kernel "linux-3.7.0-sabayon" and removed all other kernels from the system. I used kernel-switcher to do this.

And then I re-installed Virtualbox recently to overcome a problem which I assumed was because of my switch to "systemd" from "sysinit".

And now I see my kernel as "linux-3.9.0-server"

How did this happen?

Code: Select all
user@sabayon ~ $ eselect kernel list
Available kernel symlink targets:
  [1]   linux-3.7.0-sabayon *
  [2]   linux-3.9.0-server


Code: Select all
user@sabayon ~ $ uname -a
Linux sabayon 3.9.0-server #1 SMP Thu Jul 25 07:43:22 UTC 2013 i686 Intel(R) Core(TM) Duo CPU T2350 @ 1.86GHz GenuineIntel GNU/Linux


Is this normal?
Last edited by gocool on Thu Aug 29, 2013 18:51, edited 1 time in total.
gocool
Growing Hen
 
Posts: 139
Joined: Wed Aug 06, 2008 13:37

Re: Is something wrong with my system?

Postby Superdonk » Wed Aug 28, 2013 10:54

This is a known issue and is covered here. http://wolf911.us/wgo/?p=699
Superdonk
Baby Hen
 
Posts: 11
Joined: Sun Apr 15, 2012 1:51

Re: Is something wrong with my system?

Postby linuxfluesterer » Wed Aug 28, 2013 11:41

Exactly, I would remove linux-3.9.0-server, because you don't want to use this one...?
Then reinstall linux-3.7.0-sabayon to reinitialise grub2-mkconfig for only this one kernel.
When finished and reboot, then you should Virtualbox install as told in the URL.
The main point is, that the vbox... modules must match the kernel (Rigo fails here), so the essence is:
Code: Select all
# you must be root
equo install virtualbox-bin
equo install virtualbox-modules#`uname -r`

Then you should be able to load the vbox... modules manually with modprobe.
If you want to autoload those vbox... modules while boot with systemd, there has been changed something in the bootup procedure. You can check for sysvinit or systemd with:
Code: Select all
eselect sysvinit list
Available init implementations:
  [1]   systemd *
  [2]   sysvinit

If you use systemd now, then part in the URL above beginning with "/etc/conf.d" is obsolete.
But step by step. First get to install your correct modules to Virtualbox matching to the kernel you use.
If there are more questions, let us know.

-Linuxfluesterer (I love KDE ...)
TTIP is NOT YET stopped. Especially consider NHS and ISDS topics. Talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 699
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: Is something wrong with my system?

Postby gocool » Wed Aug 28, 2013 16:27

Step 1:

I removed th 3.9.-server kernel

Step 2:

I reinstalled the 3.7-sabayon using kernel-switcher

I reboot the machine and this is what I have

Code: Select all
user@sabayon ~ $ uname -r
3.7.0-sabayon
user@sabayon ~ $ eselect kernel list
Available kernel symlink targets:
  [1]   linux-3.7.0-sabayon


Step 3:

And when I try to install the virtualbox-bin, it again is pulling the 3.9-server.
Code: Select all
user@sabayon ~ $ su
Password:
sabayon user # equo install virtualbox-bin
>>  @@ Calculating dependencies...
>>  ## [N] [sabayonlinux.org] sys-kernel/linux-server-3.9.4|3
>>  ## [N] [sabayonlinux.org] app-emulation/virtualbox-modules-4.2.16#3.9.0-server|0
>>  ## [N] [sabayonlinux.org] app-emulation/virtualbox-bin-4.2.16|0
>>  @@ Packages needing to be installed/updated/downgraded: 3


Am I missing anything here? Do advise.

And yes I am using the systemd
Code: Select all
sabayon user # eselect init list
Available init implementations:
  [1]   systemd *
  [2]   sysvinit
gocool
Growing Hen
 
Posts: 139
Joined: Wed Aug 06, 2008 13:37

Re: Is something wrong with my system?

Postby gocool » Wed Aug 28, 2013 17:25

(..contd from above)

When I tried to check the latest kernels in the repo this is what I get :
Code: Select all
sabayon user # equo search linux-sabayon
>>  @@ Searching...
>>      @@ Package: sys-kernel/linux-sabayon-3.10.9-r1 branch: 5, [sabayonlinux.org]
>>         Available:     version: 3.10.9-r1 ~ tag: NoTag ~ revision: 0
>>         Installed:     version: Not installed ~ tag: N/A ~ revision: N/A
>>         Slot:          3.10
>>         Homepage:      https://github.com/Sabayon/kernel
>>         Description:   Official Sabayon Linux Standard
>>                        kernel image
>>         License:       GPL-2 freedist
>>      @@ Package: sys-kernel/linux-sabayon-3.4.53 branch: 5, [sabayonlinux.org]
>>         Available:     version: 3.4.53 ~ tag: NoTag ~ revision: 3
>>         Installed:     version: Not installed ~ tag: N/A ~ revision: N/A
>>         Slot:          3.4
>>         Homepage:      https://github.com/Sabayon/kernel
>>         Description:   Official Sabayon Linux Standard
>>                        kernel image
>>         License:       GPL-2 freedist
>>      @@ Package: sys-kernel/linux-sabayon-3.5-r7 branch: 5, [sabayonlinux.org]
>>         Available:     version: 3.5-r7 ~ tag: NoTag ~ revision: 1
>>         Installed:     version: Not installed ~ tag: N/A ~ revision: N/A
>>         Slot:          3.5
>>         Homepage:      http://gitweb.sabayon.org/?p=linux/kernel/sabayon.git;a=summary
>>         Description:   Official Sabayon Linux Standard
>>                        kernel image
>>         License:       GPL-2 freedist
>>      @@ Package: sys-kernel/linux-sabayon-3.6-r3 branch: 5, [sabayonlinux.org]
>>         Available:     version: 3.6-r3 ~ tag: NoTag ~ revision: 1
>>         Installed:     version: Not installed ~ tag: N/A ~ revision: N/A
>>         Slot:          3.6
>>         Homepage:      http://gitweb.sabayon.org/?p=linux/kernel/sabayon.git;a=summary
>>         Description:   Official Sabayon Linux Standard
>>                        kernel image
>>         License:       GPL-2 freedist
>>      @@ Package: sys-kernel/linux-sabayon-3.7.10 branch: 5, [sabayonlinux.org]
>>         Available:     version: 3.7.10 ~ tag: NoTag ~ revision: 6
>>         Installed:     version: 3.7.10 ~ tag: NoTag ~ revision: 6
>>         Slot:          3.7
>>         Homepage:      https://github.com/Sabayon/kernel
>>         Description:   Official Sabayon Linux Standard
>>                        kernel image
>>         License:       GPL-2 freedist
>>      @@ Package: sys-kernel/linux-sabayon-3.8.13 branch: 5, [sabayonlinux.org]
>>         Available:     version: 3.8.13 ~ tag: NoTag ~ revision: 4
>>         Installed:     version: Not installed ~ tag: N/A ~ revision: N/A
>>         Slot:          3.8
>>         Homepage:      https://github.com/Sabayon/kernel
>>         Description:   Official Sabayon Linux Standard
>>                        kernel image
>>         License:       GPL-2 freedist
>>      @@ Package: sys-kernel/linux-sabayon-3.9.11 branch: 5, [sabayonlinux.org]
>>         Available:     version: 3.9.11 ~ tag: NoTag ~ revision: 0
>>         Installed:     version: Not installed ~ tag: N/A ~ revision: N/A
>>         Slot:          3.9
>>         Homepage:      https://github.com/Sabayon/kernel
>>         Description:   Official Sabayon Linux Standard
>>                        kernel image
>>         License:       GPL-2 freedist
>>  Keywords:  linux-sabayon
>>  Found:     7 entries


So even if I don't want, just to get this virtualbox I should use kernel-switcher to upgrade to sys-kernel/linux-sabayon-3.10.9-r1 from sys-kernel/linux-sabayon-3.7.10

Is this the only way?
gocool
Growing Hen
 
Posts: 139
Joined: Wed Aug 06, 2008 13:37

Re: Is something wrong with my system?

Postby linuxfluesterer » Wed Aug 28, 2013 23:13

I would DEINSTALL virtualbox-bin and also virtualbox-modules and (if also installed) virtualbox-guest-additions again.
Then (you can boot before), DO NOT install virtualbox.bin, neither with Rigo, nor in a console.
Instead, open a root console and only do install the virtualbox-modules first with this:
Code: Select all
equo install virtualbox-modules#$(uname -r)

then you will see most of virtualbox will be installed.
Next step:
Code: Select all
equo install virtualbox-bin-4.2.16

This is the actual virtualbox version listed in repo. Virtualbox-guest-additions are installed automatically
And then (I just made a test for proove), the virtualbox parts matching your kernel, which are:
1. virtualbox-bin-4.2.16
2. virtualbox-modules-4.2.16#3.7.0-sabayon
3. virtualbox-guest-additions-4.2.16#3.7.0-sabayon
4. xf86-video-virtualbox-4.2.16#3.7.0-sabayon
are finally installed.
When you just have sent the command to install virtualbox-modules#$(uname -r), you will see, that equo won't install linux-server-3.9.x anymore...
I've just installed Virtualbox in the way, I described. It is a little tricky, I know, but it works. There was no other kernel installed on my system.
See you later here, my friend...

-Linuxfluesterer (I love KDE ...)

p.s. If you still get virtualbox-modules-4.2.16#3.9.0-server, then I assume a problem due to kernel-switcher.
TTIP is NOT YET stopped. Especially consider NHS and ISDS topics. Talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 699
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: Is something wrong with my system?

Postby gocool » Thu Aug 29, 2013 2:33

linuxfluesterer ... I bow down to you for thy wisdom

!!!IT WORKED!!!

There are many people who have knowledge but you are one among the few who go the extra mile to make someone understand and also gently hand hold and walk them through their issues.

See you later here, my friend...


I will treasure that.

Thanks again my friend for such a wonderful walkthrough. No amount of words could describe my gratitude for this help rendered.
gocool
Growing Hen
 
Posts: 139
Joined: Wed Aug 06, 2008 13:37


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 3 guests

cron