Intro

vmware propose depuis peu l'utilisation gratuite de certains de ses outils de virtualisation, vous permettant de faire tourner windows dans une machine virtuelle, ou de tester des live CD sans avoir a les graver, ou encore de tester des distributions linux sans modifier vos partitions physiques

Il serait vraiment dommage de s'en priver, d'autant plus que l'installation s'avère très simple

Prérequis

attention.png

note aux utilisateurs de feisty :

L'installation se complique (un peu) avec feisty et le kernel 2.6.20,

Tout est impeccablement décrit sur le blog de taltan


  • Télécharger l'archive linux sur cette page
  • Enregistrez vous (gratuitement) sur cette page pour obtenir une (ou plusieurs) clés d'activation
  • installer nautilus-open-terminal si ce n'est déjà fait (via synaptic, nécessite de fermer et redémarrer une session pour être pris en compte)
  • installer le paquet build-essential pour disposer des applications nécessaires à la compilation
  • installer les headers correspondant à votre noyau (en console : taper uname -r pour obtenir la version de votre noyau, puis dans synaptic, rechercher linux-headers et installer le paquet portant le même numéro de version que celui obtenu avec uname -r)

Installation

installation et création d'une machine virtuelle

dans cette video, vous pouvez voir le processus d'installation, dont le log figure dans la suite de la page, puis la création d'une machine virtuelle, ou vous verrez comment booter votre machine vierge sur un CD ou une iso, en modifiant à la volée les disques accessibles à la machine

J'utilise ici un lecteur physique contenant un CD d'installation de windows, et un lecteur virtuel pointant sur une iso d'installation de ubuntu

Je préfère aussi utiliser le mode de connection NAT plutôt que Bridged, qui est le plus souvent non-fonctionnel chez moi...

Pour une solution de streaming libre : iTheora

étapes de l'installation :

Vous pouvez a priori répondre aux question juste en pressant entrée, pour valider le choix par défaut, sauf à quelques occasion, ici marquée en rouge

:~/Desktop/vmware-server-distrib$ ls
bin etc installer man vmware-install.pl vmware-vix doc FILES lib sbin
:~/Desktop/vmware-server-distrib$ sudo ./vmware-install.pl
Creating a new installer database using the tar3 format.

Installing the content of the package.

In which directory do you want to install the binary files?
[/usr/bin]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc]

What is the directory that contains the init scripts?
[/etc/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware]

The path "/usr/lib/vmware" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want?
[yes]

In which directory do you want to install the manual files?
[/usr/share/man]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware]

The path "/usr/share/doc/vmware" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want?
[yes]

The installation of VMware Server 1.0.0 build-28343 for Linux completed successfully. You can decide to remove this software from your system at any time by invoking the following command: "/usr/bin/vmware-uninstall.pl".

Before running VMware Server for the first time, you need to configure it by invoking the following command: "/usr/bin/vmware-config.pl". Do you want this program to invoke the command for you now?
[yes]

Making sure services for VMware Server are stopped.

Stopping VMware services:
Virtual machine monitor done

You must read and accept the End User License Agreement to continue.
Press enter to display it.

VMWARE MASTER END USER LICENSE AGREEMENT

Do you accept? (yes/no) y

Thank you.

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a .desktop file extension.
[/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Server is suitable for your running kernel. Do you want this program to try to build the vmmon module for your system (you need to have a C compiler installed on your system)?
[yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running kernel?
[/lib/modules/2.6.15-27-686/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-config0/vmmon-only »
make -C /lib/modules/2.6.15-27-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.15-27-686 »
CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-config0/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-config0/vmmon-only/common/cpuid.o
CC [M] /tmp/vmware-config0/vmmon-only/common/hash.o
CC [M] /tmp/vmware-config0/vmmon-only/common/memtrack.o
CC [M] /tmp/vmware-config0/vmmon-only/common/phystrack.o
CC [M] /tmp/vmware-config0/vmmon-only/common/task.o
CC [M] /tmp/vmware-config0/vmmon-only/common/vmx86.o
CC [M] /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST
CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.15-27-686 »
cp -f vmmon.ko ./../vmmon.o
make: quittant le répertoire « /tmp/vmware-config0/vmmon-only »
The module loads perfectly in the running kernel.

Do you want networking for your virtual machines? (yes/no/help) [yes]

Configuring a bridged network for vmnet0.

Your computer has multiple ethernet network interfaces available: eth0, ra0.
Which one do you want to bridge to vmnet0? [eth0] ra0 ##sélectionnez bien votre interface reseau

The following bridged networks have been defined:

. vmnet0 is bridged to ra0

Do you wish to configure another bridged network? (yes/no) [no]

Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes]

Configuring a NAT network for vmnet8.

Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes]

Probing for an unused private subnet (this can take some time)...

The subnet 192.168.104.0/255.255.255.0 appears to be unused.

The following NAT networks have been defined:

. vmnet8 is a NAT network on private subnet 192.168.104.0.

Do you wish to configure another NAT network? (yes/no) [no]

Do you want to be able to use host-only networking in your virtual machines?
[yes] no

Extracting the sources of the vmnet module.

Building the vmnet module.

Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-config0/vmnet-only »
make -C /lib/modules/2.6.15-27-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.15-27-686 »
CC [M] /tmp/vmware-config0/vmnet-only/driver.o
CC [M] /tmp/vmware-config0/vmnet-only/hub.o
CC [M] /tmp/vmware-config0/vmnet-only/userif.o
CC [M] /tmp/vmware-config0/vmnet-only/netif.o
CC [M] /tmp/vmware-config0/vmnet-only/bridge.o
CC [M] /tmp/vmware-config0/vmnet-only/procfs.o
CC [M] /tmp/vmware-config0/vmnet-only/smac_compat.o
SHIPPED /tmp/vmware-config0/vmnet-only/smac_linux.x386.o
LD [M] /tmp/vmware-config0/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST
Warning: could not find /tmp/vmware-config0/vmnet-only/.smac_linux.x386.o.cmd for /tmp/vmware-config0/vmnet-only/smac_linux.x386.o
CC /tmp/vmware-config0/vmnet-only/vmnet.mod.o
LD [M] /tmp/vmware-config0/vmnet-only/vmnet.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.15-27-686 »
cp -f vmnet.ko ./../vmnet.o
make: quittant le répertoire « /tmp/vmware-config0/vmnet-only »
The module loads perfectly in the running kernel.

Please specify a port for remote console connections to use [902]

inetd: aucun processus tué
Unable to make the Internet super-server (inetd) re-read its configuration
file. Please restart inetd by hand:
killall -v -HUP inetd

Hit enter to continue.

Configuring the VMware VmPerl Scripting API.

Building the VMware VmPerl Scripting API.

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

Installing the VMware VmPerl Scripting API.

The installation of the VMware VmPerl Scripting API succeeded.

Generating SSL Server Certificate

In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines] /home/user/emulation/vmware ##préciser l'endroit ou vous vouler conserver vos machines virtuelles

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel: XXXXX-XXXXX-XXXXX-XXXXX ##Taper la clé que vous avez recue par email

Starting VMware services:
Virtual machine monitor done
Virtual ethernet done
Bridged networking on /dev/vmnet0 done
Host-only networking on /dev/vmnet8 (background) done
NAT service on /dev/vmnet8 done

The configuration of VMware Server 1.0.0 build-28343 for Linux for this running
kernel completed successfully.

:~/Desktop/vmware-server-distrib$