Seite 1 von 1

VMWare 5, SuSE 9.3 Prof. und Kernel 2.6.11.4-21.8

Verfasst: 30.08.2005, 14:30
von kmielke
Hi All,

ich habe folgendes Problem.

Ich habe heute via Yast Online-Update meinen Kernel auf die Version 2.6.11.4-21.8 gebracht.

Nun weiss ich ja, das man mit einem neuen Kernel die VMWare Module neu bauen muss. Also habe ich nach dem Neustart folgende Befehle abgesetzt.

/usr/src/linux: make cloneconfig
/usr/src/linux: make prepare

Das ging ohne Fehler

Den aktuellen VMWare Patch habe ich bereits installiert.
Dann in /usr/bin ./vmware-config.

Ergebnis:

Code: Alles auswählen

Making sure services for VMware Workstation are stopped.

Stopping VMware services:
   Virtual machine monitor                                             done
   Bridged networking on /dev/vmnet0                                   done
   DHCP server on /dev/vmnet8                                          done
   NAT service on /dev/vmnet8                                          done
   Host-only networking on /dev/vmnet8                                 done
   Virtual ethernet                                                    done

Configuring fallback GTK+ 2.4 libraries.

***
* Updating MIME database in /usr/share/mime...
***
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 Workstation 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? [/usr/src/linux/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

VMware 2 or VMware Express detected, building for VMware 2, VMware Express and VMware Workstation 4.0.x.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config3/vmmon-only'
make -C /usr/src/linux/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.11.4-21.8'
  CC [M]  /tmp/vmware-config3/vmmon-only/linux/driver.o
  CC [M]  /tmp/vmware-config3/vmmon-only/linux/hostif.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/cpuid.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/hash.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/memtrack.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/phystrack.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/task.o
cc1plus: warning: "-ffreestanding" is valid for C/ObjC but not for C++
  CC [M]  /tmp/vmware-config3/vmmon-only/common/vmx86.o
  CC [M]  /tmp/vmware-config3/vmmon-only/vmcore/compat.o
  CC [M]  /tmp/vmware-config3/vmmon-only/vmcore/moduleloop.o
  LD [M]  /tmp/vmware-config3/vmmon-only/vmmon.o
  Building modules, stage 2.
  MODPOST
  CC      /tmp/vmware-config3/vmmon-only/vmmon.mod.o
  LD [M]  /tmp/vmware-config3/vmmon-only/vmmon.ko
make[1]: Leaving directory `/usr/src/linux-2.6.11.4-21.8'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config3/vmmon-only'
Unable to make a vmmon module that can be loaded in the running kernel:
insmod: error inserting '/tmp/vmware-config3/vmmon.o': -1 Invalid module format
There is probably a slight difference in the kernel configuration between the
set of C header files you specified and your running kernel.  You may want to
rebuild a kernel based on that directory, or specify another directory.

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.


Und nun weiss ich nicht mehr weiter. Ich habe bisher auch keine Info's zu dieser Problematik gefunden. Vielleicht hat ja hier jemand einen guten Tip für mich.

Danke
Gruß
Kester

Verfasst: 30.08.2005, 19:42
von MSueper
Hallo,
bist Du diesem Satz schon nachgegangen:

There is probably a slight difference in the kernel configuration between the
set of C header files you specified and your running kernel. You may want to
rebuild a kernel based on that directory, or specify another directory.


und hast geprüft, ob die Header auch aktuell sind?!
Grüße, Martin

Verfasst: 31.08.2005, 08:43
von kmielke
Hi,

einen neuen Kernel habe ich nicht gebaut. Ich habe nur den von SuSE genommen. Aber sowohl der DEFAULT als auch der SMP gehen nicht. Ich bin eigendlich davon ausgegangen, das die Quellen mit dem Kernel übereinstimmen, wenn ich ein Online-Update mache, oder via Yast einen anderen Kernel (mit Quellen) installiere.

Es hat bisher immer sehr gut geklappt. Ich benutze VMWare ja schon seit ca. 1 Jahr.

Verfasst: 31.08.2005, 09:13
von looping
naja - mit you gab es hier in der vergangenheit schon mehrere probleme. verifiziere mal die versionsnummern kernel:kernel-headers

Verfasst: 31.08.2005, 09:48
von kmielke
Hi,

also /usr/src/linux/include/linux/version.h sagt.

Code: Alles auswählen

#define UTS_RELEASE "2.6.11.4-21.8-default"
#define LINUX_VERSION_CODE 132619
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))



und rpm -qa | grep kernel sagt.

Code: Alles auswählen

kernel-default-nongpl-2.6.11.4-21.8
kernel-default-2.6.11.4-21.8
kernel-source-2.6.11.4-21.8
kernel-docs-2.6.11.4-21.8


Thx

Verfasst: 31.08.2005, 13:19
von kmielke
Hi All,

danke für Euro angebotene Hilfe, aber das Thema hat sich erledigt.

Ich habe einfach mal /usr/src/linux-2.6.11.4-21.8* komplett gelöscht und neu gezogen. Warum auch immer, hatte das include Verzeichnis ein anders Datum als die anderen Verzeichnisse... :?

Danach konnte ich die Module also bauen. Dabei ist mir noch folgendes aufgefallen.

Vorher meldete VMWare:

Code: Alles auswählen

Building the vmmon module.

VMware 2 or VMware Express detected, building for VMware 2, VMware Express and VMware Workstation 4.0.x.
Using 2.6.x kernel build system.


und nun kommt:

Code: Alles auswählen

Building the vmnet module.

Building for VMware Workstation 5.0.0.
Using 2.6.x kernel build system.


was ja auch stimmt. Ist schon komisch...

Thx
Gruß
Kester