Skip to content


Installation de VMware Serveur Version 1.0.9 sur une Debian Lenny

Introduction :

Pourquoi faire un tutoriel si simple, me direz-vous !

Et bien parce que ce n'est pas simple, ou disons que ce n'est pas aussi fluide que prévu. En effet si vous utilisez la version tar.gz de la version 1.0.9, cela ne fonctionne pas !

Il y a un méchant message d'erreur à la compilation des modules vmmon et vmnet !

De plus si vous utilisez une archive des modules qui ne correspond pas à la version de l'archive de vmware, le lancement des hôtes virtuels ne fonctionne pas ! 🙁

L'archive des modules "VMmon et VMnet" qui se trouve sur "it-spycho" appelée vmware-any-any-update117-itpsycho.tar.gz que l'on trouve dans cet article !

http://www.it-psycho.de/2008/07/27/vmware-server-106-mit-kernel-2626/

avec l'archive de "VMware" :

http://download3.vmware.com/software/vmserver/VMware-server-1.0.9-156507.tar.gz

Installation de VMware :

On dés-archive l'archive de VMware :

http://download3.vmware.com/software/vmserver/VMware-server-1.0.9-156507.tar.gz

qui crée un répertoire "vmware-server-distrib"

En lancant en étant logué en "root" :

# ./vmware-install.pl

On réponds aux questions...

[...]

On accepte la licence !

Distributing the Software.  If you are
interested in distributing the Software
electronically or via internal Web site, CD or
other media, or are interested in placing a
VMware provided logo on your printed material,
please send a request to
VMware_server_distribution@vmware.com and we
will provide you with a copy of our
distribution agreement for your signature.
Do you accept? (yes/no) yes
[...]
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.
Your kernel was built with "gcc" version "4.1.3", while you are trying to use
"/usr/bin/gcc" version "4.3.2". This configuration is not recommended and
VMware Server may crash if you'll continue. Please try to use exactly same
compiler as one used for building your kernel. Do you want to go with compiler
"/usr/bin/gcc" version "4.3.2" anyway? [no] yes
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.26-2-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.26-2-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.26-2-686 »
CC [M]  /tmp/vmware-config0/vmmon-only/linux/driver.o
/tmp/vmware-config0/vmmon-only/linux/driver.c:146: error: unknown field ‘nopage’ specified in initializer
/tmp/vmware-config0/vmmon-only/linux/driver.c:147: warning: initialization from incompatible pointer type
/tmp/vmware-config0/vmmon-only/linux/driver.c:150: error: unknown field ‘nopage’ specified in initializer
/tmp/vmware-config0/vmmon-only/linux/driver.c:151: warning: initialization from incompatible pointer type
make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Erreur 1
make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.26-2-686 »
make: *** [vmmon.ko] Erreur 2
make: quittant le répertoire « /tmp/vmware-config0/vmmon-only »
Unable to build the vmmon module.
For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".
Execution aborted.

Ah, cela échoue !

Il nous reste à compiler les modules vmmon et vmnet :

On dés-archive l'archive qui se trouve sur "it-spycho" appelée vmware-any-any-update117-itpsycho.tar.gz que l'on trouve dans cet article !

http://www.it-psycho.de/2008/07/27/vmware-server-106-mit-kernel-2626/

qui crée un répertoire "vmware-any-any-update117-itpsycho"

Allons dans le répertoire : vmware-any-any-update117-itpsycho

Lançons :

# ./runme.pl
Updating /usr/bin/vmware-config.pl ... now patched
Updating /usr/bin/vmware ... No patch needed/available
Updating /usr/bin/vmnet-bridge ... No patch needed/available
Updating /usr/lib/vmware/bin/vmware-vmx ... No patch needed/available
Updating /usr/lib/vmware/bin-debug/vmware-vmx ... No patch needed/available
VMware modules in "/usr/lib/vmware/modules/source" has been updated.

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

Making sure services for VMware Server are stopped.

Stopping VMware services:
Virtual machine monitor                                             done

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]

/usr/share/applications/vmware-server.desktop: warning: value "vmware-server.png" for key "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path
/usr/share/applications/vmware-console-uri-handler.desktop: warning: value "vmware-server.png" for key "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path
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.

Your kernel was built with "gcc" version "4.1.3", while you are trying to use
"/usr/bin/gcc" version "4.3.2". This configuration is not recommended and
VMware Server may crash if you'll continue. Please try to use exactly same
compiler as one used for building your kernel. Do you want to go with compiler
"/usr/bin/gcc" version "4.3.2" anyway? [no] yes

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

Extracting the sources of the vmmon module.

Building the vmmon module.

