Enviado em 12/09/2016 - 16:45h
Olá Pessoal, fui instalar o VMware e ocorreu o seguinte erro: "Before you can run VMware, several modules must be compiled and loaded into the running kernel"
Já vi 2 soluções diferentes aqui no forum:
Baixei 2 versões depois VMware-Player-7.1.4-3848939.x86_64.bundle e VMware-Player-12.1.1-3770994.x86_64.bundle mais meu S.O é 32 bits e embora tenha x86_64 (que ao meu ver significa x32 e x64 ao mesmo tempo) quando vou instalar aparece o erro:
gerente@gerente-NH4CU03:~/Downloads$ sudo ./VMware-Player-7.1.4-3848939.x86_64.bundle
This is a x64 bundle and does not match that of the current architecture. Please download the x86 bundle.
Alguém pode me ajudar?
Já vi 2 soluções diferentes aqui no forum:
Solução:
Criar o arquivo /tmp/filter.c.diff, com o conteúdo:
vim /tmp/filter.c.diff
205a206
> #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
206a208,210
> #else
> VNetFilterHookFn(const struct nf_hook_ops *ops, // IN:
> #endif
255c259,263
< transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
---
> #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
> transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
> #else
> transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);
> #endif
Acessar como root e executar os comandos:
# cd /usr/lib/vmware/modules/source/
# cp vmnet.tar vmnet.tar.original
# tar xvf vmnet.tar vmnet-only/filter.c
# patch vmnet-only/filter.c < /tmp/filter.c.diff
# tar -uvf vmnet.tar vmnet-only/filter.c
# rm -rf vmnet-only/
Feito isso, reinicie o VMware Player.
eCriar o arquivo /tmp/filter.c.diff, com o conteúdo:
vim /tmp/filter.c.diff
205a206
> #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
206a208,210
> #else
> VNetFilterHookFn(const struct nf_hook_ops *ops, // IN:
> #endif
255c259,263
< transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
---
> #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
> transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
> #else
> transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);
> #endif
Acessar como root e executar os comandos:
# cd /usr/lib/vmware/modules/source/
# cp vmnet.tar vmnet.tar.original
# tar xvf vmnet.tar vmnet-only/filter.c
# patch vmnet-only/filter.c < /tmp/filter.c.diff
# tar -uvf vmnet.tar vmnet-only/filter.c
# rm -rf vmnet-only/
Feito isso, reinicie o VMware Player.
Quando eu atualizei o Ubuntu para a versão 15.04 este problema aconteceu, porém efetuei o download do patch e resolvi da seguinte forma:
1 – Baixe o patch na pasta /tmp digitando no terminal:
$ curl http://pastie.org/pastes/9934018/download -o /tmp/vmnet-3.19.patch
2 – Acesse a biblioteca do vm e extraia o arquivo vmnet conforme a seguir:
$ cd /usr/lib/vmware/modules/source
# tar -xf vmnet.tar
3 – Aplique a correção:
# patch -p0 -i /tmp/vmnet-3.19.patch
4 – Recrie o arquivo:
# tar -cf vmnet.tar vmnet-only
5 – Remova os arquivos de sobra:
# rm -r *-only
6 – Recompile os módulos:
# vmware-modconfig –console –install-all
Nenhuma deu certo. Uso UBUNTU 15.04 e o VMware instalei através do arquivo VMware-Player-5.0.4-1945795.i386.bundle. 1 – Baixe o patch na pasta /tmp digitando no terminal:
$ curl http://pastie.org/pastes/9934018/download -o /tmp/vmnet-3.19.patch
2 – Acesse a biblioteca do vm e extraia o arquivo vmnet conforme a seguir:
$ cd /usr/lib/vmware/modules/source
# tar -xf vmnet.tar
3 – Aplique a correção:
# patch -p0 -i /tmp/vmnet-3.19.patch
4 – Recrie o arquivo:
# tar -cf vmnet.tar vmnet-only
5 – Remova os arquivos de sobra:
# rm -r *-only
6 – Recompile os módulos:
# vmware-modconfig –console –install-all
Baixei 2 versões depois VMware-Player-7.1.4-3848939.x86_64.bundle e VMware-Player-12.1.1-3770994.x86_64.bundle mais meu S.O é 32 bits e embora tenha x86_64 (que ao meu ver significa x32 e x64 ao mesmo tempo) quando vou instalar aparece o erro:
gerente@gerente-NH4CU03:~/Downloads$ sudo ./VMware-Player-7.1.4-3848939.x86_64.bundle
This is a x64 bundle and does not match that of the current architecture. Please download the x86 bundle.
Alguém pode me ajudar?