Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO; ]virtualbox - error in supliboslnit
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Tue Sep 25, 2018 6:29 am    Post subject: [RISOLTO; ]virtualbox - error in supliboslnit Reply with quote

buongiorno da 2 giorni quando lancio virtualbox
mi esce una finestra con il seguente errore

Code:
Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/sbin/vboxconfig'

as root.

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


e per avviare virtualbox devo lanciare da root i comandi


Code:
gpasswd -a trigg vboxguest
modprobe vboxnetadp
modprobe vboxnetflt
modprobe vboxpci


ho anche reinstallato tutto ma ad oggi ogni volta che lancio virtualx mi da l'errore
Code:
virtualbox - error in supliboslnit

e quindi devo dare i comandi precedenti per farla avviare.


Last edited by trigg on Fri Oct 19, 2018 3:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1012

PostPosted: Tue Sep 25, 2018 6:39 am    Post subject: Reply with quote

Code:
gpasswd -a trigg vboxuser


ma il problema non sembra quello

per avviare i moduli all'avvio , come da wiki

crea il file /etc/modules-load.d/virtualbox.conf

ed inserisci i moduli che ti servono.

nel tuo elenco manca il driver principale ... vboxdrv

https://wiki.gentoo.org/wiki/VirtualBox
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Tue Sep 25, 2018 8:45 am    Post subject: Reply with quote

ciao sabayonino

ho creato il file virtualbox.conf in /etc/modules-load.d

come da immagine ho aggiunto le voci
https://i.imgur.com/pFOeVKT.png

ho anche lancato
Code:
emerge --ask --oneshot @module-rebuild


con questo tipo di errore
https://paste.pound-python.org/show/bk6SWjwb58aBAGY1osqQ/

prima andava bene da un paio di giorni ha iniziato a darmi questo messaggio
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1012

PostPosted: Tue Sep 25, 2018 10:45 am    Post subject: Reply with quote

se l'errore te lo dà nella compilazione , semplicemente non trova il makefile nella cartella sorgenti kernel (sono installati e compilati ? )

al massimo se hai errori nell'avvio prova a rimuovere il configurazione di VBox nella tua home

~/.config/VirtualBox
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Wed Sep 26, 2018 8:57 am    Post subject: Reply with quote

ho rimosso la configurazione in /.config/VirtualBox

ma non è cambiato nulla , per quanto riguarca makefile nella cartella sorgenti kernel credo siamo installati e non compilati
Back to top
View user's profile Send private message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Wed Sep 26, 2018 10:20 am    Post subject: Reply with quote

per adesso lancio virtualbox con lo script

Code:
#!/bin/bash

sudo su -c "modprobe vboxdrv ; modprobe vboxnetad ; modprobe vboxnetflt ; modprobe vboxpci "

/usr/lib64/virtualbox/VirtualBox --comment "arch7win" --startvm "13f7e572-08c9-48ce-b87f-90fd610caac6"
exit


devo digitare la password , dopo cercherò di capire cosa è successo :cry:
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1012

PostPosted: Wed Sep 26, 2018 6:30 pm    Post subject: Reply with quote

Code:
sudo su


è inguardabile....
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Thu Sep 27, 2018 5:24 am    Post subject: Reply with quote

:D :lol: e vabbè ho eliminato sudo

cmq questo è solo una toppa , ho reinstallato virtualbox con lo stesso esito finale

com'è possibile che nn carica i moduli in automatico e bisogna aggiungerli ogni volta ?
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1012

PostPosted: Thu Sep 27, 2018 6:52 pm    Post subject: Reply with quote

Code:

Found kernel source directory:
 *     /usr/src/linux
 * Could not find a Makefile in the kernel source directory.

Kernel not configured; no .config found in


Il modulo non è compilato per la versione del kernel a cui punta /usr/src/linux
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Tue Oct 09, 2018 7:37 am    Post subject: Reply with quote

ho provato ad inastallare virtaulbox-modules

ed ho ottenuto questo output

