Se stai usando una versione di Linux con kernel 2.6.40.XXX potresti incappare in qualche problema lanciando VMware Workstation o Server con il seguente messaggio d’errore :
Unable to build vmmon module
Se stai usando una versione di Linux con kernel 2.6.40.XXX potresti incappare in qualche problema lanciando VMware Workstation o Server con il seguente messaggio d’errore :
Unable to build vmmon module
Se controlli il file di log dell’installazione dovresti trovare qualcosa di simile:
set 01 12:26:39.294: app-140041479116576| Log for VMware Workstation pid=14088 version=7.1.4 build=build-385536 option=Release set 01 12:26:39.294: app-140041479116576| The process is 64-bit. set 01 12:26:39.294: app-140041479116576| Host codepage=UTF-8 encoding=UTF-8 set 01 12:26:39.294: app-140041479116576| Logging to /tmp/vmware-root/setup-14088.log set 01 12:26:39.407: app-140041479116576| modconf query interface initialized set 01 12:26:39.408: app-140041479116576| modconf library initialized set 01 12:26:39.432: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.435: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.441: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.450: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.456: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.478: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.480: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.482: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.484: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.486: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.499: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.502: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.504: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.506: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.508: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.511: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.517: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.540: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.542: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.544: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.546: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.548: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.551: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.557: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.603: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.606: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.610: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.613: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.615: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.684: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.684: app-140041479116576| Building module vmmon. set 01 12:26:39.684: app-140041479116576| Extracting the sources of the vmmon module. set 01 12:26:39.694: app-140041479116576| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmmon-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/2.6.40.3-0.fc15.x86_64/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.6.0 set 01 12:26:40.393: app-140041479116576| Failed to compile module vmmon! |
Questo è un “bug” già più volte apparso nelle versioni precedenti di VMWare, tutto quello che dovrai fare è scaricarti il file allegato all’articolo, rinominarlo in .tar.bz2, e scompattarlo con il seguente comando:
tar xvf vmware2_6_39patchv3.tar.bz2
Prima di procedere assicuriamoci di aver installato nel sistema la utility ‘patch’, semplicemente con:
yum install patch
Una volta fatto, installiamo la patch con:
./patch-modules_2.6.39.sh
Lo script ci metterà un bel pò (qualche minuto) e vedrai comparire dei messaggi tipo:
Building modules, stage 2. MODPOST 1 modules CC /tmp/vmware-root/modules/vsock-only/vsock.mod.o LD [M] /tmp/vmware-root/modules/vsock-only/vsock.mod.ko make[1]: Leaving directory `/usr/src/kernels/2.6.40-4.fc15.x86_64′ make -C $PWD SRCROOT=$PWD/. MODULEBUILDDIR= postbuild make[1]: Entering directory `/tmp/vmware-root/modules/vsock-only’ make[1]: `postbuild’ is up to date. make[1]: Leaving directory `/tmp/vmware-root/modules/vsock-only’ cp -f vsock.ko ./../vsock.o make: Leaving directory `/tmp/vmware-root/modules/vsock-only’ Built vsock module Starting vmware (via systemctl): [ OK ] |
Se controlli il file di log dell’installazione dovresti trovare qualcosa di simile:
set 01 12:26:39.294: app-140041479116576| Log for VMware Workstation pid=14088 version=7.1.4 build=build-385536 option=Release set 01 12:26:39.294: app-140041479116576| The process is 64-bit. set 01 12:26:39.294: app-140041479116576| Host codepage=UTF-8 encoding=UTF-8 set 01 12:26:39.294: app-140041479116576| Logging to /tmp/vmware-root/setup-14088.log set 01 12:26:39.407: app-140041479116576| modconf query interface initialized set 01 12:26:39.408: app-140041479116576| modconf library initialized set 01 12:26:39.432: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.435: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.441: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.450: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.456: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.478: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.480: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.482: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.484: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.486: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.499: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.502: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.504: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.506: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.508: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.511: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.517: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.540: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.542: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.544: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.546: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.548: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.551: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.557: app-140041479116576| Your GCC version: 4.6 set 01 12:26:39.603: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.606: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.610: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.613: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.615: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.684: app-140041479116576| Trying to find a suitable PBM set for kernel 2.6.40.3-0.fc15.x86_64. set 01 12:26:39.684: app-140041479116576| Building module vmmon. set 01 12:26:39.684: app-140041479116576| Extracting the sources of the vmmon module. set 01 12:26:39.694: app-140041479116576| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmmon-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/2.6.40.3-0.fc15.x86_64/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.6.0 set 01 12:26:40.393: app-140041479116576| Failed to compile module vmmon! |
Questo è un “bug” già più volte apparso nelle versioni precedenti di VMWare, tutto quello che dovrai fare è scaricarti il file allegato all’articolo, rinominarlo in .tar.bz2, e scompattarlo con il seguente comando:
tar xvf vmware2_6_39patchv3.tar.bz2
Prima di procedere assicuriamoci di aver installato nel sistema la utility ‘patch’, semplicemente con:
yum install patch
Una volta fatto, installiamo la patch con:
./patch-modules_2.6.39.sh
Lo script ci metterà un bel pò (qualche minuto) e vedrai comparire dei messaggi tipo:
Building modules, stage 2. MODPOST 1 modules CC /tmp/vmware-root/modules/vsock-only/vsock.mod.o LD [M] /tmp/vmware-root/modules/vsock-only/vsock.mod.ko make[1]: Leaving directory `/usr/src/kernels/2.6.40-4.fc15.x86_64′ make -C $PWD SRCROOT=$PWD/. MODULEBUILDDIR= postbuild make[1]: Entering directory `/tmp/vmware-root/modules/vsock-only’ make[1]: `postbuild’ is up to date. make[1]: Leaving directory `/tmp/vmware-root/modules/vsock-only’ cp -f vsock.ko ./../vsock.o make: Leaving directory `/tmp/vmware-root/modules/vsock-only’ Built vsock module Starting vmware (via systemctl): [ OK ] |