12.3 kernel sources and kernel different, and VirtualBox troubles

Hi all,

I’m a noob regarding linux admin stuff, but I know how to use it (at last company SLES was default desktop OS).

I now have OpenSuse 12.3 on a hp notebook (32 bit by accident, since beta times because 12.2 would not install).

At boot I always see:

[FAILED] Failed to start LSB: VirtualBox Linux Additions kernel modules.
See 'systemctl status vboxadd.service' for details.

But I don’t know if this is a problem, why does it even try to start Linux Additions?

However, last time I wanted to use VirtualBox it worked after doing: modprobe vboxdrv
But now I get:

modprobe vboxdrv
FATAL: Module vboxdrv not found.

For “service vboxdrv setup” I always get and got:

service vboxdrv setup
Recompiling VirtualBox kernel module, NOT. It has been packaged.

But now VirtualBox no longer works, status is:


service vboxdrv status
vboxdrv.service - LSB: VirtualBox Linux module
          Loaded: loaded (/etc/init.d/vboxdrv)
          Active: active (exited) since Thu, 2013-04-04 06:39:28 CEST; 43min ago
         Process: 7503 ExecStop=/etc/init.d/vboxdrv stop (code=exited, status=0/SUCCESS)
         Process: 7521 ExecStart=/etc/init.d/vboxdrv start (code=exited, status=0/SUCCESS)
          CGroup: name=systemd:/system/vboxdrv.service

Apr 04 06:39:28 linux-a9jv.site systemd[1]: Starting LSB: VirtualBox Linux module...
Apr 04 06:39:28 linux-a9jv.site vboxdrv[7521]: Starting VirtualBox kernel modules..failed
Apr 04 06:39:28 linux-a9jv.site vboxdrv[7521]: (modprobe vboxdrv failed. Please use 'dmesg' to find out why)
Apr 04 06:39:28 linux-a9jv.site systemd[1]: Started LSB: VirtualBox Linux module.

=============================================================================

I now thought maybe “vboxdrv setup” does not realize that kernel changed or something so I looked at some stuff:

ls -la /usr/src/
total 24
drwxr-xr-x  6 root root  4096 Apr  4 06:18 .
drwxr-xr-x 13 root root  4096 Feb 26 03:11 ..
lrwxrwxrwx  1 root users   16 Apr  4 06:18 linux -> linux-3.7.10-1.1
drwxr-xr-x 23 root root  4096 Apr  4 06:18 linux-3.7.10-1.1
drwxr-xr-x  3 root root  4096 Apr  4 06:18 linux-3.7.10-1.1-obj
drwxr-xr-x  3 root root  4096 Apr  4 06:18 linux-obj
drwxr-xr-x  8 root root  4096 Jan 26 14:24 packages

However:

uname -a
Linux linux-a9jv.site 3.7.9-1.4-default #1 SMP Thu Feb 21 16:15:10 UTC 2013 (8dec968) i686 athlon i386 GNU/Linux

and:

zypper info kernel-devel
Loading repository data...
Reading installed packages...


Information for package kernel-devel:

Repository: openSUSE-12.3-Oss
Name: kernel-devel
Version: 3.7.10-1.1.1
...

So sources are for 3.7.10-1.1.1 but active kernel is 3.7.9-1.4!

a) Anybody has an idea what could be wrong?
b) Do I have to manualy do something if kernel updates from standard updates? Is grub list updated automatically (I use grub2 I think!!!)?

Thanks and regards

Sorry, could edit first post only once.

Note, I do not have kernel 3.7.10-1.1 (but symtypes-3.7.10-1.1-default.gz), should I have that (my system is up to date)?

ls -la /boot/
total 90980
drwxr-xr-x  4 root root      4096 Apr  4 06:18 .
drwxr-xr-x 24 root root      4096 Apr  4 06:14 ..
-rw-r--r--  1 root root   1892981 Jan  7 19:41 System.map-3.7.1-1-default
-rw-r--r--  1 root root   1894920 Feb 23 20:04 System.map-3.7.9-1.4-default
-rw-r--r--  1 root users      512 Jan 19 07:02 backup_mbr
lrwxrwxrwx  1 root root         1 Feb 26 03:22 boot -> .
-rw-r--r--  1 root root      1484 Feb 26 15:33 boot.readme
-rw-r--r--  1 root root    140308 Jan  7 17:13 config-3.7.1-1-default
-rw-r--r--  1 root root    140347 Feb 23 17:31 config-3.7.9-1.4-default
drwxr-xr-x  2 root root      4096 Feb 26 03:22 grub
drwxr-xr-x  6 root root      4096 Mar 28 12:02 grub2
lrwxrwxrwx  1 root users        5 Feb 26 04:57 grub2-efi -> grub2
lrwxrwxrwx  1 root users       24 Mar 28 12:02 initrd -> initrd-3.7.9-1.4-default
-rw-r--r--  1 root users 33097619 Mar 28 12:01 initrd-3.7.1-1-default
-rw-r--r--  1 root users 33101241 Mar 28 12:02 initrd-3.7.9-1.4-default
-rw-r--r--  1 root root    176760 Jan 27 05:28 memtest.bin
-rw-r--r--  1 root root    621056 Mar  6 18:50 message
-rw-r--r--  1 root root    693512 Mar  1 16:27 symtypes-3.7.10-1.1-default.gz
-rw-r--r--  1 root root    245074 Jan  7 20:00 symvers-3.7.1-1-default.gz
-rw-r--r--  1 root root    245073 Feb 23 20:23 symvers-3.7.9-1.4-default.gz
-rw-r--r--  1 root root       393 Jan  7 20:00 sysctl.conf-3.7.1-1-default
-rw-r--r--  1 root root       393 Feb 23 20:23 sysctl.conf-3.7.9-1.4-default
-rw-r--r--  1 root root   5846416 Jan  7 20:00 vmlinux-3.7.1-1-default.gz
-rw-r--r--  1 root root   5851993 Feb 23 20:23 vmlinux-3.7.9-1.4-default.gz
lrwxrwxrwx  1 root users       25 Feb 26 01:15 vmlinuz -> vmlinuz-3.7.9-1.4-default
-rw-r--r--  1 root root   4574368 Jan  7 19:42 vmlinuz-3.7.1-1-default
-rw-r--r--  1 root root   4579328 Feb 23 20:05 vmlinuz-3.7.9-1.4-default