Code:
>>> Failed to emerge app-emulation/virtualbox-modules-5.2.14, Log file:

>>>  '/var/tmp/portage/app-emulation/virtualbox-modules-5.2.14/temp/build.log'

 * Messages for package app-emulation/virtualbox-modules-5.2.14:

 * Could not find a Makefile in the kernel source directory.
 * Please ensure that /usr/src/linux points to a complete set of Linux sources
 * Unable to calculate Linux Kernel version for build, attempting to use running version
 * Could not find a usable .config in the kernel source directory.
 * Please ensure that /usr/src/linux points to a configured set of Linux sources.
 * If you are using KBUILD_OUTPUT, please set the environment var so that
 * it points to the necessary object directory so that it might find .config.
 * ERROR: app-emulation/virtualbox-modules-5.2.14::gentoo failed (setup phase):
 *   Kernel not configured; no .config found in
 *
 * Call stack:
 *                          ebuild.sh, line 124:  Called pkg_setup
 *   virtualbox-modules-5.2.14.ebuild, line  31:  Called linux-mod_pkg_setup
 *                   linux-mod.eclass, line 586:  Called linux-info_pkg_setup
 *                  linux-info.eclass, line 965:  Called check_extra_config
 *                  linux-info.eclass, line 773:  Called require_configured_kernel
 *                  linux-info.eclass, line 307:  Called die
 * The specific snippet of code:
 *         die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
 *
 * If you need support, post the output of `emerge --info '=app-emulation/virtualbox-modules-5.2.14::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-modules-5.2.14::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-modules-5.2.14/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-modules-5.2.14/temp/die.env'.
 * Working directory: '/var/tmp/portage/app-emulation/virtualbox-modules-5.2.14/homedir'
 * S: '/var/tmp/portage/app-emulation/virtualbox-modules-5.2.14/work'


leggendo questo topic per risolvere devo ricompilare il genhernel?

https://forums.gentoo.org/viewtopic-t-1055502-start-0.html
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Tue Oct 09, 2018 7:49 am    Post subject: Reply with quote

Hai lanciato un depclean ultimamente?
Posta l'output dei seguenti comandi
Code:
$ ls -l /usr/src/linux
$ ls /usr/src/linux
$ uname -a

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Tue Oct 09, 2018 8:41 am    Post subject: Reply with quote

Code:
gentoo /home/trigg # ls -l /usr/src/linux
lrwxrwxrwx 1 root root 20  1 lug 18.12 /usr/src/linux -> linux-4.14.52-gentoo



Code:
gentoo /home/trigg # ls /usr/src/linux
arch        crypto    include  lib              Module.symvers  sound       virt
block       drivers   init     mm               net             System.map  vmlinux
built-in.o  firmware  ipc      modules.builtin  scripts         tools       vmlinux.o
certs       fs        kernel   modules.order    security        usr



Code:
gentoo /home/trigg # uname -a
Linux gentoo 4.14.52-gentoo #1 SMP Sun Jul 1 18:45:59 CEST 2018 x86_64 AMD Athlon(tm) 5150 APU with Radeon(tm) R3 AuthenticAMD GNU/Linux
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Tue Oct 09, 2018 8:46 am    Post subject: Reply with quote

E cosa da
Code:
$ qlist -Iv gentoo-sources
?
sembra che hai cancellato (con depclean probabilmente) i gentoo-sources-4.14.52
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Tue Oct 09, 2018 9:31 am    Post subject: Reply with quote

si infatti tutto è successo dopo un deep-clean

come posso procedere per ripristinare gentoo-sources-4.14.52
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Tue Oct 09, 2018 9:49 am    Post subject: Reply with quote

trigg wrote:
come posso procedere per ripristinare gentoo-sources-4.14.52

Devi reinstallare questa versione e poi ricompila il kernel con la giusta config
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Wed Oct 10, 2018 4:35 pm    Post subject: Reply with quote

quindi devo lanciare genkernel all ?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Thu Oct 11, 2018 5:49 am    Post subject: Reply with quote

trigg wrote:
quindi devo lanciare genkernel all ?

Si meglio ma controlla che il .config sia quello corretto
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Thu Oct 11, 2018 6:45 am    Post subject: Reply with quote

ciao fedeliallalinea e buongiorno

ho lanciato prima genkernel all
e mi ha detto di installare sources

così ho lanciato

Code:
emerge sys-kernel/gentoo-sources


dopo ho ridato gebkernel all
con il risultato del log seguente

Code:
* Gentoo Linux Genkernel; Version 3.5.3.3
* Running with options: all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* ERROR: Kernel Makefile (/usr/src/linux/Makefile) missing.  Maybe re-install the kernel sources.
*
* -- Grepping log... --
*
*
* -- End log... --
*
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
*
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Thu Oct 11, 2018 7:15 am    Post subject: Reply with quote

trigg wrote:
così ho lanciato

Code:
emerge sys-kernel/gentoo-sources

Questo ti scarica l'ultimo stabile, ovvero 4.14.65, mentre tu vorresti il 4.14.52.
Ora no so se vuoi aggiornare il kernel da 4.14.52 a 4.14.65 o mantenere il corrente
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Thu Oct 11, 2018 7:21 am    Post subject: Reply with quote

proviamo ad aggiornare il kernel

devo imparare a farlo prima o poi
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Thu Oct 11, 2018 7:27 am    Post subject: Reply with quote

trigg wrote:
proviamo ad aggiornare il kernel

devo imparare a farlo prima o poi

Tanto basta che non rimuovi il vecchio dalla /boot finche' il nuovo non funziona, cosi' puoi tornare sempre su quello funzionante durante l'aggiornamento
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Thu Oct 11, 2018 8:24 am    Post subject: Reply with quote

non riesco a capire

in /boot ho solo kernel-genkernel-x86_64-4.14.52-gentoo

mentre quando lancio eselect kernel list nricevo questo output
Code:
gentoo /home/trigg # eselect kernel list
Available kernel symlink targets:
  [1]   linux-4.14.65-gentoo *


quindi nn ci sto capendo niente di quello che sta accadendo :roll:

ora ho lanciato
Code:
emerge --ask --update --deep --with-bdeps=y --newuse @world


dopo non so cosa farò
Back to top
View user's profile Send private message
zar Marco
Guru
Guru


Joined: 09 Sep 2016
Posts: 445
Location: Colle Umberto ( TV )

PostPosted: Thu Oct 11, 2018 9:47 am    Post subject: Reply with quote

Ti succede perché, o hai dato un depclean, oppure si sovrascrive se rimane lo stesso "ramo", ma non sono sicuro di quest'ultima affermazione, prova a dare un eix -s gentoo-sources
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Thu Oct 11, 2018 9:52 am    Post subject: Reply with quote

trigg wrote:
non riesco a capire

in /boot ho solo kernel-genkernel-x86_64-4.14.52-gentoo

mentre quando lancio eselect kernel list nricevo questo output
Code:
gentoo /home/trigg # eselect kernel list
Available kernel symlink targets:
  [1]   linux-4.14.65-gentoo *

Questo e' corretto perche' ora hai compilato e installato solo il kernel 4.14.52, mentre dei sorgenti hai solo i 4.14.65.
eselect cambia solo il link simbolico /usr/src/linux che punta a quello selezionato ma poi dei compilare il kernel.
Di solito i passi con genkernel sono
Code:
# eselect kernel set <kernel_che_vuoi>
# cd /usr/src/linux
# genkernel --kernel-config=/etc/kernels/<quello_del_kernel_funzionante> all
# grub-mkconfig -o /boot/grub/grub.cfg
# emerge @module-rebuild

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
trigg
Apprentice
Apprentice


Joined: 14 Jun 2018
Posts: 179

PostPosted: Sun Oct 14, 2018 7:49 am    Post subject: Reply with quote

nulla non riesco a venirne a capo
come posso ripristinare il makefile ?

o come posso fare il downgrade del kernel?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum