logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 21-11-2017 16:00:33

puerh
Membre
Inscription : 21-11-2017

Problème avec Virtualbox-5.2

Bonjour, quand je lance Virtualbox dans le terminal il m'affiche ce message :

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (4.9.0-4-amd64) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.

 



sudo /sbin/vboxconfig -> quand je tape cette commande en root:

Created symlink /etc/systemd/system/multi-user.target.wants/vboxdrv.service → /lib/systemd/system/vboxdrv.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxballoonctrl-service.service → /lib/systemd/system/vboxballoonctrl-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxautostart-service.service → /lib/systemd/system/vboxautostart-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxweb-service.service → /lib/systemd/system/vboxweb-service.service.
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.
 



Le programme Virtualbox est bien ouvert après le lancement dans le terminal, mais dès que j'essaye de lancer une session je reçois deux messages:


Échec de l'ouverture de session pour la machine virtuelle abc.

The virtual machine '
abc' has terminated unexpectedly during startup with exit code 1 (0x1).

Code d'
erreur : NS_ERROR_FAILURE (0x80004005)
Composant : MachineWrap
Interface : IMachine {85cd948e-a71f-4289-281e-0ca7ad48cd89}



Ainsi que celui-là par la même occassion dans le programme Virtualbox

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.



Donc je refais la même commande en root : '/sbin/vboxconfig'

Created symlink /etc/systemd/system/multi-user.target.wants/vboxdrv.service → /lib/systemd/system/vboxdrv.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxballoonctrl-service.service → /lib/systemd/system/vboxballoonctrl-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxautostart-service.service → /lib/systemd/system/vboxautostart-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxweb-service.service → /lib/systemd/system/vboxweb-service.service.
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.



Donc là toujours le même soucis. Je décide de mener l'enquête et regardant dans les logs '/var/log/vbox-install.log'.


make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/4.9.0-4-amd64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j4 modules
make[1]: AVERTISSEMENT : -jN forcé dans un submake : désactivation du mode serveur de tâches.
Segmentation fault
Makefile:141: *** failed to create output directory "/usr/src/linux-headers-4.9.0-4-amd64". Arrêt.
Makefile:8 : la recette pour la cible « all » a échouée
make[1]: *** [all] Erreur 2
/tmp/vbox.0/Makefile.include.footer:97 : la recette pour la cible « vboxdrv » a échouée
make: *** [vboxdrv] Erreur 2
 




J'ai essayé de réinstaller Virtualbox, essayé plusieurs versions, toujours le même problème. Je n'ai pas trouvé d'aide en cherchant sur internet.

Merci pour votre aide !

Hors ligne

#2 21-11-2017 18:11:22

Croutons
Membre
Distrib. : Debian12
Noyau : Linux 6.1.0-13-amd64
(G)UI : Fluxbox(NakeDeb)
Inscription : 16-12-2016

Re : Problème avec Virtualbox-5.2

Bonjour
le paquet dkms est il installé?

apt-cache policy dkms


apt install dkms


-->les cahiers du debutant<--      WikiDF-->Découvrir les principales commandes Linux<-- 
L' expérience, c'est le nom que chacun donne à ses erreurs. Oscar Wilde

Hors ligne

#3 21-11-2017 18:14:20

chalu
Modératrice
Lieu : Anjou
Distrib. : openSUSE Tumbleweed
Noyau : Linux 5.12
(G)UI : KDE 5.21.4
Inscription : 11-03-2016

Re : Problème avec Virtualbox-5.2

Bonjour smile
Comment as-tu installé le paquet virtualbox du dépôt oracle ?
as-tu le paquet dkm installé comme indiqué sur le site pour faire correctement les mises à jour ?

apt-cache policy dkms


J'ai la version 5.1.30 du dépôt stretch-backports qui fonctionne normalement sinon.

Hors ligne

#4 22-11-2017 12:33:34

puerh
Membre
Inscription : 21-11-2017

Re : Problème avec Virtualbox-5.2

Merci de m'avoir répondu,

apt-cache policy dkms



me donne

dkms:
  Installé : 2.3-2
  Candidat : 2.3-2
 Table de version :
 *** 2.3-2 500
        500 http://deb.debian.org/debian stretch/main amd64 Packages
        500 http://deb.debian.org/debian stretch/main i386 Packages
        100 /var/lib/dpkg/status



Le paquet est bien installé.

Je vais essayer d'installer la version 5.1.30 du dépôt stretch-backports pour voir ce que ça donne, en attendant j'utilise gnome-boxes.

Dernière modification par puerh (22-11-2017 12:33:46)

Hors ligne

#5 07-02-2021 07:52:35

TyZef
Membre
Lieu : Clan d'Eau.
Distrib. : ~ Debian 12 noDE ~ inspired by nakeDeb ~
Noyau : Linux 6.1.0-18-amd64
(G)UI : OB3
Inscription : 09-05-2013

Re : Problème avec Virtualbox-5.2

salut,

moi aussi je rencontre ceci en ayant fais : "apt upgrade" pour sid...

##########################################################

J'ai finalement réussis en suivant ceci:

https://askubuntu.com/questions/912011/ … 20-generic

For me, reinstalling virtualbox-dkms always gave an error. It was my first time upgrading the kernel, and hadn't upgraded the headers. I needed to also do

sudo aptitude install linux-headers-`uname -r`



and not accept it's first solution (which was to actually do nothing), but accept the second solution which was to upgrade some further library. After that, then

sudo apt install --reinstall virtualbox-dkms



worked for me.

##########################################################

Je me suis base sur ce message d'erreur:

modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/5.10.0-3-amd64

Dernière modification par TyZef (07-02-2021 08:16:21)


« De deux choses lune, l’autre c’est le soleil » - Barbara Prévert.

Hors ligne

Pied de page des forums