You are not logged in.

#1 2012-04-25 18:41:30

DoYouSpeakWak
Member
From: Denmark
Registered: 2012-02-12
Posts: 30

[solved] Virtualbox + kernel upgrade errors

I have these problems with virtualbox. 

Ran pacman -Syu and got these errors/notices during upgrade

Building virtualbox modules for 3.3.3-1-ARCH kernel...
:: Unloading VirtualBox kernel modules    [BUSY]    [FAIL] 
error: `/lib/modules/3.3.3-1-ARCH/build' does not appear to be a valid kernel build directory.
:: Reloading VirtualBox kernel modules    [BUSY]    [FAIL] 
Ok.
	
	
Building virtualbox modules for 3.3.3-1-ARCH kernel...
:: Unloading VirtualBox kernel modules    [BUSY]    [FAIL] 
error: `/lib/modules/3.3.3-1-ARCH/build' does not appear to be a valid kernel build directory.
:: Reloading VirtualBox kernel modules    [BUSY]    [FAIL] 
Ok.

I knew i had virtualbox-hook installed and that was suppose to take care of this, as i understood.

So i tried the following.

[root@wlan username]# pacman -Rns virtualbox virtualbox-source
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: virtualbox-hook: requires virtualbox-source
[root@wlan username]# pacman -S virtualbox-source
warning: virtualbox-source-4.1.12-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): virtualbox-source-4.1.12-1

Total Installed Size:   8.74 MiB
Net Upgrade Size:       0.00 MiB

Proceed with installation? [Y/n] y
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
(1/1) upgrading virtualbox-source                  [######################] 100%
===> To recompile the modules do /usr/bin/vboxbuild
[root@wlan username]# /usr/bin/vboxbuild
:: Unloading VirtualBox kernel modules                                   [DONE] 
error: `/lib/modules/3.3.3-1-ARCH/build' does not appear to be a valid kernel build directory.
:: Reloading VirtualBox kernel modules                                   [DONE] 
[root@wlan username]# 

As i read that, it still gives out an error if i reinstall it so im not sure the aur package is to blame..

Any idea how to fix the problem ?

Last edited by DoYouSpeakWak (2012-04-26 09:52:18)

Offline

#2 2012-04-25 19:17:56

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [solved] Virtualbox + kernel upgrade errors

/lib/modules/3.3.3-1-ARCH/build is part of the "linux-headers" package. Double check to make sure it's up to date.

PS: You've also rebooted after the kernel upgrade I take it?


Burninate!

Offline

#3 2012-04-25 21:06:13

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [solved] Virtualbox + kernel upgrade errors

Moved to Newbie Forum


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2012-04-26 09:51:34

DoYouSpeakWak
Member
From: Denmark
Registered: 2012-02-12
Posts: 30

Re: [solved] Virtualbox + kernel upgrade errors

Gcool wrote:

/lib/modules/3.3.3-1-ARCH/build is part of the "linux-headers" package. Double check to make sure it's up to date.

PS: You've also rebooted after the kernel upgrade I take it?

Thx. linux-headers wasnt even installed. So after it was installed i ran pacman -S virtualbox-source and the modules were upgraded as intended.

Offline

#5 2012-04-26 10:23:16

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [solved] Virtualbox + kernel upgrade errors

why don't you use virtualbox-modules? this package contains precompiled modules for our stock kernel


Give what you have. To someone, it may be better than you dare to think.

Offline

#6 2012-06-30 22:58:47

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: [solved] Virtualbox + kernel upgrade errors

wonder wrote:

why don't you use virtualbox-modules? this package contains precompiled modules for our stock kernel


If you use the virtualbox-modules package you don't have to automatically recompile after each kernel update right????


Also in the case you need to recompile is there a way of doing it with systemd?? Make it sence when there us a kernel update and have a service recompile whatever is needed???

Offline

#7 2012-06-30 22:59:56

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [solved] Virtualbox + kernel upgrade errors

89c51 wrote:
wonder wrote:

why don't you use virtualbox-modules? this package contains precompiled modules for our stock kernel


If you use the virtualbox-modules package you don't have to automatically recompile after each kernel update right????

NO

Also in the case you need to recompile is there a way of doing it with systemd?? Make it sence when there us a kernel update and have a service recompile whatever is needed???

It is the same but i have to fix the script.


Give what you have. To someone, it may be better than you dare to think.

Offline

#8 2012-06-30 23:28:41

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: [solved] Virtualbox + kernel upgrade errors

Sorry got confused with the plain no. hmm

You are telling that you have to recompile as described in the wiki: https://wiki.archlinux.org/index.php/Vi … nel_update

Offline

#9 2012-07-01 00:14:01

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [solved] Virtualbox + kernel upgrade errors

you do not have to recompile any modules if you use virtualbox-modules since package includes precompiled modules, like nvidia.


Give what you have. To someone, it may be better than you dare to think.

Offline

#10 2012-07-01 00:18:21

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: [solved] Virtualbox + kernel upgrade errors

No, if you have the modules you don't have to recompile because you have the modules. This if you use the stock kernel from the repo.

Edit: *rats, a little too slow*

Last edited by stryder (2012-07-01 00:19:15)

Offline

#11 2012-07-01 07:38:00

89c51
Member
Registered: 2012-06-05
Posts: 741

Re: [solved] Virtualbox + kernel upgrade errors

OK got it thanks.

smile

Offline

Board footer

Powered by FluxBB