Fazendo VMware Workstation funcionar no Kernel 2.6.35

Testado em:

  • VMware-Workstation 7.1.1
  • VMware-Workstation 7.1.2
  • Ubuntu 10.04 kernel 2.6.35 x64
  • Ubuntu 10.10 kernel 2.6.35 x64

Deve funcionar em qualquer sistema com 2.6.35.

Quem tinha o kernel < 2.6.35 conseguia fazer o VMware funcionar sem problemas, somente com o instalador fornecido, porém quando se faz o upgrade para o 2.6.35 e tenta rodar o VMware tem uma bela surpresa, ele não consegue compilar o vmmon, dando o seguinte erro:

Linux: Fazendo VMware Workstation funcionar no Kernel 2.6.35

Gerando um log em /tmp/vmware-root/setup-XXXX.log, onde XXXX é um numero fornecido pelo erro, varia.

No fim do log temos algo tipo:

Oct 02 00:10:54.734: app-140471525164800| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 02 00:10:54.734: app-140471525164800| Building module vmmon.
Oct 02 00:10:54.734: app-140471525164800| Extracting the sources of the vmmon module.
Oct 02 00:10:54.744: app-140471525164800| 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.35-
22-generic/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.4.5
Oct 02 00:10:56.712: app-140471525164800| Failed to compile module vmmon!

Agora vamos direto a solução, faça isso com a tela do erro aberta e poderá compilar diretamente por lá os módulos:

$ cd /tmp
$ wget
http://www.sputnick-area.net/scripts/vmware7.1.1-patch-kernel-2.6.35.bash
$ sudo chmod +x vmware7.1.1-patch-kernel-2.6.35.bash
$ sudo ./vmware7.1.1-patch-kernel-2.6.35.bash

Depois de aplicado, com a tela de erro aberta terá a opção de tentar compilar novamente, diga ‘Install’ e pronto, tudo deverá funcionar normalmente.

 

fonte: VivaoLinux