Vmware Server 2.0: Installation

Hi,
ich bekomme bei der installation vom VMware Server 2.0 folgenden Fehler:

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

Extracting the sources of the vsock module.

Building the vsock module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vsock-only'
make -C /lib/modules/2.6.27-4-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-4-generic'
  CC [M]  /tmp/vmware-config0/vsock-only/linux/af_vsock.o
  CC [M]  /tmp/vmware-config0/vsock-only/linux/driverLog.o
  CC [M]  /tmp/vmware-config0/vsock-only/linux/util.o
/tmp/vmware-config0/vsock-only/linux/util.c: In function ?VSockVmciLogPkt?:
/tmp/vmware-config0/vsock-only/linux/util.c:157: warning: format not a string literal and no format arguments
  CC [M]  /tmp/vmware-config0/vsock-only/linux/vsockAddr.o
  LD [M]  /tmp/vmware-config0/vsock-only/vsock.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: "VMCIDatagram_CreateHnd" [/tmp/vmware-config0/vsock-only/vsock.ko] undefined!
WARNING: "VMCIDatagram_DestroyHnd" [/tmp/vmware-config0/vsock-only/vsock.ko] undefined!
WARNING: "VMCI_GetContextID" [/tmp/vmware-config0/vsock-only/vsock.ko] undefined!
WARNING: "VMCIDatagram_Send" [/tmp/vmware-config0/vsock-only/vsock.ko] undefined!
  CC      /tmp/vmware-config0/vsock-only/vsock.mod.o
  LD [M]  /tmp/vmware-config0/vsock-only/vsock.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-4-generic'