Building for VMware Server 1.0.0.
Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-config1/vmmon-only »
make -C /lib/modules/2.6.26-2-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.26-2-686 »
CC [M]  /tmp/vmware-config1/vmmon-only/linux/driver.o
/tmp/vmware-config1/vmmon-only/linux/driver.c:1159: warning: ‘LinuxDriverNoPage’ defined but not used
/tmp/vmware-config1/vmmon-only/linux/driver_compat.h:284: warning: ‘LinuxDriverLockedNoPage’ defined but not used
CC [M]  /tmp/vmware-config1/vmmon-only/linux/driverLog.o
CC [M]  /tmp/vmware-config1/vmmon-only/linux/hostif.o
CC [M]  /tmp/vmware-config1/vmmon-only/common/comport.o
CC [M]  /tmp/vmware-config1/vmmon-only/common/cpuid.o
CC [M]  /tmp/vmware-config1/vmmon-only/common/hash.o
CC [M]  /tmp/vmware-config1/vmmon-only/common/memtrack.o
CC [M]  /tmp/vmware-config1/vmmon-only/common/phystrack.o
CC [M]  /tmp/vmware-config1/vmmon-only/common/task.o
cc1plus: warning: command line option "-Werror-implicit-function-declaration" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from /tmp/vmware-config1/vmmon-only/common/task.c:1194:
/tmp/vmware-config1/vmmon-only/common/task_compat.h:9: warning: ‘typedef’ was ignored in this declaration
/tmp/vmware-config1/vmmon-only/common/task_compat.h: In function ‘void Task_Switch_V45(VMDriver*, Vcpuid)’:
/tmp/vmware-config1/vmmon-only/common/task_compat.h:2666: warning: ‘sysenterState.SysenterStateV45::validEIP’ may be used uninitialized in this function
/tmp/vmware-config1/vmmon-only/common/task_compat.h:2666: warning: ‘sysenterState.SysenterStateV45::cs’ may be used uninitialized in this function
/tmp/vmware-config1/vmmon-only/common/task_compat.h:2666: warning: ‘sysenterState.SysenterStateV45::rsp’ may be used uninitialized in this function
/tmp/vmware-config1/vmmon-only/common/task_compat.h:2666: warning: ‘sysenterState.SysenterStateV45::rip’ may be used uninitialized in this function

CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciContext.o
CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciDatagram.o
CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciDriver.o
CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciDs.o
CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciGroup.o
CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciHashtable.o
CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciProcess.o
CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciResource.o
CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciSharedMem.o
CC [M]  /tmp/vmware-config1/vmmon-only/common/vmx86.o
CC [M]  /tmp/vmware-config1/vmmon-only/vmcore/compat.o
CC [M]  /tmp/vmware-config1/vmmon-only/vmcore/moduleloop.o
LD [M]  /tmp/vmware-config1/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: modpost: missing MODULE_LICENSE() in /tmp/vmware-config1/vmmon-only/vmmon.o
see include/linux/module.h for more information
WARNING: modpost: module vmmon.ko uses symbol 'init_mm' marked UNUSED
CC      /tmp/vmware-config1/vmmon-only/vmmon.mod.o
LD [M]  /tmp/vmware-config1/vmmon-only/vmmon.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.26-2-686 »
cp -f vmmon.ko ./../vmmon.o
make: quittant le répertoire « /tmp/vmware-config1/vmmon-only »
The file /lib/modules/2.6.26-2-686/misc/vmmon.ko that this program was about to
install already exists.  Overwrite? [yes]

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: RJ45-HELIOS,
RJ45-HUB, ath0, br0, tap0, tap1, tap2, tap3, tap4, vboxnet0. Which one do you
want to bridge to vmnet0? [eth0] br0

The following bridged networks have been defined:

. vmnet0 is bridged to br0

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.96.0/255.255.255.0 appears to be unused.

The file /etc/vmware/vmnet8/dhcpd/dhcpd.conf that this program was about to
install already exists.  Overwrite? [yes]

The file /etc/vmware/vmnet8/dhcpd/dhcpd.leases that this program was about to
install already exists.  Overwrite? [yes]

The file /etc/vmware/vmnet8/dhcpd/dhcpd.leases~ that this program was about to
install already exists.  Overwrite? [yes]

The following NAT networks have been defined:

. vmnet8 is a NAT network on private subnet 192.168.96.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]

Configuring a host-only network for vmnet1.

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.251.0/255.255.255.0 appears to be unused.

The file /etc/vmware/vmnet1/dhcpd/dhcpd.leases that this program was about to
install already exists.  Overwrite? [yes]

The file /etc/vmware/vmnet1/dhcpd/dhcpd.leases~ that this program was about to
install already exists.  Overwrite? [yes]

The following host-only networks have been defined:

. vmnet1 is a host-only network on private subnet 192.168.251.0.

Do you wish to configure another host-only network? (yes/no) [no]

Extracting the sources of the vmnet module.

Building the vmnet module.

