PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : HowTo: Installation von VMware Server 1.0.1 auf Kernel >2.6.19.x ohne Any-Any Patch



bla!zilla
02.01.07, 11:03
Hallo,

da mir dieser any-any Patch mittlerweile dezent auf den Keks geht (nach Installation ist eine vmware-bridge mit einem WLAN Adapter nicht mehr supported und funktioniert nicht mehr), habe ich mich auf die Suche nach einem Workaround gemacht - und einen gefunden!

Nach der Installation des VMware Servers (als RPM oder Tarball), und _vor_ dem Ausführen von vmware-config.pl muss man das vmnet.tar patchen. Dazu braucht man diesen Patch (http://blazilla.dyndns.org/data/vmnet-bridge.c-patch).

1. VMware Server installieren
2. Nach /usr/lib/vmware/modules/source wechseln und vmnet.tar entpacken (tar xf vmnet.tar).
3. Patch herunterladen und nach /usr/lib/vmware/modules/source/vmnet-only kopieren.
4. Nach /usr/lib/vmware/modules/source/vmnet-only wechseln und bridge.c patchen (patch -p1 < vmnet-bridge.c-patch).
5. Das Verzeichnis vmnet-only verlassen und vmnet.tar neu packen. (tar cf vmnet.tar vmnet-only/)
6. vmware-config.pl ausführen.

Fertig. Danach sollte alles auch ohne any-any Patch laufen und meine vmware-bridge mit WLAN funktioniert trotzdem. :rolleyes:

Basti_litho
02.01.07, 21:27
vielen Dank - ist bei mir nämlich das selbe mit WLan.

Werde ich gleich mal probieren.

Kannst du den patch nicht auch hier ins Forum stellen - als Anhang?

Gruß
Basti

mechanicus
04.01.07, 20:56
Habe ich eben in Fedora Core 6 x86_64 mit Kernel 2.6.18-1.2869 versucht, klappt leider nicht:


(... Lizenzbedingungen)

Do you accept? (yes/no) yes

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.18-1.2869.fc6/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config4/vmmon-only'
make -C /lib/modules/2.6.18-1.2869.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2869.fc6-x86_64'
CC [M] /tmp/vmware-config4/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-config4/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-config4/vmmon-only/common/cpuid.o
CC [M] /tmp/vmware-config4/vmmon-only/common/hash.o
CC [M] /tmp/vmware-config4/vmmon-only/common/memtrack.o
CC [M] /tmp/vmware-config4/vmmon-only/common/phystrack.o
CC [M] /tmp/vmware-config4/vmmon-only/common/task.o
CC [M] /tmp/vmware-config4/vmmon-only/common/vmx86.o
CC [M] /tmp/vmware-config4/vmmon-only/vmcore/moduleloop.o
LD [M] /tmp/vmware-config4/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST
CC /tmp/vmware-config4/vmmon-only/vmmon.mod.o
LD [M] /tmp/vmware-config4/vmmon-only/vmmon.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2869.fc6-x86_64'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config4/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, eth1.
Which one do you want to bridge to vmnet0? [eth0]

The following bridged networks have been defined:

. vmnet0 is bridged to eth0

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] no

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

Extracting the sources of the vmnet module.

Building the vmnet module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config4/vmnet-only'
make -C /lib/modules/2.6.18-1.2869.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2869.fc6-x86_64'
CC [M] /tmp/vmware-config4/vmnet-only/driver.o
CC [M] /tmp/vmware-config4/vmnet-only/hub.o
CC [M] /tmp/vmware-config4/vmnet-only/userif.o
CC [M] /tmp/vmware-config4/vmnet-only/netif.o
CC [M] /tmp/vmware-config4/vmnet-only/bridge.o
CC [M] /tmp/vmware-config4/vmnet-only/procfs.o
/tmp/vmware-config4/vmnet-only/procfs.c:36:28: Fehler: linux/config.h: Datei oder Verzeichnis nicht gefunden
make[2]: *** [/tmp/vmware-config4/vmnet-only/procfs.o] Fehler 1
make[1]: *** [_module_/tmp/vmware-config4/vmnet-only] Fehler 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2869.fc6-x86_64'
make: *** [vmnet.ko] Fehler 2
make: Leaving directory `/tmp/vmware-config4/vmnet-only'
Unable to build the vmnet 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.

[root@sata-server ~]# uname -r
2.6.18-1.2869.fc6
[root@sata-server ~]#


M.f.G. mechanicus

stefan.becker
04.01.07, 20:58
Schau dir bitte mal den Titel an. 18+1=19 :)

mechanicus
04.01.07, 21:08
Schau dir bitte mal den Titel an. 18+1=19 :)

Schon klar, dachte nur, das wäre nicht so genau gemeint, denn ">19.x" ist ">=20.x". Gibt es den denn schon als stable? :-)

M.f.G. mechanicus

macMeck
23.01.07, 21:42
Hi,

>19.x heißt wirklich ein 20er? Oder wie ist das zu verstehen? Ich habe mit 2.6.19 nämlich das gleiche Problem. Soll ich also mal den Kernel updaten meint ihr?

Grüße

macMeck

stefan.becker
23.01.07, 21:53
2.6.19.x sollte OK sein. Also eher ">=".

macMeck
23.01.07, 21:56
Naja, wie immer. Erst googlen, dann posten. Einfach mal /usr/src/linux/include/linux/config.h touchen, dann sollte das Problem behoben sein. Anscheinend auch für 2.6.18er Kernel.

macMeck

nunja
24.01.07, 01:13
Nunja, das ist richtig. Die ehemalige Datei config.h heist seit Kernversion 2.6.18 autoconf.h und die meisten Quelltextdateien sind darauf noch nicht umgestellt.