cp -f vsock.ko ./../vsock.o
make: Leaving directory `/tmp/vmware-config0/vsock-only'
Unable to make a vsock module that can be loaded in the running kernel:
insmod: error inserting '/tmp/vmware-config0/vsock.o': -1 Unknown symbol in module
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.

The VM communication interface socket family is used in conjunction with the VM
communication interface to provide a new communication path among guests and 
host.  The rest of this software provided by VMware Server is designed to work 
independently of this feature.  If you wish to have the VSOCK feature  you can 
install the driver by running vmware-config.pl again after making sure that 
gcc, binutils, make and the kernel sources for your running kernel are 
installed on your machine. These packages are available on your distribution's 
installation CD.
[ Press the Enter key to continue.]

Was nun? GCC, binutils, make und kernel-quellen sind installiert.

cu
serow
 
auf den ersten blick sieht das so aus, als wären die kernelquellen nicht von dem kernel, der bei dir grad läuft. kannst du das bestätigen?
 
Das einzige Packet, das auf den Namen linux-source-* hört ist linux-source-2.6.7. Linux Header sind folgende installiert:

linux-headers-2.6.27-3
linux-headers-2.6.27-3-generic
linux-headers-2.6.27-4
linux-headers-2.6.27-4-generic
linux-headers-generic

uname -r sagt:
Code:
2.6.27-4-generic

/lib/modules sieht so aus:
Code:
drwxr-xr-x 7 root root 4096 2008-09-22 19:47 2.6.24-19-generic
drwxr-xr-x 6 root root 4096 2008-09-23 16:45 2.6.27-3-generic
drwxr-xr-x 7 root root 4096 2008-09-24 22:12 2.6.27-4-generic
drwxr-xr-x 7 root root 4096 2008-09-24 19:00 last-good-boot
 
Sind die Kernel-Quellen die, die zu deinem laufenden Kernel gehören, in /usr/src/linux zu finden und mittels 'cd /usr/src/linux && cp /boot/config-<kernelversion> /usr/src/linux/.config && make oldconfig' vorkonfiguriert?
 
ich vermute eher, daß die kernel-header nicht reichen. mein tip:

apt-get install linux-sources-<deineversion>
cd /usr/src
tar xfz linux-source-<deineversion>
ln -s linux-sources-blabla linux

... also auch die sourcen (nicht die header) nach /usr/src/linux verlinken.
 
/usr/src sieht so aus:
Code:
mathias@wizard:/usr/src$ ls -l
total 51592
drwxr-xr-x 22 root root     4096 2008-09-22 19:39 linux-headers-2.6.27-3
drwxr-xr-x  7 root root     4096 2008-09-22 19:39 linux-headers-2.6.27-3-generic
drwxr-xr-x 22 root root     4096 2008-09-23 16:21 linux-headers-2.6.27-4
drwxr-xr-x  7 root root     4096 2008-09-23 16:21 linux-headers-2.6.27-4-generic
-rw-r--r--  1 root root 52742891 2008-09-22 08:06 linux-source-2.6.27.tar.bz2
drwxr-xr-x  2 root root     4096 2008-09-23 17:22 nvidia-177.76
drwxr-xr-x 10 root root     4096 2008-09-23 16:14 vboxdrv-2.0.2
drwxr-xr-x  6 root root     4096 2008-09-23 16:14 virtualbox-ose-guest-2.0.2

Den symlink linux gibts garnicht. Soll ich generic oder nicht-generic nehmen? *ratlos* Kann mich allerdings nicht erinnern, dass das mit VMware Server 1.0.7 unter Hardy (2.6.24) nötig war. 1.0.7 läuft allerdings nicht mehr unter 2.6.24. deswegen muss ich updaten.

cu
serow
 
Original von Serow
/usr/src sieht so aus:
Code:
mathias@wizard:/usr/src$ ls -l
total 51592
drwxr-xr-x 22 root root     4096 2008-09-22 19:39 linux-headers-2.6.27-3
drwxr-xr-x  7 root root     4096 2008-09-22 19:39 linux-headers-2.6.27-3-generic
drwxr-xr-x 22 root root     4096 2008-09-23 16:21 linux-headers-2.6.27-4
drwxr-xr-x  7 root root     4096 2008-09-23 16:21 linux-headers-2.6.27-4-generic
-rw-r--r--  1 root root 52742891 2008-09-22 08:06 linux-source-2.6.27.tar.bz2
drwxr-xr-x  2 root root     4096 2008-09-23 17:22 nvidia-177.76
drwxr-xr-x 10 root root     4096 2008-09-23 16:14 vboxdrv-2.0.2
drwxr-xr-x  6 root root     4096 2008-09-23 16:14 virtualbox-ose-guest-2.0.2

Den symlink linux gibts garnicht. Soll ich generic oder nicht-generic nehmen? *ratlos* Kann mich allerdings nicht erinnern, dass das mit VMware Server 1.0.7 unter Hardy (2.6.24) nötig war. 1.0.7 läuft allerdings nicht mehr unter 2.6.24. deswegen muss ich updaten.

cu
serow

deine kernel sources sind nicht entpackt. also wie ich grad beschrieben habe -> entpacken -> nach /usr/src/linux symlinken.
 
Okay, habs so gemacht. Hab auch mit make oldconfig konfiguriert. Hat alles nix genützt. Immernoch gleiche Fehlermeldung.

Code:
mathias@wizard:/usr/src$ ls -la
total 51604
drwxrwsr-x 10 root src      4096 2008-09-24 22:23 .
drwxr-xr-x 14 root root     4096 2008-09-23 17:22 ..
lrwxrwxrwx  1 root src        19 2008-09-24 22:23 linux -> linux-source-2.6.27
drwxr-xr-x 22 root root     4096 2008-09-22 19:39 linux-headers-2.6.27-3
drwxr-xr-x  7 root root     4096 2008-09-22 19:39 linux-headers-2.6.27-3-generic
drwxr-xr-x 22 root root     4096 2008-09-23 16:21 linux-headers-2.6.27-4
drwxr-xr-x  7 root root     4096 2008-09-23 16:21 linux-headers-2.6.27-4-generic
drwxr-xr-x 25 root root     4096 2008-09-24 22:24 linux-source-2.6.27
-rw-r--r--  1 root root 52742891 2008-09-22 08:06 linux-source-2.6.27.tar.bz2
drwxr-xr-x  2 root root     4096 2008-09-23 17:22 nvidia-177.76
drwxr-xr-x 10 root root     4096 2008-09-23 16:14 vboxdrv-2.0.2
drwxr-xr-x  6 root root     4096 2008-09-23 16:14 virtualbox-ose-guest-2.0.2
mathias@wizard:/usr/src$

Code:
mathias@wizard:/lib/modules$ ls -al
total 32
drwxr-xr-x  6 root root  4096 2008-09-24 19:00 .
drwxr-xr-x 16 root root 12288 2008-09-24 11:06 ..
drwxr-xr-x  7 root root  4096 2008-09-22 19:47 2.6.24-19-generic
drwxr-xr-x  6 root root  4096 2008-09-23 16:45 2.6.27-3-generic
drwxr-xr-x  7 root root  4096 2008-09-24 22:25 2.6.27-4-generic
drwxr-xr-x  7 root root  4096 2008-09-24 19:00 last-good-boot
mathias@wizard:/lib/modules$

Er fragt mich oben folgendes:
Code:
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.27-4-generic/build/include]
Das dürfte aber per default so okay sein oder?
 
eigentlich sollte dort nun /usr/src/linux/include rein. kann ich aber nicht beschwören.
 
Deinstalliere mal die unnötigen Kernel-Header wieder. Die sorgen sonst nur für Probleme, wenn parallel Sources existieren.
 
Hi,

installiert sind jetzt noch

linux-headers-2.6.27-4
linux-headers-2.6.27-4-generic
linux-headers-generic

Die gehören scheinbar irgendwie zusammen.

Wenn ich /usr/src/linux/include angebe kommt
The path "/usr/src/linux/include" is a kernel header file directory, but it
does not contain the file "linux/version.h" as expected. This can happen if
the kernel has never been built, or if you have invoked the "make mrproper"
command in your kernel directory. In any case, you may want to rebuild your
kernel.
Muss ich das make noch durchlaufen lassen?
 
das ist ein problem, was irgendwie seit 2.6.22 oder so auftritt. genaueres kann ich dir dazu leider nicht sagen. mal auf bit warten.
 
Einfach mittels 'touch /usr/src/linux/include/version.h' die Datei anlegen. Und die verbliebenen Kernel-Header-Pakete solltest du auch deinstallieren.
 
Oh man, ich kann das Ding nicht mal stoppen um vmware-config.pl ausführen zu können:

Code:
mathias@wizard:~$ sudo vmware-config.pl 
Making sure services for VMware Server are stopped.

Stopping VMware autostart virtual machines:
   Virtual machines                                                   failed
Stopping VMware management services:
   VMware Virtual Infrastructure Web Access
   VMware Server Host Agent                                           failed
Stopping VMware services:
   VMware Authentication Daemon                                        done
   Virtual machine communication interface                             done
   Virtual machine monitor                                             done
   Bridged networking on /dev/vmnet0                                   done
   Host network detection                                              done
   DHCP server on /dev/vmnet1                                          done
   Host-only networking on /dev/vmnet1                                 done
   DHCP server on /dev/vmnet8                                          done
   NAT service on /dev/vmnet8                                          done
   Host-only networking on /dev/vmnet8                                 done
   Virtual ethernet                                                   failed
Unable to stop services for VMware Server

Execution aborted.

mathias@wizard:~$ sudo /etc/init.d/vmware-core stop
Stopping VMware services:
   VMware Authentication Daemon                                        done
   Virtual machine communication interface                             done
   Virtual machine monitor                                             done
   Bridged networking on /dev/vmnet0                                   done
   Host network detection                                              done
   DHCP server on /dev/vmnet1                                          done
   Host-only networking on /dev/vmnet1                                 done
   DHCP server on /dev/vmnet8                                          done
   NAT service on /dev/vmnet8                                          done
   Host-only networking on /dev/vmnet8                                 done
   Virtual ethernet                                                   failed
mathias@wizard:~$

EDIT: Okay ein reboot hats gebracht. Seltsam ... Aber das klappt alles nicht:
Code:
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include] /usr/src/linux/include

The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.27-4-generic).  Even if the module were to 
compile successfully, it would not load into the running kernel.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

EDIT:
Ich befürchte wir habens hier einfach mit nam Bug zu tun. Ich hab spasseshalber einfach mal versucht das Ding unter Hardy (2.6.24) zu installieren und das läuft einwandfrei. Danke für die Mühen! Werd wohl erst auf Intrepid umsteigen wenns stable ist :P
 
Zurück
Oben