You are not logged in.

#1 2012-11-18 11:52:38

dxxvi
Member
Registered: 2011-07-23
Posts: 93

linux-ck and virtualbox

Hi All,

These are the virtualbox-related packages that I have:

[ly@ArchCustom ~]$ pacman -Q | grep virtualbox
virtualbox 4.2.4-2
virtualbox-ck-guest-modules 4.2.4-4
virtualbox-ck-host-modules 4.2.4-4
virtualbox-guest-source 4.2.4-2
virtualbox-host-source 4.2.4-2

Similarly for linux-related packages:

[ly@ArchCustom ~]$ pacman -Q | grep linux
archlinux-keyring 20121113-1
linux-api-headers 3.6.3-1
linux-ck 3.6.6-1
linux-ck-headers 3.6.6-1
linux-firmware 20120625-1
util-linux 2.22.1-2

The VirtualBox wikiasks to generate the kernel modules with

dkms install vboxhost/$(pacman -Q virtualbox|awk {'print $2'}|sed 's/\-.\+//') -k $(uname -rm|sed 's/\ /\//')

which produces some error:

[ly@ArchCustom ~]$ sudo dkms install vboxhost/$(pacman -Q virtualbox|awk {'print $2'}|sed 's/\-.\+//') -k $(uname -rm|sed 's/\ /\//')

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.6.6-1-ck -C /usr/lib/modules/3.6.6-1-ck/build M=/var/lib/dkms/vboxhost/4.2.4/build.............
cleaning build area....

DKMS: build completed.

vboxdrv.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /usr/lib/modules/3.6.6-1-ck/kernel/misc/

vboxnetflt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /usr/lib/modules/3.6.6-1-ck/kernel/misc/

vboxnetadp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /usr/lib/modules/3.6.6-1-ck/kernel/misc/

vboxpci.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /usr/lib/modules/3.6.6-1-ck/kernel/misc/

depmod....(bad exit status: 134)

-------- Uninstall Beginning --------
Module:  vboxhost
Version: 4.2.4
Kernel:  3.6.6-1-ck (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko:
 - Uninstallation
   - Deleting from: /usr/lib/modules/3.6.6-1-ck/kernel/misc/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


vboxnetflt.ko:
 - Uninstallation
   - Deleting from: /usr/lib/modules/3.6.6-1-ck/kernel/misc/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


vboxnetadp.ko:
 - Uninstallation
   - Deleting from: /usr/lib/modules/3.6.6-1-ck/kernel/misc/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.


vboxpci.ko:
 - Uninstallation
   - Deleting from: /usr/lib/modules/3.6.6-1-ck/kernel/misc/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.
Error! Problems with depmod detected.  Automatically uninstalling this module.
DKMS: Install Failed (depmod problems).  Module rolled back to built state.

Does anybody know what's wrong?

Thanks.

Offline

#2 2012-11-18 12:49:46

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: linux-ck and virtualbox

To build modules you only need virtualbox-host-source. Since you have installed
virtualbox-ck-modules which contains prebuilt ck modules, you don't need to build them at all.

Either remove virtualbox-host-source and use prebuilt modules or remove virtualbox-ck-modules
and build them yourself.

Errors are probably caused by existing ck modules. Have you even tried loading modules and running VBox?

Offline

#3 2012-11-18 13:29:14

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,348
Website

Re: linux-ck and virtualbox

Your flaw is using dkms.  When you build the virtualbox-ck-modules packages, you are circumventing the need for dkms completely by providing the modules yourself.

1) Use DKMS and do not use virtualbox-ck-modules.
2) Use virtualbox-ck-modules and not DKMS.

Note - the whole reason I wrote the package in the AUR (...and the virtualbox-xxx modules for the repo) is to keep users from having to use DKMS which is horribly unreliable in my experience.

Last edited by graysky (2012-11-18 13:30:46)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2012-11-19 03:11:31

dxxvi
Member
Registered: 2011-07-23
Posts: 93

Re: linux-ck and virtualbox

Thank all for your replies. No, I haven't tried loading vboxdrv and running virtualbox. I should do that.

Now my machine cannot start. It stops at

/dev/sda5: clean, xxxxx/xxxxxx files, xxxxx/xxxxxx blocks
[   3.xxxxx] systemd-udevd[115]: '/usr/share/virtualbox/VBoxCreateUSBNode.sh 189 0 09 vboxusers' [122] terminated by signal 15 (Terminated)
[   3.xxxxx] systemd-udevd[125]: '/usr/share/virtualbox/VBoxCreateUSBNode.sh 189 128 09 vboxusers' [122] terminated by signal 15 (Terminated)

How should I fix it? Should I boot it with the Arch iso and then change to root and fix it there?

Offline

#5 2012-11-19 09:57:04

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,348
Website

Re: linux-ck and virtualbox

Chroot from live media seems to be your only option if the machine doesn't boot.  Chroot into it and remove virtualbox and all related packages.  See if it boots then.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB