Fedora Online Forum

Il forum della comunità italiana di Fedora

#1 27-03-2019 22:37:12

Marco Galassi
Appena sbarcato sul forum
Da Fontanelice
Registrato: 06-02-2019
Messaggi: 30

Problema funzionamento VirtualBox

Ciao a tutti.
Non ricordo bene l'ultima volta che utilizzai VirtualBox, ma funzionava.
Stasera aprendo il software non mi è possibile utilizzarlo: mi presenta questo errore, come di seguito.
Ho disinstallato, reinstallato VirtualBox e tentato di capire, ma non ci sono riuscito.
HO seguito le guide che mi riportava l'errore: sapete come risolvere ?
Grazie.

Errore di virtualbox avviando la macchina virtuale:

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is probably not loaded.You may not have kernel driver installed for kernel that is runnig, if so you may do as root: dnf install akmod-VirtualBox kernel-devel-$(uname -r)If you installed VirtualBox packages and don't want reboot the system, you may need load the kernel driver, doing as root: akmods; systemctl restart systemd-modules-load.service

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

Ultima modifica di Marco Galassi (27-03-2019 22:40:10)

Non in linea

#2 27-03-2019 23:42:02

bebo_sudo
Collaboratore
Da Trento+Trieste
Registrato: 28-02-2011
Messaggi: 2'075
Sito web

Re: Problema funzionamento VirtualBox

Come hai installato virtualbox?
Ci sono dei driver che vanno compilati per ogni nuova versione del kernel. Solitamente viene fatto in automatico (da akmod, perche' leggo che non ci sono i kmod gia' compilati per VBox).

Intanto vediamo:

$ rpm -qa |grep -i virtualbox
$ rpm -qa |grep kernel-core
$ uname -a

Poi su internet dicono di dare questo da root:

# /usr/lib/virtualbox/vboxdrv.sh setup

posta l'output. Se l'output sembra tutto okay, riavvia il pc e vedi se ha risolto.

Se ancora non funziona, prova a dare questi da root:

# akmods
# systemctl restart systemd-modules-load.service
# dmesg | grep -i vbox

e vedi se questo how-to aiuta: https://rpmfusion.org/Howto/VirtualBox


devzero.tk - github.com/bebosudo
Quando posti del codice, mettilo nel tag code! (senza spazi)            [ code]così[/ code]

Non in linea

#3 28-03-2019 07:32:11

QuarkF
Pinguino avanzato
Registrato: 01-04-2013
Messaggi: 272

Re: Problema funzionamento VirtualBox

Dovrebbe essere un bug di Selinux.
Esegui

# setenforce 0; systemctl restart systemd-modules-load.service; setenforce 1

e riprova. Dovrebbe funzionare, ma va ripetuto prima di far partire VirtualBox la prima volta dopo un riavvio.


Al mondo ci sono 10 tipi di persone: quelle che conoscono la numerazione binaria e quelle che non la capiscono.

Non in linea

#4 28-03-2019 08:36:02

Marco Galassi
Appena sbarcato sul forum
Da Fontanelice
Registrato: 06-02-2019
Messaggi: 30

Re: Problema funzionamento VirtualBox

[root@localhost ~]# rpm -qa | grep -i virtualbox
VirtualBox-server-5.2.24-1.fc29.x86_64
kmod-VirtualBox-4.20.16-200.fc29.x86_64-5.2.24-1.fc29.x86_64
VirtualBox-kmodsrc-5.2.24-1.fc29.noarch
akmod-VirtualBox-5.2.24-1.fc29.x86_64
virtualbox-guest-additions-6.0.4-2.fc29.x86_64
[root@localhost ~]# rpm -qa |grep kernel-core
kernel-core-5.0.3-200.fc29.x86_64
kernel-core-4.20.16-200.fc29.x86_64
kernel-core-4.20.15-200.fc29.x86_64
[root@localhost ~]# uname -a
Linux localhost.localdomain 5.0.3-200.fc29.x86_64 #1 SMP Tue Mar 19 15:07:58 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# /usr/lib/virtualbox/vboxdrv.sh setup
bash: /usr/lib/virtualbox/vboxdrv.sh: File o directory non esistente
[root@localhost ~]# akmods
Checking kmods exist for 5.0.3-200.fc29.x86_64             [  OK  ]
Building and installing VirtualBox-kmod                    [FALLITO]
Building rpms failed; see /var/cache/akmods/VirtualBox/5.2.24-1-for-5.0.3-200.fc29.x86_64.failed.log for details

Hint: Some kmods were ignored or failed to build or install.
You can try to rebuild and install them by by calling
'/usr/sbin/akmods --force' as root.
# systemctl restart systemd-modules-load.service
Job for systemd-modules-load.service failed because the control process exited with error code.
See "systemctl status systemd-modules-load.service" and "journalctl -xe" for details.

Non funziona ancora.

Non in linea

#5 28-03-2019 09:57:48

bebo_sudo
Collaboratore
Da Trento+Trieste
Registrato: 28-02-2011
Messaggi: 2'075
Sito web

Re: Problema funzionamento VirtualBox

Vediamo:

# cat /var/cache/akmods/VirtualBox/5.2.24-1-for-5.0.3-200.fc29.x86_64.failed.log

# systemctl status systemd-modules-load

Partendo con uno dei kernel vecchi funziona?


devzero.tk - github.com/bebosudo
Quando posti del codice, mettilo nel tag code! (senza spazi)            [ code]così[/ code]

Non in linea

#6 28-03-2019 12:37:44

Marco Galassi
Appena sbarcato sul forum
Da Fontanelice
Registrato: 06-02-2019
Messaggi: 30

Re: Problema funzionamento VirtualBox

Questo è l'errore che si presenta col comando systemd-modules-load: mi direste il comando per eliminare completamente tutte le dipendenze  ?
io uso dnf remove, o dnf esase: non so se sia corretto...
Poi ovviamente dnf autoremove per tutte le dipendenze.

[root@localhost marco]# systemctl status systemd-modules-load
● systemd-modules-load.service - Load Kernel Modules
   Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2019-03-28 12:26:54 CET; 1min 29s ago
     Docs: man:systemd-modules-load.service(8)
           man:modules-load.d(5)
  Process: 3093 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
 Main PID: 3093 (code=exited, status=1/FAILURE)

mar 28 12:26:54 localhost.localdomain systemd[1]: Starting Load Kernel Modules...
mar 28 12:26:54 localhost.localdomain systemd-modules-load[3093]: Failed to find module 'vboxdrv'
mar 28 12:26:54 localhost.localdomain systemd-modules-load[3093]: Failed to find module 'vboxnetflt'
mar 28 12:26:54 localhost.localdomain systemd-modules-load[3093]: Failed to find module 'vboxnetadp'
mar 28 12:26:54 localhost.localdomain systemd-modules-load[3093]: Failed to find module 'vboxpci'
mar 28 12:26:54 localhost.localdomain systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
mar 28 12:26:54 localhost.localdomain systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
mar 28 12:26:54 localhost.localdomain systemd[1]: Failed to start Load Kernel Modules

Ho RISOLTO utilizzando il precedente kernel e non ho  problemi, nemmeno con VirtualBox: mi sapreste indicare e spiegare il motivo ?
Il problema è VirtualBox ?
Grazie.
ps: quando avrò ricevuto risposta per capire come affrontare questi problemi di compatibilità, chiuderò la domanda come RISOLTO, ma vorrei capire per curiosità il problema che mi è capitato: per segnalare il problema, è sufficiente aspettare quale aggiornamento ?

Ultima modifica di Marco Galassi (28-03-2019 12:46:21)

Non in linea

#7 28-03-2019 13:52:25

QuarkF
Pinguino avanzato
Registrato: 01-04-2013
Messaggi: 272

Re: Problema funzionamento VirtualBox

Effettivamente sembra un bug relativo alla serie 5 del kernel:

# akmods --force --kernel 5.0.3-200.fc29.x86_64
Checking kmods exist for 5.0.3-200.fc29.x86_64             [  OK  ]
Building and installing VirtualBox-kmod                    [FALLITO]
Building rpms failed; see /var/cache/akmods/VirtualBox/5.2.24-1-for-5.0.3-200.fc29.x86_64.failed.log for details

