KAPITALSIN

JUEGOS/SOFTWARE/HARDWARE => SOFTWARE => Mensaje iniciado por: Fl0ppy en 18 de Abril de 2019, 07:27:48 pm

Título: How to install VMware Workstation 12 on Linux 4.10 kernel
Publicado por: Fl0ppy en 18 de Abril de 2019, 07:27:48 pm
https://www.techandme.se/how-to-install-vmware-workstation-12-on-linux-4-10-kernel/

INSTALL VMWARE AS NORMAL
In our case we installed VMware with a bundle file. To get the bundle to run you have to chmod a+x it to be executable then run this as root:

Citar
wget https://download3.vmware.com/software/wkst/file/VMware-Workstation-Full-12.5.9-7535481.x86_64.bundle
$~: sudo ./VMware-Workstation-Full-12.5.9-7535481.x86_64.bundle

INSTALL GCC AND BUILD-ESSENTIALS
Citar
$~: sudo apt install gcc build-essential
It should install gcc 6.3.0. You can check by typing this in CLI
$~: gcc -v

PATCH VMWARE
It may seem hard, but really, it’s easy. It’s all about patching the VM installation files. Though we want to say; do it at your own risk.

Citar
$~: sudo tar -xf /usr/lib/vmware/modules/source/vmmon.tar
$~: xed vmmon-only/linux/hostif.c

In vmmon-only/linux/hostif.c, around line 1162, change

Citar
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
retval = get_user_pages((unsigned long)uvAddr, numPages, 0, 0, ppages, NULL);
#else
retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,
numPages, 0, 0, ppages, NULL);
#endif
to

Citar
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)
retval = get_user_pages((unsigned long)uvAddr, numPages, 0, ppages, NULL);
#else
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
retval = get_user_pages((unsigned long)uvAddr, numPages, 0, 0, ppages, NULL);
#else
retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,
numPages, 0, 0, ppages, NULL);
#endif
#endif

A por otro módulo
Citar
$~: sudo tar -cf /usr/lib/vmware/modules/source/vmmon.tar vmmon-only/
$~: sudo tar -xf /usr/lib/vmware/modules/source/vmnet.tar
$~: sudo xed vmnet-only/userif.c

In vmnet-only/userif.c, around line 113, change

Citar
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
retval = get_user_pages(addr, 1, 1, 0, &page, NULL);
#else
retval = get_user_pages(current, current->mm, addr,
1, 1, 0, &page, NULL);
#endif

to

Citar
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)
retval = get_user_pages(addr, 1, 0, &page, NULL);
#else
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
retval = get_user_pages(addr, 1, 1, 0, &page, NULL);
#else
retval = get_user_pages(current, current->mm, addr,
1, 1, 0, &page, NULL);
#endif
#endif

Crear el módulo
Citar
$~: sudo tar -cf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only/

RUN VMWARE AGAIN
Now just start VMware as normal and it should install vmon and vmnet correctly.

Este parche lo testado con el vmware que hay para bajar en las instrucciones, lo único diferente es el GGC que tengo la "5.4.0 20160609", el progama arrancaa perfectamente y no se queja

Citar
Linux mint-EP35-DS3 4.10.0-38-generic #42~16.04.1-Ubuntu
Título: Re:How to install VMware Workstation 12 on Linux 4.10 kernel
Publicado por: Fl0ppy en 18 de Abril de 2019, 09:00:08 pm
Si cuando arrancais el Vmware 12 con una Mint 18 y no os salen partes del menú teneis de hacer esto

Citar
sudo xed /etc/vmware/bootstrap

Y añadir esta línea  :ok:

Citar
export VMWARE_USE_SHIPPED_GTK="yes"

Gracias a los foros de Linux Mint
https://forums.linuxmint.com/viewtopic.php?t=225586