Building for VMware Server 1.0.0.
Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-config1/vmnet-only »
make -C /lib/modules/2.6.26-2-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.26-2-686 »
CC [M]  /tmp/vmware-config1/vmnet-only/driver.o
CC [M]  /tmp/vmware-config1/vmnet-only/hub.o
CC [M]  /tmp/vmware-config1/vmnet-only/userif.o
CC [M]  /tmp/vmware-config1/vmnet-only/netif.o
CC [M]  /tmp/vmware-config1/vmnet-only/bridge.o
CC [M]  /tmp/vmware-config1/vmnet-only/filter.o
CC [M]  /tmp/vmware-config1/vmnet-only/procfs.o
CC [M]  /tmp/vmware-config1/vmnet-only/smac_compat.o
CC [M]  /tmp/vmware-config1/vmnet-only/smac_linux.x386.o
LD [M]  /tmp/vmware-config1/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: modpost: missing MODULE_LICENSE() in /tmp/vmware-config1/vmnet-only/vmnet.o
see include/linux/module.h for more information
CC      /tmp/vmware-config1/vmnet-only/vmnet.mod.o
LD [M]  /tmp/vmware-config1/vmnet-only/vmnet.ko
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.26-2-686 »
cp -f vmnet.ko ./../vmnet.o
make: quittant le répertoire « /tmp/vmware-config1/vmnet-only »
The file /lib/modules/2.6.26-2-686/misc/vmnet.o that this program was about to
install already exists.  Overwrite? [yes]

The file /lib/modules/2.6.26-2-686/misc/vmnet.ko that this program was about to
install already exists.  Overwrite? [yes]

The module loads perfectly in the running kernel.

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

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.

The file /etc/pam.d/vmware-authd that this program was about to install already
exists.  Overwrite? [yes]

Do you want this program to set up permissions for your registered virtual
machines?  This will be done by setting new permissions on all files found in
the "/etc/vmware/vm-list" file. [no]

Generating SSL Server Certificate

The file /etc/rc3.d/S90vmware that this program was about to install already
exists.  Overwrite? [yes]

The file /etc/rc0.d/K08vmware that this program was about to install already
exists.  Overwrite? [yes]

In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines] /media/data/Disk/Virtual Machines/

Do you want to enter a serial number now? (yes/no/help) [no] yes

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel:  92TVN-YWG9L-2AHF74-4R4H8

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

The configuration of VMware Server 1.0.9 build-156507 for Linux for this
running kernel completed successfully.

Remarque :

Il peut y avoir un petit souci remonté par "Christian"qui fait que avec gcc4.3 cela ne fonctionne pas ! 🙁

http://monblog.system-linux.net/blog/2009/05/11/installation-de-vmware-serveur-version-109-sur-une-debian-lenny/534/#comment-2186

Voici son astuce : utiliser gcc4.1

aptitude install gcc-4.1
ln -sf /usr/bin/gcc-4.1 /usr/bin/gcc
cp /usr/lib/gcc/i486-linux-gnu/4.3/cc1plus /usr/lib/gcc/i486-linux-gnu/4.1/
./runme.pl

Merci à lui 😉

Ne reste plus qu'a lancer VMware : vmware !

vmware-01.png

vmware-02.png

😉

- FIN -

Print Friendly, PDF & Email

Posted in Debian, Linux, Technique, Toutes, VMware. Tagged with , , , .

7 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Please, do not deeplink my files. Thanks.

  2. admin said

    Hi,

    Ok that's done !
    Many thank's !

    Bye

  3. Bagier said

    My VMWARE is now up.
    Thank's a lot !!

  4. admin said

    Oh !
    I did nothing !
    Many thank's to "IT Psycho" ! 🙂

  5. Christian said

    il y a un [petit] pb avec cette procédure:
    le gcc-4.3 ne marche pas ( sur mon PC avec une Debian Lenny 5.03 toute fraîche installée ) & le gcc-4.1 ne contient pas le programme cc1plus...
    pour que mon install fonctionne, j'ai du bricoler un peu gcc-4.1:
    aptitude install gcc-4.1
    ln -sf /usr/bin/gcc-4.1 /usr/bin/gcc
    cp /usr/lib/gcc/i486-linux-gnu/4.3/cc1plus /usr/lib/gcc/i486-linux-gnu/4.1/.
    --------------
    ./runme.pl
    --------------
    le reste est ok...
    Mais quelle galère ces installations sous Linux. !!!
    C'était si simple sous Debian Etch
    Sinon, merci encore pour l'aide & le lien vers le patch de nos amis allemands même si IT-psycho ne semple pas apprécier...

  6. admin said

    J'ai pourtant une Debian Lenny 5.0.3...
    Peut-être un chouilla qui diffère et... hop !

    Je rajouterais en commentaire, ton souci et ta soluce ! 😉

    Merci

  7. patrick said

    superbe, merci. petite précision :
    j'avais que le gcc4.1 et 4.3, j'ai utilisé ce qu'a proposé christian, mais l'install n'allait pas au bout : je n'avais pas le cc1plus. Il m'a suffit d'installer g++ 4.1 et tout s'est déroulé comme par enchantement.
    merci à tous

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.

Time limit is exhausted. Please reload CAPTCHA.


/* */
Creative Commons License
Cette création par Laurent Besson est mise à disposition selon les termes de la licence Creative Commons Paternité-Partage des Conditions Initiales à l'Identique 2.0 France.