Nowe posty

xx Problem ze sterownikami. (5)
2024-04-13, 21:25:16
xx Instalacja xfce4 (2)
2024-04-13, 16:20:17
xx Serie kompilacji bez instalacji dla “emerge” w Gentoo (2)
2024-04-08, 18:40:04
xx Plasma 6 w Neonie ssie trochę mniej ... (17)
2024-04-05, 10:03:46
xx Problem z Linux Lite po instalacji (3)
2024-04-03, 14:23:40
xx Jak właczyć num locka przy starcie systemu debian 12? (12)
2024-04-02, 17:43:54
xx Brak dźwieku w systemie. (5)
2024-04-02, 16:13:41
xx Dystrybucja pod HP Omen (7)
2024-03-29, 11:33:05
xx [Poradnik] Wyszukiwanie Sterowników (2)
2024-03-27, 21:08:23
xx Ile pingwinów? (1)
2024-03-27, 08:59:24

Autor Wątek: Problem z VMware na openSuSe 11.1  (Przeczytany 4537 razy)

Koeshi

  • Gość
Problem z VMware na openSuSe 11.1
« dnia: 2008-12-24, 01:46:43 »
Zgodnie z instrukcjami zamieszczonymi na http://portal.suse.pl/wiki/index.php/VMware#Pobieranie_i_instalowanie_oprogramowania przystąpiłem do działania jednak nie wszystko idzie tak jak trzeba. Zgodnie z instrukcjami zainstalowałem wszystkie potrzebne pakiety przed wykonaniem polecenia vmware-config.pl jednak w końcowej fazie konfigurator wysypuje się i nie wiem zabardzo czemu. Wszystko wygląda następująco:



linux-dloq:/home/koeshi # vmware-config.pl
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] yes

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

Your kernel was built with "gcc" version "4.3.2", while you are trying to use
"/usr/bin/gcc" version "4.3". 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" anyway? [no] yes                                  

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.27.7-9-pae/build/include]                            

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Wejście do katalogu `/tmp/vmware-config3/vmmon-only'
make -C /lib/modules/2.6.27.7-9-pae/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Wejście do katalogu `/usr/src/linux-2.6.27.7-9-obj/i386/pae'                  
make -C ../../../linux-2.6.27.7-9 O=/usr/src/linux-2.6.27.7-9-obj/i386/pae/. modules    
  CC [M]  /tmp/vmware-config3/vmmon-only/linux/driver.o                                
In file included from /tmp/vmware-config3/vmmon-only/./include/x86.h:20,                
                 from /tmp/vmware-config3/vmmon-only/./include/machine.h:24,            
                 from /tmp/vmware-config3/vmmon-only/linux/driver.h:15,                
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:49:                
/tmp/vmware-config3/vmmon-only/./include/x86apic.h:79:1: warning: "APIC_BASE_MSR" redefined
In file included from include2/asm/fixmap_32.h:29,                                        
                 from include2/asm/fixmap.h:5,                                            
                 from include2/asm/apic.h:9,                                              
                 from include2/asm/smp.h:13,                                              
                 from /usr/src/linux-2.6.27.7-9/include/linux/smp.h:28,                    
                 from /usr/src/linux-2.6.27.7-9/include/linux/topology.h:33,              
                 from /usr/src/linux-2.6.27.7-9/include/linux/mmzone.h:687,                
                 from /usr/src/linux-2.6.27.7-9/include/linux/gfp.h:4,                    
                 from /usr/src/linux-2.6.27.7-9/include/linux/kmod.h:22,                  
                 from /usr/src/linux-2.6.27.7-9/include/linux/module.h:13,                
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:12:                    
include2/asm/apicdef.h:134:1: warning: this is the location of the previous definition    
In file included from /tmp/vmware-config3/vmmon-only/./include/machine.h:24,              
                 from /tmp/vmware-config3/vmmon-only/linux/driver.h:15,                    
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:49:                    
/tmp/vmware-config3/vmmon-only/./include/x86.h:830:1: warning: "PTE_PFN_MASK" redefined    
In file included from include2/asm/paravirt.h:7,
                 from include2/asm/irqflags.h:55,
                 from /usr/src/linux-2.6.27.7-9/include/linux/irqflags.h:57,
                 from include2/asm/system.h:11,
                 from include2/asm/processor.h:17,
                 from /usr/src/linux-2.6.27.7-9/include/linux/prefetch.h:14,
                 from /usr/src/linux-2.6.27.7-9/include/linux/list.h:6,
                 from /usr/src/linux-2.6.27.7-9/include/linux/module.h:9,
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:12:
include2/asm/page.h:22:1: warning: this is the location of the previous definition
In file included from /tmp/vmware-config3/vmmon-only/linux/vmhost.h:13,
                 from /tmp/vmware-config3/vmmon-only/linux/driver.c:71:
/tmp/vmware-config3/vmmon-only/./include/compat_semaphore.h:5:27: error: asm/semaphore.h: Nie ma takiego pliku ani katalogu
/tmp/vmware-config3/vmmon-only/linux/driver.c:146: error: unknown field ‘nopage’ specified in initializer
/tmp/vmware-config3/vmmon-only/linux/driver.c:147: warning: initialization from incompatible pointer type
/tmp/vmware-config3/vmmon-only/linux/driver.c:150: error: unknown field ‘nopage’ specified in initializer
/tmp/vmware-config3/vmmon-only/linux/driver.c:151: warning: initialization from incompatible pointer type
/tmp/vmware-config3/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’:
/tmp/vmware-config3/vmmon-only/linux/driver.c:1670: error: too many arguments to function ‘smp_call_function’
make[4]: *** [/tmp/vmware-config3/vmmon-only/linux/driver.o] Błąd 1
make[3]: *** [_module_/tmp/vmware-config3/vmmon-only] Błąd 2
make[2]: *** [sub-make] Błąd 2
make[1]: *** [all] Błąd 2
make[1]: Opuszczenie katalogu `/usr/src/linux-2.6.27.7-9-obj/i386/pae'
make: *** [vmmon.ko] Błąd 2
make: Opuszczenie katalogu `/tmp/vmware-config3/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.


Moim skromnym zdaniem może to mieć coś z wersją gcc ale nie bardzo wiem oco kaman. Będę wdzięczny za jakieś wskazówki.

Pozdro

ra-v

  • Gość
Problem z VMware na openSuSe 11.1
« Odpowiedź #1 dnia: 2008-12-30, 09:27:05 »
/tmp/vmware-config3/vmmon-only/linux/driver.c:146:
/tmp/vmware-config3/vmmon-only/linux/driver.c:150:
---------------------

1) należy ropzpakować /var/lib/vmware/source/vmmon.tar (ścieżki dokładnie nie pamiętam)

2) poszukać plik driver.c i numery linii 146 i 150 (nie wiem dokładnie, ale schemat działania jest podany niżej),

3) należy zakomentować 2 razy (wstawić // na początki linii, 146 i 150, przypis: patrz nawias wyżej)
np.
145: instrukcja ... {
146:    // bleble............
147: }
............
149: instrukcja  ... {
150:    // bleble............
151: }

4) spakować z powrotem do vmmon.tar (wcześniej warto zrobić kopię poprzedniego pliku .tar)

5) uruchomić ponownie vmware-config.pl (czy jego odpowiednik)

Problem wystąpi jeszcze w bridge.c. Schemat działania będzie podobny jw. z tym że operwać się bedzie na vmnet.tar (chyba:)