#1 Le 30/11/2009, à 17:35
- spre
problème lors de l'installation de vmware server 2 sur ubuntu 9.10
Bonjour,
Comme le dit le sujet je n'arrive pas à installer vmware server 2 sur ubuntu 9.10 32 bits, voici les logs d'installation si vous pouvez m'aider :
Building the vmmon module.
Using 2.6.x kernel build system.
make: entrant dans le répertoire « /tmp/vmware-config4/vmmon-only »
make -C /lib/modules/2.6.31-14-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.31-14-generic »
CC [M] /tmp/vmware-config4/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config4/vmmon-only/linux/driver.c:31:
/tmp/vmware-config4/vmmon-only/./include/compat_wait.h:78: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:70: note: previous declaration of ‘poll_initwait’ was here
In file included from /tmp/vmware-config4/vmmon-only/./include/vmware.h:38,
from /tmp/vmware-config4/vmmon-only/linux/driver.c:99:
/tmp/vmware-config4/vmmon-only/./include/vm_basic_types.h:108:7: warning: "__FreeBSD__" is not defined
In file included from /tmp/vmware-config4/vmmon-only/./include/vcpuset.h:103,
from /tmp/vmware-config4/vmmon-only/./include/modulecall.h:37,
from /tmp/vmware-config4/vmmon-only/./common/vmx86.h:33,
from /tmp/vmware-config4/vmmon-only/linux/driver.h:29,
from /tmp/vmware-config4/vmmon-only/linux/driver.c:101:
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:329:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:333:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:401:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:407:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:506:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:595:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:684:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:773:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:775:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:860:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:862:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:945:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:947:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:1028:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:1030:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:1223:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:1227:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:1536:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_atomic.h:1663:7: warning: "_MSC_VER" is not defined
In file included from /tmp/vmware-config4/vmmon-only/./include/vm_basic_asm.h:46,
from /tmp/vmware-config4/vmmon-only/./include/rateconv.h:45,
from /tmp/vmware-config4/vmmon-only/./include/modulecall.h:40,
from /tmp/vmware-config4/vmmon-only/./common/vmx86.h:33,
from /tmp/vmware-config4/vmmon-only/linux/driver.h:29,
from /tmp/vmware-config4/vmmon-only/linux/driver.c:101:
/tmp/vmware-config4/vmmon-only/./include/vm_basic_asm_x86.h:62:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_basic_asm_x86.h:177:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_basic_asm_x86.h:346:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_basic_asm_x86.h:453:7: warning: "_MSC_VER" is not defined
In file included from /tmp/vmware-config4/vmmon-only/./include/vm_asm.h:43,
from /tmp/vmware-config4/vmmon-only/linux/driver.c:103:
/tmp/vmware-config4/vmmon-only/./include/vm_asm_x86.h:486:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_asm_x86.h:779:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_asm_x86.h:820:7: warning: "_MSC_VER" is not defined
/tmp/vmware-config4/vmmon-only/./include/vm_asm_x86.h:922:7: warning: "_MSC_VER" is not defined
In file included from /tmp/vmware-config4/vmmon-only/linux/driver.c:119:
/tmp/vmware-config4/vmmon-only/./common/hostif.h:53:7: warning: "WINNT_DDK" is not defined
/tmp/vmware-config4/vmmon-only/linux/driver.c: In function ‘LinuxDriverSyncCallOnEachCPU’:
/tmp/vmware-config4/vmmon-only/linux/driver.c:1423: error: too many arguments to function ‘smp_call_function’
/tmp/vmware-config4/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’:
/tmp/vmware-config4/vmmon-only/linux/driver.c:1987: error: ‘struct task_struct’ has no member named ‘euid’
/tmp/vmware-config4/vmmon-only/linux/driver.c:1987: error: ‘struct task_struct’ has no member named ‘uid’
/tmp/vmware-config4/vmmon-only/linux/driver.c:1988: error: ‘struct task_struct’ has no member named ‘fsuid’
/tmp/vmware-config4/vmmon-only/linux/driver.c:1988: error: ‘struct task_struct’ has no member named ‘uid’
/tmp/vmware-config4/vmmon-only/linux/driver.c:1989: error: ‘struct task_struct’ has no member named ‘egid’
/tmp/vmware-config4/vmmon-only/linux/driver.c:1989: error: ‘struct task_struct’ has no member named ‘gid’
/tmp/vmware-config4/vmmon-only/linux/driver.c:1990: error: ‘struct task_struct’ has no member named ‘fsgid’
/tmp/vmware-config4/vmmon-only/linux/driver.c:1990: error: ‘struct task_struct’ has no member named ‘gid’
/tmp/vmware-config4/vmmon-only/linux/driver.c:2007: error: too many arguments to function ‘smp_call_function’
make[2]: *** [/tmp/vmware-config4/vmmon-only/linux/driver.o] Erreur 1
make[1]: *** [_module_/tmp/vmware-config4/vmmon-only] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.31-14-generic »
make: *** [vmmon.ko] Erreur 2
make: quittant le répertoire « /tmp/vmware-config4/vmmon-only »
Unable to build the vmmon module.
un grand merci d'avance.
Hors ligne
#2 Le 01/12/2009, à 12:30
- spre
Re : problème lors de l'installation de vmware server 2 sur ubuntu 9.10
personne ne peut m'aider?
Hors ligne
#3 Le 01/12/2009, à 13:32
- camara
Re : problème lors de l'installation de vmware server 2 sur ubuntu 9.10
Bonjour,
J'ai un problème identique et je suis bloqué. Avec le nouyau 2.6.31-14-generic-pae, je resolvais ce problème par l'installation des entêtes du noyau et la suppression de kvm du noyau.
#apt-get install linux-headers-$(uname -r)
# modprobe -r kvm
Ou par ce script
#!/bin/bash
###############################################################################
# @author Radu Cotescu #
# @version 1.0 Thu Oct 30 04:09:00 EEST 2009 #
# #
# For further details visit: #
# http://radu.cotescu.com/?p=948 #
# #
# This script will help you install VMWare Server 2.0.x on Ubuntu 9.10. #
# Based on a script from http://communities.vmware.com/thread/215985 #
# #
# This script must be run with super-user privileges. #
# Usage: #
# ./vmware-server-2.0.x-kernel-2.6.31-14-install.sh [PATH TO VMWARE ARCHIVE] #
# If you do not specify the PATH the script will scan the current folder for #
# VMware server archive and if doesn't find anything it will exit. #
###############################################################################
VMWARE_HOME=$1
PATCH="vmware-server-2.0.x_x64-modules-2.6.30.4-fix.patch"
display_usage() {
errorMessage=$1
if [[ ! -z $errorMessage ]]; then
echo "Error message: $errorMessage"
fi
echo "This script must be run with super-user privileges."
echo -e "Usage:\n./vmware-server-2.0.x-kernel-2.6.31-14-install.sh [PATH_TO_VMWARE_ARCHIVE]"
echo "If you do not specify the PATH_TO_VMWARE_ARCHIVE the script will scan the current folder"
echo "for VMware server archive and if doesn't find anything it will exit."
echo "Take care so that the PATH_TO_VMWARE_ARCHIVE doesn't contain any spaces."
exit 1
}
check_user() {
if [[ $USER != "root" ]]; then
display_usage "You do not seem to be root or to be in the sudo-ers list!"
fi
}
set_workspace() {
if [[ -z $VMWARE_HOME ]] ; then
VMWARE_HOME="`pwd`"
fi
VMWARE_ARCHIVE=`ls "$VMWARE_HOME" 2> /dev/null | egrep "^(VMware-server-2.0.[0-9]-)[0-9]*.[A-Za-z0-9_]*.tar.gz"`
MODULES_DIR="$VMWARE_HOME/vmware-server-distrib/lib/modules"
MODULES_SOURCE="$MODULES_DIR/source"
}
check_archive() {
if [[ -z $VMWARE_ARCHIVE ]]; then
display_usage "There is no archive containing VMware Server in the path you indicated!"
else
echo -e "You have VMware Server archive: \n\t$VMWARE_ARCHIVE"
fi
}
check_usage() {
if [ ! $params -le 1 ]
then
display_usage "You have supplied more parameters than needed!"
fi
if [[ ($param == "--help") || $param == "-h" ]]
then
display_usage
fi
check_user
path_spaces_check=`echo $VMWARE_HOME | grep " "`
if [[ ! -z $path_spaces_check ]]
then
display_usage "The path where the VMware Server archive is located should not contain spaces in it!"
fi
check_archive
}
install() {
echo "Downloading patch file..."
wget http://codebin.cotescu.com/vmware/$PATCH -O "$VMWARE_HOME/$PATCH" 2> /dev/null
LINUX_HEADERS="linux-headers-`uname -r`"
check_headers=`dpkg-query -W -f='${Status} ${Version}\n' $LINUX_HEADERS 2> /dev/null | egrep "^install"`
if [[ -z $check_headers ]]; then
echo Installing linux-headers-`uname -r` package...
apt-get -y install linux-headers-`uname -r`
else echo "You do have the $LINUX_HEADERS package..."
fi
check_build=`dpkg-query -W -f='${Status} ${Version}\n' build-essential 2> /dev/null | egrep "^install"`
if [[ -z $check_build ]]; then
echo "Installing build-essential package..."
apt-get -y install build-essential
else echo "You do have the build-essential package..."
fi
check_patch=`dpkg-query -W -f='${Status} ${Version}\n' "patch" 2> /dev/null | egrep "^install"`
if [[ -z $check_patch ]]; then
echo "Installing patch package..."
apt-get -y install patch
else echo "You do have the patch package..."
fi
if [[ ! -e "$VMWARE_HOME/vmware-server-distrib" ]]; then
echo Extracting the contents of $VMWARE_ARCHIVE
tar zxf "$VMWARE_HOME/$VMWARE_ARCHIVE" -C "$VMWARE_HOME"
fi
echo "Checking patch download and archives from the extracted folders..."
if [ ! -r "$VMWARE_HOME/$PATCH" ]; then
echo "The download of $PATCH from http://codebin.cotescu.com/vmware/ failed!"
echo "Check your internet connection. :("
exit 1
fi
TARS=`find "$MODULES_SOURCE" -maxdepth 1 -name '*.tar'`
if [ ! "$TARS" ]; then
echo ".tar files from $MODULES_SOURCE appear to be missing!"
echo "Cannot continue process. :("
exit 1
fi
BASES=""
for TARFILE in $TARS
do
BASE=`basename "$TARFILE" | rev | cut -c5- | rev`
BASES="$BASES $BASE"
echo "Found .tar file for $BASE module"
done
echo "Extracting .tar files in order to apply the patch..."
for BASE in $BASES
do
TARFILE="${BASE}.tar"
MODDIR="${BASE}-only"
echo "Untarring $MODULES_SOURCE/$TARFILE"
tar -xf "$MODULES_SOURCE/$TARFILE" -C "$MODULES_SOURCE"
if [ ! -d "$MODULES_SOURCE/$MODDIR" ]; then
echo "$TARFILE tarball failed to extract in the directory $MODDIR. :("
exit 1
fi
done
echo "Testing patch..."
patch --dry-run -N -p1 --directory="$MODULES_SOURCE" -s < "$VMWARE_HOME/$PATCH"
RESULT=$?
if [ "0" != "$RESULT" ]; then
echo "The patch cannot be applied. :("
exit 1
fi
echo "Applying patch..."
patch -N -p1 --directory="$MODULES_SOURCE" -s < "$VMWARE_HOME/$PATCH"
RESULT=$?
if [ "0" != "$RESULT" ]; then
echo "A problem occured with the patch while it was being applied. :("
exit 1
fi
for BASE in $BASES
do
TEMPFILE="${BASE}-temp.tar"
MODDIR="${BASE}-only"
echo "Preparing new tar file for $BASE module"
rm -f "$MODULES_SOURCE/$TEMPFILE"
tar -cf "$MODULES_SOURCE/$TEMPFILE" -C "$MODULES_SOURCE" "$MODDIR"
done
echo "Checking that the compiling will succeed..."
for BASE in $BASES
do
# Skip checking vmppuser module because it's badly broken dead code
if [ "vmppuser" != "$BASE" ]; then
MODDIR="${BASE}-only"
echo "Trying to compile $BASE module to see if it works"
echo "Performing make in $MODULES_SOURCE/$MODDIR"
make -s -C "$MODULES_SOURCE/$MODDIR"
RESULT=$?
if [ "0" != "$RESULT" ]; then
echo "There is a problem compiling the $BASE module after it was patched. :("
exit 1
fi
fi
done
echo "Rebuilding tar files..."
for BASE in $BASES
do
TEMPFILE="${BASE}-temp.tar"
TARFILE="${BASE}.tar"
OFILE="${BASE}.o"
MODDIR="${BASE}-only"
echo "Replacing original file $TARFILE with patched file..."
rm -rf "$MODULES_SOURCE/$TARFILE" "$MODULES_SOURCE/$OFILE" "$MODULES_SOURCE/$MODDIR"
mv -f "$MODULES_SOURCE/$TEMPFILE" "$MODULES_SOURCE/$TARFILE"
done
echo "Removing binaries directory..."
rm -rf "$MODULES_DIR/binary"
echo "Starting VMware Server original install script..."
$VMWARE_HOME/vmware-server-distrib/vmware-install.pl
}
clean() {
echo "Housekeeping..."
rm -rf $VMWARE_HOME/vmware-server-distrib "$VMWARE_HOME/$PATCH"
echo "Thank you for using the script!"
echo "Author: Radu Cotescu"
echo "http://radu.cotescu.com"
}
set_workspace
params=$#
param=$1
check_usage params param
install
clean
exit 0
Mais ces méthode ne marche pas avec le noyau 2.6.31-14-generic-pae.
Du courage
Hors ligne
#4 Le 08/12/2009, à 15:00
- spre
Re : problème lors de l'installation de vmware server 2 sur ubuntu 9.10
Bon j'ai résolu le problème en installant la 8.04 + vmware server 2. Et ça fonctionne nickel, aucunes erreurs. Il y a peut-être des problèmes de compatibilité avec le nouveau kernel ou alors cette installation est réservée aux experts!
Hors ligne
#5 Le 13/12/2009, à 19:37
- Fuxy_57
Re : problème lors de l'installation de vmware server 2 sur ubuntu 9.10
J'ai exactement le même problème.
Cela m'embête de repasser sous du 8.04, je vais voir si je trouve une solution.
Bien sur si quelqu'un la trouve avant je suis preneur
Hors ligne
#6 Le 13/12/2009, à 20:35
- Fuxy_57
Re : problème lors de l'installation de vmware server 2 sur ubuntu 9.10
Bon je suis pas un expert Linux (je débute aujourd'hui ) mais je pense que j'ai la solution que j'ai trouvé la solution sur un forum ubuntu en anglais. Et encore Merci à eux car chez moi ca fonctionne.
- après l'essai d'installation si vous avez ces erreurs télécharger le patch suivant
http://www.ubuntugeek.com/images/vmware … .4-fix.tgz
- décompresser les 2 fichiers dans le répertoire ou se trouve l'install de VMWare Server 2. Dans mon cas vmware-server-distrib
- lancer la mise a jour :
sudo sh vmware-server.2.0.1_x64-modules-2.6.30.4-fix.sh
- à la fin de cette petite mise a jour il faut supprimer certains fichiers (modules) car durant l'installation original il va les recréés
sudo rm -rf /usr/lib/vmware/modules/binary
- et relancer l'installation de vmaware normalement
sudo vmware-config.pl
bon j'espère que j'ai été clair et que cela va servir a quelqu'un.
Hors ligne
#7 Le 18/01/2010, à 20:33
- gcvoiron
Re : problème lors de l'installation de vmware server 2 sur ubuntu 9.10
Ta solution a marché pour moi Fuxy_57, merci beaucoup !
Pour info, je suis sous Ubuntu 9.10 noyau 2.6.31-17-generic et VMWare Server 2.0.2
Hors ligne