VirtualBox Installation

Un article de openSUSE.

Cette page n'est pas encore traduite (ou pas complètement). Merci de participer au travail si vous en avez le temps et la compétence

L'installation de VirtualBox est fonction de votre version d'openSUSE

Sommaire

openSUSE 10.3

VirtualBox est disponible dans le dépôt principal OSS pour openSUSE 10.3.

  • En utilisant YaST:

Assurez-vous que le dépôt principal a été ajouté grace au module Software Repositories de YaST. Sélectionnez alors Installation de logiciels pour installer le paquetage virtualbox.

  • En utilisant zypper (outil en ligne commande):

Vérifier si le dépôt OSS a été ajouté. Si c'est le cas, tapez :

zypper install virtualbox

qui téléchargera et installera VirtualBox OSE et ses dépendances :

  • virtualbox-kmp qui contient le module vboxdrv pour le noyau. Ce module est obligatoire pour lancer un environnement virtuell
  • Xalan-c package
  • Xerces-c package

Consultez la rubrique Post-Installation ci-dessous.

openSUSE 10.2

Here we have few options:

openSUSE repositories (OSE only)

currently you can use:

The other link:

contains bad packages VirtualBox-kmp that are missing mandatory vboxdrv and have one more error, so if you want to remove it please use (for instance for VirtualBox-kmp-default): Modèle:Shell The other package VirtualBox is OK, but without kernel module it will refuse to start any virtual machine.

Prerequisites for VirtualBox downloads

Whether you use binaries or source you have to install first:

  • kernel-source
  • kernel-syms
  • Xalan-c
  • Xerces-c

Than you can download binaries or source from VirtualBox download page.

Installing VirtualBox from Binary (non-OSE only)

There are two types of binary installations available. One type is a package and the other type is an installation script. VirtualBox creates packages for VirtualBox for the latest openSUSE versions. Advise is to use the packages instead of the installer when packages are available for your openSUSE verson. The packages are exactly the same as the installation script.

Package

Simply download the package from the download page of VirtualBox and install it. See Package Management for more information about installing software under openSUSE.


Installer

After downloading the installation binary package of VirtualBox, login as user ID root. Install the VirtualBox with the following command Modèle:Shell Where version is the version you have downloaded.

When everything goes well, VirtualBox should be installed in the /opt directory.

Next, create the required kernel module by executing the command: Modèle:Shell

You should be able to run VirtualBox now; yet expect VirtualBox to complain "Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might be not installed on the host computer." until you enable USB support.

Installing from sources

Download the tarball from the

unpack it and run the installer as root. It is a good idea to install VirtualBox in /opt/VirtualBox.

Post-Installation

Bien que l'interface VirtualBox pourra démarrer après les étapes d'installation précédentes, il est nécessaire de faire quelques étapes manuelles afin de pouvoir réellement utiliser VirtualBox. Ceci comprend :

  • S´assurer que le pilote du noyau vboxdrv est chargé.

Dans le terminal, en tant que root, exécutez la commande suivante : Modèle:Shell

  • Ajoutez votre compte au groupe vboxusers :

Allez dans YaST -> Sécurité et Utilisateurs -> Modifier et créer des utilisateurs, et ajoutez les utilisateurs auxquels vous souhaitez accorder le privilège de démarrer des machines virtuels aau groupe vboxusers group.

Image:UserEditVboxuser.png

Vous devrez alors être en mesure d'utiliser pleinement VirtualBox!

Faire en sorte que le module vboxdrv se charge automatiquement (uniquement lors de l'installation à partir des paquetages openSUSE)

La version de VirtualBox OSE fournie dans le dépôt OpenSuSE ne configure pas le chargement automatique du module du noyau. Si c'est le comportement que vous souhaitez, vous pouvez ignorer cette section. Sinon, vous pouvez le configurer d'une des 3 manières suivantes :

  • Uiliser la commande insserv pour ajouter le module

Modèle:Shell

  • The second way is by going into system services (runlevel) and enabling vboxdrv

YaST -> Système > Niveaux d'exécution (runlevel)-> vboxdrv and select the enable button and finish.

  • The last way is by adding it to the Modules_loaded_on_boot setting under sysconfig editor

YaST -> System -> /etc/sysconfig editor -> System -> Kernel -> MODULES_LOADED_ON_BOOT and just type in vboxdrv in the input box.

No matter which way you go with this will get the vboxdrv kernel module to auto load on boot of the system.