You are not logged in.
I recently got a new laptop that required kernel 2.6.35 for the ethernet controller. I was able to get it compiled and installed, and then tried to install VMware Server 2.0.2 from the AUR. Unfortunately, something changed in kernel 2.6.34 and the vmware-server-modules package would not build. I found a patch for VMware Worstation 7.1 at http://www.debuntu.org/how-wmware-works … rkat-10.10. However, it wasn't compatible with the source code from VMware Server 2.0.2. I managed to port the patch over manually. Here is how:
Download the file VMware-server-2.0.2-203138.i386.tar.gz from the vmware.com website.
Untar the file in a temporary directory.
cd vmware-server-distrib/lib/modules/source/
Untar vsock.tar and vmnet.tar
cd vsock-only/linux/
vim af_vsock.c
Issue this command within vim: :%s/sk->compat_sk_sleep/compat_sk_sleep(sk)/g (there should be ten substitutions)
The file is probably read-only, so issue :w! to save it. Then quit.
cd ../include/
vim compat_sock.h
Change line 46 from:
# define compat_sk_sleep sleep
to:
# define compat_sk_sleep(sk) sk->sleep
Delete line 64:
# define compat_sk_sleep sk_sleep
and replace it with:
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 34)
# define compat_sk_sleep(sk) sk->sk_sleep
#else
# define compat_sk_sleep(sk) sk_sleep(sk)
#endif
cd ../../
cp vsock-only/include/compat_sock.h vmnet-only/compat_sock.h
rm vmnet.tar vsock.tar
tar -cf vmnet.tar vmnet-only/
tar -cf vsock.tar vsock-only/
cd ../../../../
rm VMware-server-2.0.2-203138.i386.tar.gz
tar -cf VMware-server-2.0.2-203138.i386.tar.gz vmware-server-distrib/
Last, you need to md5sum VMware-server-2.0.2-203138.i386.tar.gz and then open PKGBUILD and change the existing VMware-server-2.0.2-203138.i386.tar.gz md5sum to the new one. If you don't do this step, the build will fail because the checksums won't match.
After making the above changes, run makepkg -s as normal. It should work fine.
This process would be much smoother if someone more knowlegeable than I could make a .patch file and modify the AUR build scripts. I have the updated files and would be willing to provide those to anyone who wants to undertake that task. Please also note that I HAVE NOT tested this on any kernel except 2.6.35-rc6. The patch I found in the link at the top of this post is for kernel 2.6.34, so I assume it fixes the vmware-server-modules compilation for both 2.6.34 and 2.6.35. I hope this post can be of help to somebody.
Offline
I this patch is exactly what you describe here:
http://pastie.org/1202649
Offline
I this patch is exactly what you describe here:
http://pastie.org/1202649
How does one implement that patch?
Offline
I would like to run VMWare server on my ArchLinux, could you share the package??
gdane195
Offline