installation de VirtualBox debian 12

Partagez ici vos Trucs et vos Astuces.
Répondre
Avatar de l’utilisateur
Grhim
Membre très actif
Membre très actif
Messages : 1389
Inscription : 30 mai 2016, 01:00
Localisation : kekparr'par'là
Status : Hors-ligne

allé, un reminder à nourrir au cas par cas

pour version Stable Debbie 12

la méthode Gebi (sympa car l'installateur te dit si un package manque ou pose problème ou si tout est ok & te désinstalle si besoin le .deb aussi) pour les flemmards ou les anxieux

Code : Tout sélectionner

sudo apt install gdebi
on telecharge le .deb virtualbox debian 12 : https://www.virtualbox.org/wiki/Linux_Downloads

après install tu sera notifié possiblement d'un :


There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.


et si tu lance tout de même une install virtuel tu aura (car virtualbox te dis ou ça ne va pas :lol: ) :

Code : Tout sélectionner

# /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    linux-headers-amd64 linux-headers-6.1.0-13-amd64
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    linux-headers-amd64 linux-headers-6.1.0-13-amd64

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.

donc en console :

Code : Tout sélectionner

sudo apt install linux-headers-amd64 linux-headers-6.1.0-13-amd64
puis le sbin/vboxconfig

Code : Tout sélectionner

# /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.

et c'est tout bon pour la stable

pour Debian Testing, voir ce super sujet avec rétroportage inclus : viewtopic.php?t=2995

:006:
Debian Stable + Testing -.- Parrot OS - Kali Exegol -.- Raspberry IPFire
Avatar de l’utilisateur
dezix
Membre hyper actif
Membre hyper actif
Messages : 3548
Inscription : 04 juin 2016, 14:50
Status : Hors-ligne

Salut!

:good: C'est Cool et Court... plus d'excuses pour ne pas réinstaller Vbox :rolleyes:

Merci
:drinks:
**Simple Utilisateur** -- Debian stable - XFCE
Avatar de l’utilisateur
Grhim
Membre très actif
Membre très actif
Messages : 1389
Inscription : 30 mai 2016, 01:00
Localisation : kekparr'par'là
Status : Hors-ligne

Et ne pas oublier d’activer le virtuel dans le bios , pour amd c'est AMD-V sinon ça ne se lancera pas !
Debian Stable + Testing -.- Parrot OS - Kali Exegol -.- Raspberry IPFire
andresayang
Membre
Membre
Messages : 18
Inscription : 03 oct. 2024, 09:34
Status : Hors-ligne

Bonjour
Je suis en Debian testing...

J'ai un fichier source "apt" contenant (il faut bien entendu telecharger en premier la clef de signature gpg)

deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian bookworm contrib

Il suffit ensuite de faire
sudo apt update
puis
sudo apt install virtualbox-7.1

Et tout se passe tres bien ...

A+
Avatar de l’utilisateur
piratebab
Site Admin
Site Admin
Messages : 5583
Inscription : 24 avr. 2016, 18:41
Localisation : sud ouest
Status : Hors-ligne

C'est que tu avais probablement les headers déja installés.
andresayang
Membre
Membre
Messages : 18
Inscription : 03 oct. 2024, 09:34
Status : Hors-ligne

piratebab a écrit : 13 nov. 2024, 11:14 C'est que tu avais probablement les headers déja installés.
Ah, oui, pardon : j'installe systématiquement les kernel headers quand je fais mes installs, une vieille habitude...

A+
Répondre