Hint: Some kmods were ignored or failed to build or install.
You can try to rebuild and install them by by calling
'/usr/sbin/akmods --force' as root.
# cat /var/cache/akmods/VirtualBox/5.2.24-1-for-5.0.3-200.fc29.x86_64.failed.log
2019/03/28 13:40:54 akmods: Building RPM using the command '/sbin/akmodsbuild --kernels 5.0.3-200.fc29.x86_64 /usr/src/akmods/VirtualBox-kmod.latest'
  CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/SUPDrv.o
  CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/SUPDrvGip.o
  CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/SUPDrvSem.o
  CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/SUPDrvTracer.o
  CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/SUPLibAll.o
  CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/alloc-r0drv.o
  CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/initterm-r0drv.o
/tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/SUPDrvTracer.o: warning: objtool: .text+0x7: indirect jump found in RETPOLINE build
  CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/memobj-r0drv.o
  CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/mpnotification-r0drv.o
  CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/powernotification-r0drv.o
  CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/assert-r0drv-linux.o
  CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/alloc-r0drv-linux.o
  CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/initterm-r0drv-linux.o
  CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/memobj-r0drv-linux.o
  CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.o
  CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/mp-r0drv-linux.o
  CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/mpnotification-r0drv-linux.o
/tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.c: In function 'VBoxHost_RTR0MemUserIsValidAddr':
/tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.c:69:55: error: macro "access_ok" passed 3 arguments, but takes just 2
     bool fRc = access_ok(VERIFY_READ, (void *)R3Ptr, 1);
                                                       ^
/tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.c:69:16: error: 'access_ok' undeclared (first use in this function)
     bool fRc = access_ok(VERIFY_READ, (void *)R3Ptr, 1);
                ^~~~~~~~~
/tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.c:69:16: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [scripts/Makefile.build:277: /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1557: _module_/tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv] Error 2
make: Leaving directory '/usr/src/kernels/5.0.3-200.fc29.x86_64'
errore: Stato d'uscita errato da /var/tmp/rpm-tmp.wqXO3K (%build)


Errori di compilazione RPM:
    Stato d'uscita errato da /var/tmp/rpm-tmp.wqXO3K (%build)
2019/03/28 13:41:03 akmodsbuild: * Rebuilding /usr/src/akmods/VirtualBox-kmod.latest for kernel(s) 5.0.3-200.fc29.x86_64: Installazione di /usr/src/akmods/VirtualBox-kmod.latest in corso
2019/03/28 13:41:03 akmodsbuild: Creazione piattaforme target in corso: x86_64
2019/03/28 13:41:03 akmodsbuild: Creazione per il target x86_64 in corso
2019/03/28 13:41:03 akmodsbuild: Esecuzione(%prep) in corso: /bin/sh -e /var/tmp/rpm-tmp.oY5h99
2019/03/28 13:41:03 akmodsbuild: + umask 022
2019/03/28 13:41:03 akmodsbuild: + cd /tmp/akmodsbuild.6od2d9ah//BUILD
2019/03/28 13:41:03 akmodsbuild: + cd /tmp/akmodsbuild.6od2d9ah/BUILD
2019/03/28 13:41:03 akmodsbuild: + rm -rf VirtualBox-kmod-5.2.24
2019/03/28 13:41:03 akmodsbuild: + /usr/bin/mkdir -p VirtualBox-kmod-5.2.24
2019/03/28 13:41:03 akmodsbuild: + cd VirtualBox-kmod-5.2.24
2019/03/28 13:41:03 akmodsbuild: + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
2019/03/28 13:41:03 akmodsbuild: + tar --use-compress-program xz -xf /usr/share/VirtualBox-kmod-5.2.24/VirtualBox-kmod-5.2.24.tar.xz
2019/03/28 13:41:03 akmodsbuild: + pushd VirtualBox-kmod-5.2.24
2019/03/28 13:41:03 akmodsbuild: /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/VirtualBox-kmod-5.2.24 /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24
2019/03/28 13:41:03 akmodsbuild: + rm -rf vboxsf/
2019/03/28 13:41:03 akmodsbuild: + unzip /tmp/akmodsbuild.6od2d9ah/SOURCES/master.zip
2019/03/28 13:41:03 akmodsbuild: Archive:  /tmp/akmodsbuild.6od2d9ah/SOURCES/master.zip
2019/03/28 13:41:03 akmodsbuild: 9451f61e6787e95aa51e42b6381db6b059bc49da
2019/03/28 13:41:03 akmodsbuild: creating: vboxsf-master/
2019/03/28 13:41:03 akmodsbuild: inflating: vboxsf-master/Makefile
2019/03/28 13:41:03 akmodsbuild: inflating: vboxsf-master/dir.c
2019/03/28 13:41:03 akmodsbuild: inflating: vboxsf-master/file.c
2019/03/28 13:41:03 akmodsbuild: inflating: vboxsf-master/shfl_hostintf.h
2019/03/28 13:41:03 akmodsbuild: inflating: vboxsf-master/super.c
2019/03/28 13:41:03 akmodsbuild: inflating: vboxsf-master/utils.c
2019/03/28 13:41:03 akmodsbuild: inflating: vboxsf-master/vboxsf_wrappers.c
2019/03/28 13:41:03 akmodsbuild: inflating: vboxsf-master/vfsmod.h
2019/03/28 13:41:03 akmodsbuild: + mv vboxsf-master/ vboxsf/
2019/03/28 13:41:03 akmodsbuild: + popd
2019/03/28 13:41:03 akmodsbuild: /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24
2019/03/28 13:41:03 akmodsbuild: + kmodtool --target x86_64 --repo rpmfusion --kmodname VirtualBox-kmod --akmod --for-kernels 5.0.3-200.fc29.x86_64 --filterfile /tmp/akmodsbuild.6od2d9ah/SOURCES/VirtualBox-kmod-excludekernel-filter.txt
2019/03/28 13:41:03 akmodsbuild: %global  _prefix_usr      /usr
2019/03/28 13:41:03 akmodsbuild: 
2019/03/28 13:41:03 akmodsbuild: %if 0%{?rhel}
2019/03/28 13:41:03 akmodsbuild: %package       -n kmod-VirtualBox
2019/03/28 13:41:03 akmodsbuild: Summary:          VirtualBox kernel module(s) for 5.0.3-200.fc29
2019/03/28 13:41:03 akmodsbuild: Provides:         kernel-modules = 5.0.3-200.fc29.x86_64
2019/03/28 13:41:03 akmodsbuild: Provides:         VirtualBox-kmod = %{?epoch:%{epoch}:}%{version}-%{release}
2019/03/28 13:41:03 akmodsbuild: Requires:         VirtualBox-kmod-common >= %{?epoch:%{epoch}:}%{version}
2019/03/28 13:41:03 akmodsbuild: Requires(post):   %{?_prefix_usr}/sbin/weak-modules
2019/03/28 13:41:03 akmodsbuild: Requires(post):   %{?_prefix_usr}/sbin/depmod
2019/03/28 13:41:03 akmodsbuild: Requires(postun): %{?_prefix_usr}/sbin/weak-modules
2019/03/28 13:41:03 akmodsbuild: Requires(postun): %{?_prefix_usr}/sbin/depmod
2019/03/28 13:41:03 akmodsbuild: %else
2019/03/28 13:41:03 akmodsbuild: %package       -n kmod-VirtualBox-5.0.3-200.fc29.x86_64
2019/03/28 13:41:03 akmodsbuild: Summary:          VirtualBox kernel module(s) for 5.0.3-200.fc29.x86_64
2019/03/28 13:41:03 akmodsbuild: Provides:         kernel-modules-for-kernel = 5.0.3-200.fc29.x86_64
2019/03/28 13:41:03 akmodsbuild: Provides:         VirtualBox-kmod = %{?epoch:%{epoch}:}%{version}-%{release}
2019/03/28 13:41:03 akmodsbuild: Requires:         VirtualBox-kmod-common >= %{?epoch:%{epoch}:}%{version}
2019/03/28 13:41:03 akmodsbuild: Requires(post):   %{?_prefix_usr}/sbin/depmod
2019/03/28 13:41:03 akmodsbuild: Requires(postun): %{?_prefix_usr}/sbin/depmod
2019/03/28 13:41:03 akmodsbuild: %endif
2019/03/28 13:41:03 akmodsbuild: 
2019/03/28 13:41:03 akmodsbuild: %if 0%{?rhel}
2019/03/28 13:41:03 akmodsbuild: Requires:         kernel >= 5.0.3-200.fc29
2019/03/28 13:41:03 akmodsbuild: Requires:         kernel < 5.0.3-201.fc29
2019/03/28 13:41:03 akmodsbuild: BuildRequires:    kernel-devel = 5.0.3-200.fc29 redhat-rpm-config kernel-abi-whitelists
2019/03/28 13:41:03 akmodsbuild: 
2019/03/28 13:41:03 akmodsbuild: %post          -n kmod-VirtualBox
2019/03/28 13:41:03 akmodsbuild: %{?_prefix_usr}/sbin/depmod -aeF /boot/System.map-5.0.3-200.fc29.x86_64 5.0.3-200.fc29.x86_64 > /dev/null || :
2019/03/28 13:41:03 akmodsbuild: 
2019/03/28 13:41:03 akmodsbuild: modules=( $(find /usr/lib/modules/5.0.3-200.fc29.x86_64/extra/VirtualBox/ | grep -e '.ko$') )
2019/03/28 13:41:03 akmodsbuild: printf '%sn' "${modules[@]}" | %{?_prefix_usr}/sbin/weak-modules --add-modules
2019/03/28 13:41:03 akmodsbuild: 
2019/03/28 13:41:03 akmodsbuild: %preun         -n kmod-VirtualBox
2019/03/28 13:41:03 akmodsbuild: rpm -ql kmod-VirtualBox-%{version}-%{release}.x86_64 | grep -e '.ko$' > /var/run/rpm-kmod-VirtualBox-modules
2019/03/28 13:41:03 akmodsbuild: 
2019/03/28 13:41:03 akmodsbuild: %postun        -n kmod-VirtualBox
2019/03/28 13:41:03 akmodsbuild: %{?_prefix_usr}/sbin/depmod -aeF /boot/System.map-5.0.3-200.fc29.x86_64 5.0.3-200.fc29.x86_64 &> /dev/null || :
2019/03/28 13:41:03 akmodsbuild: 
2019/03/28 13:41:03 akmodsbuild: modules=( $(cat /var/run/rpm-kmod-VirtualBox-modules) )
2019/03/28 13:41:03 akmodsbuild: rm /var/run/rpm-kmod-VirtualBox-modules
2019/03/28 13:41:03 akmodsbuild: printf '%sn' "${modules[@]}" | %{?_prefix_usr}/sbin/weak-modules --remove-modules
2019/03/28 13:41:03 akmodsbuild: %else
2019/03/28 13:41:03 akmodsbuild: Requires:         kernel-uname-r = 5.0.3-200.fc29.x86_64
2019/03/28 13:41:03 akmodsbuild: BuildRequires:    kernel-devel-uname-r = 5.0.3-200.fc29.x86_64
2019/03/28 13:41:03 akmodsbuild: BuildRequires:    gcc
2019/03/28 13:41:03 akmodsbuild: %post          -n kmod-VirtualBox-5.0.3-200.fc29.x86_64
2019/03/28 13:41:03 akmodsbuild: %{?_prefix_usr}/sbin/depmod -aeF /boot/System.map-5.0.3-200.fc29.x86_64 5.0.3-200.fc29.x86_64 > /dev/null || :
2019/03/28 13:41:03 akmodsbuild: %postun        -n kmod-VirtualBox-5.0.3-200.fc29.x86_64
2019/03/28 13:41:03 akmodsbuild: %{?_prefix_usr}/sbin/depmod -aeF /boot/System.map-5.0.3-200.fc29.x86_64 5.0.3-200.fc29.x86_64 &> /dev/null || :
2019/03/28 13:41:03 akmodsbuild: %endif
2019/03/28 13:41:03 akmodsbuild: 
2019/03/28 13:41:03 akmodsbuild: %if 0%{?rhel}
2019/03/28 13:41:03 akmodsbuild: %description   -n kmod-VirtualBox
2019/03/28 13:41:03 akmodsbuild: This package provides the VirtualBox kernel modules built for the Linux
2019/03/28 13:41:03 akmodsbuild: kernel 5.0.3-200.fc29 for the %{_target_cpu} family of processors.
2019/03/28 13:41:03 akmodsbuild: %files         -n kmod-VirtualBox
2019/03/28 13:41:03 akmodsbuild: %defattr(644,root,root,755)
2019/03/28 13:41:03 akmodsbuild: %dir /usr/lib/modules/5.0.3-200.fc29.x86_64/extra
2019/03/28 13:41:03 akmodsbuild: /usr/lib/modules/5.0.3-200.fc29.x86_64/extra/VirtualBox/
2019/03/28 13:41:03 akmodsbuild: %else
2019/03/28 13:41:03 akmodsbuild: %description   -n kmod-VirtualBox-5.0.3-200.fc29.x86_64
2019/03/28 13:41:03 akmodsbuild: This package provides the VirtualBox kernel modules built for the Linux
2019/03/28 13:41:03 akmodsbuild: kernel 5.0.3-200.fc29.x86_64 for the %{_target_cpu} family of processors.
2019/03/28 13:41:03 akmodsbuild: %files         -n kmod-VirtualBox-5.0.3-200.fc29.x86_64
2019/03/28 13:41:03 akmodsbuild: %defattr(644,root,root,755)
2019/03/28 13:41:03 akmodsbuild: %dir /usr/lib/modules/5.0.3-200.fc29.x86_64/extra
2019/03/28 13:41:03 akmodsbuild: /usr/lib/modules/5.0.3-200.fc29.x86_64/extra/VirtualBox/
2019/03/28 13:41:03 akmodsbuild: %endif
2019/03/28 13:41:03 akmodsbuild: 
2019/03/28 13:41:03 akmodsbuild: %global kmodinstdir_prefix  /usr/lib/modules/
2019/03/28 13:41:03 akmodsbuild: %global kmodinstdir_postfix /extra/VirtualBox/
2019/03/28 13:41:03 akmodsbuild: %global kernel_versions     5.0.3-200.fc29.x86_64___%{_usrsrc}/kernels/5.0.3-200.fc29.x86_64
2019/03/28 13:41:03 akmodsbuild: %global debug_package %{nil}
2019/03/28 13:41:03 akmodsbuild: 
2019/03/28 13:41:03 akmodsbuild: + for kernel_version in 5.0.3-200.fc29.x86_64___/usr/src/kernels/5.0.3-200.fc29.x86_64
2019/03/28 13:41:03 akmodsbuild: + cp -al VirtualBox-kmod-5.2.24 _kmod_build_5.0.3-200.fc29.x86_64
2019/03/28 13:41:03 akmodsbuild: + exit 0
2019/03/28 13:41:03 akmodsbuild: Esecuzione(%build) in corso: /bin/sh -e /var/tmp/rpm-tmp.wqXO3K
2019/03/28 13:41:03 akmodsbuild: + umask 022
2019/03/28 13:41:03 akmodsbuild: + cd /tmp/akmodsbuild.6od2d9ah//BUILD
2019/03/28 13:41:03 akmodsbuild: + cd VirtualBox-kmod-5.2.24
2019/03/28 13:41:03 akmodsbuild: + for kernel_version in 5.0.3-200.fc29.x86_64___/usr/src/kernels/5.0.3-200.fc29.x86_64
2019/03/28 13:41:03 akmodsbuild: + for module in vboxdrv
2019/03/28 13:41:03 akmodsbuild: + make VBOX_USE_INSERT_PAGE=1 -j4 KERN_DIR=/usr/src/kernels/5.0.3-200.fc29.x86_64 -C /usr/src/kernels/5.0.3-200.fc29.x86_64 SUBDIRS=/tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv modules
2019/03/28 13:41:03 akmodsbuild: make: Entering directory '/usr/src/kernels/5.0.3-200.fc29.x86_64'
2019/03/28 13:41:03 akmodsbuild: Makefile:189: ================= WARNING ================
2019/03/28 13:41:03 akmodsbuild: Makefile:190: 'SUBDIRS' will be removed after Linux 5.3
2019/03/28 13:41:03 akmodsbuild: Makefile:191: Please use 'M=' or 'KBUILD_EXTMOD' instead
2019/03/28 13:41:03 akmodsbuild: Makefile:192: ==========================================
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/linux/SUPDrv-linux.o
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/SUPDrv.o
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/SUPDrvGip.o
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/SUPDrvSem.o
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/SUPDrvTracer.o
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/SUPLibAll.o
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/alloc-r0drv.o
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/initterm-r0drv.o
2019/03/28 13:41:03 akmodsbuild: /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/SUPDrvTracer.o: warning: objtool: .text+0x7: indirect jump found in RETPOLINE build
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/memobj-r0drv.o
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/mpnotification-r0drv.o
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/powernotification-r0drv.o
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/assert-r0drv-linux.o
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/alloc-r0drv-linux.o
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/initterm-r0drv-linux.o
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/memobj-r0drv-linux.o
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.o
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/mp-r0drv-linux.o
2019/03/28 13:41:03 akmodsbuild: CC [M]  /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/mpnotification-r0drv-linux.o
2019/03/28 13:41:03 akmodsbuild: /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.c: In function 'VBoxHost_RTR0MemUserIsValidAddr':
2019/03/28 13:41:03 akmodsbuild: /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.c:69:55: error: macro "access_ok" passed 3 arguments, but takes just 2
2019/03/28 13:41:03 akmodsbuild: bool fRc = access_ok(VERIFY_READ, (void *)R3Ptr, 1);
2019/03/28 13:41:03 akmodsbuild: ^
2019/03/28 13:41:03 akmodsbuild: /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.c:69:16: error: 'access_ok' undeclared (first use in this function)
2019/03/28 13:41:03 akmodsbuild: bool fRc = access_ok(VERIFY_READ, (void *)R3Ptr, 1);
2019/03/28 13:41:03 akmodsbuild: ^~~~~~~~~
2019/03/28 13:41:03 akmodsbuild: /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.c:69:16: note: each undeclared identifier is reported only once for each function it appears in
2019/03/28 13:41:03 akmodsbuild: make[1]: *** [scripts/Makefile.build:277: /tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.o] Error 1
2019/03/28 13:41:03 akmodsbuild: make[1]: *** Waiting for unfinished jobs....
2019/03/28 13:41:03 akmodsbuild: make: *** [Makefile:1557: _module_/tmp/akmodsbuild.6od2d9ah/BUILD/VirtualBox-kmod-5.2.24/_kmod_build_5.0.3-200.fc29.x86_64/vboxdrv] Error 2
2019/03/28 13:41:03 akmodsbuild: make: Leaving directory '/usr/src/kernels/5.0.3-200.fc29.x86_64'
2019/03/28 13:41:03 akmodsbuild: errore: Stato d'uscita errato da /var/tmp/rpm-tmp.wqXO3K (%build)
2019/03/28 13:41:03 akmodsbuild: 
2019/03/28 13:41:03 akmodsbuild: 
2019/03/28 13:41:03 akmodsbuild: Errori di compilazione RPM:
2019/03/28 13:41:03 akmodsbuild: Stato d'uscita errato da /var/tmp/rpm-tmp.wqXO3K (%build)
2019/03/28 13:41:03 akmodsbuild: 
2019/03/28 13:41:03 akmods: Building rpms failed; see /var/cache/akmods/VirtualBox/5.2.24-1-for-5.0.3-200.fc29.x86_64.failed.log for details

Al mondo ci sono 10 tipi di persone: quelle che conoscono la numerazione binaria e quelle che non la capiscono.

Non in linea

#8 28-03-2019 16:02:19

bebo_sudo
Collaboratore
Da Trento+Trieste
Registrato: 28-02-2011
Messaggi: 2'075
Sito web

Re: Problema funzionamento VirtualBox

Ok, e' un problema del nuovo kernel 5.x e virtualbox 6 (ma succede anche con altri software, a me con i driver video nvidia).

Con il kernel 5.x hanno cambiato la definizione della funzione access_ok, togliendo un parametro.

Ne parlano in un thread nel reddit di fedora: https://www.reddit.com/r/Fedora/comment … 03_kernel/
e qui c'e' il bugzilla relativo: https://bugzilla.rpmfusion.org/show_bug.cgi?id=5196
nel quale dicono che nel repo updates-testing sono gia' disponibili i nuovi pacchetti.
Puoi provarli con:

# dnf update VirtualBox\* --enablerepo=updates-testing

e riavviando con il nuovo kernel 5.x.


devzero.tk - github.com/bebosudo
Quando posti del codice, mettilo nel tag code! (senza spazi)            [ code]così[/ code]

Non in linea

#9 28-03-2019 20:59:58

QuarkF
Pinguino avanzato
Registrato: 01-04-2013
Messaggi: 272

Re: Problema funzionamento VirtualBox

bebo_sudo ha scritto:

Ne parlano in un thread nel reddit di fedora: https://www.reddit.com/r/Fedora/comment … 03_kernel/
e qui c'e' il bugzilla relativo: https://bugzilla.rpmfusion.org/show_bug.cgi?id=5196
nel quale dicono che nel repo updates-testing sono già disponibili i nuovi pacchetti.
Puoi provarli con:

# dnf update VirtualBox\* --enablerepo=updates-testing

e riavviando con il nuovo kernel 5.x.

In realtà dicono solo che presto saranno disponibili i nuovi pacchetti:

Ma si possono installare dai link riportati, o anche da terminale con

# dnf upgrade http://koji.rpmfusion.org/kojifiles/packages/VirtualBox/6.0.4/2.fc29/x86_64/VirtualBox-6.0.4-2.fc29.x86_64.rpm http://koji.rpmfusion.org/kojifiles/packages/VirtualBox/6.0.4/2.fc29/x86_64/VirtualBox-server-6.0.4-2.fc29.x86_64.rpm http://koji.rpmfusion.org/kojifiles/packages/VirtualBox-kmod/6.0.4/4.fc29/x86_64/akmod-VirtualBox-6.0.4-4.fc29.x86_64.rpm http://koji.rpmfusion.org/kojifiles/packages/VirtualBox/6.0.4/2.fc29/noarch/VirtualBox-kmodsrc-6.0.4-2.fc29.noarch.rpm
# setenforce 0; systemctl restart systemd-modules-load.service; setenforce 1

senza bisogno di riavviare.


Al mondo ci sono 10 tipi di persone: quelle che conoscono la numerazione binaria e quelle che non la capiscono.

Non in linea

#10 29-03-2019 13:03:32

bebo_sudo
Collaboratore
Da Trento+Trieste
Registrato: 28-02-2011
Messaggi: 2'075
Sito web

Re: Problema funzionamento VirtualBox

Giusto QuarkF, mi ero perso quel "soon". smile


devzero.tk - github.com/bebosudo
Quando posti del codice, mettilo nel tag code! (senza spazi)            [ code]così[/ code]

Non in linea

#11 29-03-2019 15:17:51

d68qdq8dq
Pinguino avanzato
Registrato: 03-07-2014
Messaggi: 409

Re: Problema funzionamento VirtualBox

Anche la versione di VirtualBox presa da RPM Fusion col kernel 5.0.3-200 segnala errore. Aspettiamo...

Non in linea

#12 29-03-2019 16:44:18

QuarkF
Pinguino avanzato
Registrato: 01-04-2013
Messaggi: 272

Re: Problema funzionamento VirtualBox

d68qdq8dq ha scritto:

Anche la versione di VirtualBox presa da RPM Fusion col kernel 5.0.3-200 segnala errore. Aspettiamo...

