1 |
On 2/4/21 5:56 PM, Michael wrote: |
2 |
> On Thursday, 4 February 2021 16:37:01 GMT n952162 wrote: |
3 |
>> On 2/4/21 5:17 PM, Jack wrote: |
4 |
>>> On 2/4/21 10:10 AM, n952162 wrote: |
5 |
>>>> On 2/4/21 3:47 PM, Matt Connell (Gmail) wrote: |
6 |
>>>>> On Thu, 2021-02-04 at 12:37 +0100, n952162 wrote: |
7 |
>>>>>> The VirtualBox kernel modules do not match this version of VirtualBox. |
8 |
>>>>> Whenever you update app-emulation/virtualbox *or* your kernel version, |
9 |
>>>>> you need to update app-emulation/virtualbox-modules as well. The |
10 |
>>>>> versions of those two packages have to be lock-step, and the latter |
11 |
>>>>> needs to be rebuilt whenever your kernel version changes, or else the |
12 |
>>>>> previously-built modules will not load. |
13 |
>>>> Both are in my world file: |
14 |
>>>> |
15 |
>>>> # grep virtualbox /var/lib/portage/world |
16 |
>>>> app-emulation/virtualbox |
17 |
>>>> app-emulation/virtualbox-modules |
18 |
>>> If you have already run virtualbox since the last reboot, you might |
19 |
>>> need to rmmod those modules to unload the older version. Then you can |
20 |
>>> use modprobe to load the new versions, without having to reboot. |
21 |
>>> |
22 |
>>> Jack |
23 |
>> Good tip, unfortunately, it didn't help: |
24 |
>> |
25 |
>> $ sudo rmmod vboxnetadp vboxnetflt vboxdrv |
26 |
>> Password: |
27 |
>> $ lsmod | grep vbox |
28 |
>> $ startvm txm1.4-new |
29 |
>> WARNING: The vboxdrv kernel module is not loaded. Either there is no module |
30 |
>> available for the current kernel (4.19.86-gentoo-x86_64) or it |
31 |
>> failed to |
32 |
>> load. Please recompile the kernel module and install it by |
33 |
>> |
34 |
>> for m in vbox{drv,netadp,netflt}; do modprobe $m; done |
35 |
>> |
36 |
>> You will not be able to start VMs until this problem is fixed. |
37 |
>> Waiting for VM "txm1.4-new" to power on... |
38 |
>> VBoxManage: error: The virtual machine 'txm1.4-new' has terminated |
39 |
>> unexpectedly during startup with exit code 1 (0x1) |
40 |
>> VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), |
41 |
>> component MachineWrap, interface IMachine |
42 |
>> |
43 |
>> That takes away my confidence that it would work after a re-boot ... |
44 |
> Try again updating the modules, but use the correct syntax. The prefix "@" |
45 |
> denotes this is a predefined set and it will rebuild any packages which own |
46 |
> files in your /lib/modules: |
47 |
> |
48 |
> emerge -1aDv @module-rebuild |
49 |
|
50 |
??? |
51 |
|
52 |
Sorry, if I gave the impression, when I said: |
53 |
|
54 |
/I tried that (using "module-rebuild")/ |
55 |
|
56 |
that I ran it without the "@". I was just referring to the original |
57 |
suggestion had "@module*s*-rebuild". |
58 |
|
59 |
Did you run on the host, after you updated your VBox: |
60 |
|
61 |
emerge -uaDv @modules-rebuild |
62 |
|
63 |
In fact, it had emerged successfully: |
64 |
|
65 |
... |
66 |
[ebuild U ] sys-libs/timezone-data-2020e::gentoo |
67 |
[2020d::gentoo] USE="nls -leaps-timezone -zic-slim" 659 KiB |
68 |
[ebuild U ] app-eselect/eselect-pinentry-0.7.1::gentoo |
69 |
[0.7::gentoo] 0 KiB |
70 |
[ebuild U ] virtual/perl-Data-Dumper-2.174.0-r2::gentoo |
71 |
[2.174.0-r1::gentoo] 0 KiB |
72 |
[ebuild NS ] sys-kernel/gentoo-sources-5.4.92:5.4.92::gentoo |
73 |
[4.19.86:4.19.86::gentoo, 5.4.38:5.4.38::gentoo, |
74 |
5.4.66:5.4.66::gentoo, 5.4.80-r1:5.4.80-r1::gentoo] USE="-build |
75 |
-experimental -symlink" 2938 KiB |
76 |
|
77 |
Total: 4 packages (3 upgrades, 1 in new slot), Size of downloads: |
78 |
3596 KiB |
79 |
... |
80 |
|
81 |
but failed to run. |
82 |
|
83 |
> I assume you have already installed 'app-emulation/virtualbox-modules' at |
84 |
> least once, if VBox was working OK until recently? Otherwise, emerge the |
85 |
> package 'app-emulation/virtualbox-modules' and modprobe each module keeping an |
86 |
> eye in dmesg to make sure they load without further errors. |
87 |
|
88 |
|
89 |
I followed this advice, to load each module (from equery files |
90 |
virtualbox-modules) by hand, and that worked, for whatever reason that |
91 |
it didn't work before after unloading the modules by hand, as |
92 |
recommended by Jack ... they were not loaded when I just loaded them now |
93 |
... ah - naturally, I loaded them with sudo, but didn't use sudo when I |
94 |
ran startvm ... Hmmm. We'll see how it starts up tomorrow ;-) |