Sorry again (can only edit post 10 minutes, hope this is for new users only).

Now trying:

zypper dup
...
24 packages to upgrade, 43 to downgrade, 12 new, 4 to remove, 23  to change vendor, 1 to change arch.
Overall download size: 68.2 MiB. After the operation, additional 123.9 MiB will be used

So I hope I have the right kernel afterwards. I don’t like the “43 to downgrade” and I probably have to recompile some stuff :frowning:

c) Do I have to run “zypper dup” regularly to have the current kernel?
d) Should it not be considered a bug if kernel sources are installed that do not match my kernel?

[Edit:]
Now VirtualBox runs again. But is “zypper dup” needed regularly? Is there a Gui (for me not needed, but I installed it on my GFs notebook too)?

You do not appear to be running 12.3 but probably one of the 12.3 Release Candidates. What do you mean by “my system is up to date”?

Please


: >  zypper lr -d

This shoulld upgrade your system, providing you have the 12.3-OSS and 12.3 Update repositories installed.


: #  zypper dup -l  --from openSUSE-12.3-Update  --from openSUSE-12.3-Oss
: #  systemctl reboot

To use VBox from the openSUSE repositories you will need to:


: #  zypper  ar  "http://download.opensuse.org/repositories/Virtualization/openSUSE_12.3/"  OBS-Virtualization-12.3
: #  zypper install -r Virtualization-12.3  virtualbox virtualbox-host-kmp-desktop virtualbox-qt
/CODE
This assumes you are using KDE.

If you want to install the Oracle VBox rpm, then you should read some of the threades in the Virtualization sub-forum.

Did always check for patches and did all updates the Apper thing wanted.

As you see in my previous post, I did a “zypper dup” and now it works. But “–from openSUSE-12.3-Update --from openSUSE-12.3-Oss” would have been better, some stuff is from packman repo now.

Am I right to assume that this was only needed because I had a RC/Beta of 12.3, so I will never have to do a “zypper dup” again except to go to 12.4?

Thanks a lot.

devnoob wrote:
> Sorry again (can only edit post 10 minutes, hope this is for new users
> only).

The idea is that you proof-read BEFORE you post!

Yes, I always do that. It’s more about if I have additional info and there was no other post in the meantime I’m used to extend a post with clearly marked [Edit1:], [Edit2:],… sections.

Apper has some fans (that like bling), but has been the cause of a lot of pain. Most people here (including me) would recommend removing all the “apper” and “PackageKit” packages. YaST Online Update is much more reliable, and can be configured to run automatically.

As you see in my previous post, I did a “zypper dup” and now it works. But “–from openSUSE-12.3-Update --from openSUSE-12.3-Oss” would have been better, some stuff is from packman repo now.

If you do not specify the repositories “zypper dup” will use all enabled. I do not know what they are, and you could have some old or incompatible ones left from pre 12.3-release. Note the virtualbox-host-kmp-desktop from 12.3-oss is for kernel-3.7.7 which is why I suggested using the Virtualization repository.

Am I right to assume that this was only needed because I had a RC/Beta of 12.3, so I will never have to do a “zypper dup” again except to go to 12.4?

Yes, that is correct.

Thanks for the help eng-int.

If you do not specify the repositories “zypper dup” will use all enabled. I do not know what they are, and you could have some old or incompatible ones left from pre 12.3-release.

It’s because I added packman repo for mp3 and video codecs, now amarok and some other media stuff was taken from there. I don’t care.

Will now try to go to 64 bit by update install from dvd iso. Wish me luck and thanks again.


Additional reasons to be able to edit posts for longer than 10 minutes:

  • and you can add a [solved] to the thread title
  • and you can add the solution to the first post for others if a thread is multiple pages and the solution is all over them

devnoob wrote:
> djh-novell;2544369 Wrote:
>> The idea is that you proof-read BEFORE you post!
>
> Yes, I always do that. It’s more about if I have additional info and
> there was no other post in the meantime I’m used to extend a post with
> clearly marked [Edit1:], [Edit2:],… sections.

You have to remember that NNTP users won’t see anything that you edit
later. Posts are one-time immutable records. If you have new
information, make a new post. Edits are solely a last minute
mistake-correcting feature.

(locking the posts also stops some abuse by trolls who edit their posts
afterwards to wind people up)

Yes, I see your points. Did not know about NNTP. Just do not like to make so many posts to say so little. But this was the last one (about that), I promise.