Se non vuoi aspettare...

QuarkF ha scritto:
# dnf upgrade http://koji.rpmfusion.org/kojifiles/packages/VirtualBox/6.0.4/2.fc29/x86_64/VirtualBox-6.0.4-2.fc29.x86_64.rpm http://koji.rpmfusion.org/kojifiles/packages/VirtualBox/6.0.4/2.fc29/x86_64/VirtualBox-server-6.0.4-2.fc29.x86_64.rpm http://koji.rpmfusion.org/kojifiles/packages/VirtualBox-kmod/6.0.4/4.fc29/x86_64/akmod-VirtualBox-6.0.4-4.fc29.x86_64.rpm http://koji.rpmfusion.org/kojifiles/packages/VirtualBox/6.0.4/2.fc29/noarch/VirtualBox-kmodsrc-6.0.4-2.fc29.noarch.rpm
# setenforce 0; systemctl restart systemd-modules-load.service; setenforce 1

senza bisogno di riavviare.


Al mondo ci sono 10 tipi di persone: quelle che conoscono la numerazione binaria e quelle che non la capiscono.

Non in linea

#13 30-03-2019 11:37:13

d68qdq8dq
Pinguino avanzato
Registrato: 03-07-2014
Messaggi: 409

Re: Problema funzionamento VirtualBox

Oggi ho eseguito l'ultimo aggiornamento e VirtualBox preso da RPM Fusion funziona regolarmente.

Non in linea

#14 01-04-2019 13:05:27

Marco Galassi
Appena sbarcato sul forum
Da Fontanelice
Registrato: 06-02-2019
Messaggi: 30

Re: Problema funzionamento VirtualBox

confermo anch'io: dopo l'aggiornamento tutto funziona smile

Non in linea

Piè di pagina