vmware on ubuntu revival

hey folks,

new version – new problems! ubuntu 10.10 with the 2.6.35-22 kernel needs more attention (see articel “installing vmware workstation 6.5.x on ubuntu”). here [1] i found the first solution for the problem “gcc and kernel headers must be installed”. it was necessary to link two header files to the include/linux directory. the next problem was the vsock module. the solution can be found here [2].

summarized there are following steps to be done:

in one terminal, run:

while true; do sudo killall -9 vmware-modconfig-console; sleep 1; done

in a second terminal, run:

sudo ./VMware-Workstation-6.5.4-246459.x86_64.bundle --ignore-errors

kill loop in first terminal.
and now those commands:

cd /tmp
vi vmnet-only/vnetUserListener.c (near line 37 add #include "compat_sched.h")
tar cf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only
tar xf /usr/lib/vmware/modules/source/vmci.tar
vi vmci-only/linux/vmciKernelIf.c (add #include "compat_sched.h" around line 30)
vi vmci-only/include/pgtbl.h  (add #include "compat_sched.h" around line 30)
tar cf /usr/lib/vmware/modules/source/vmci.tar vmci-only
tar xf /usr/lib/vmware/modules/source/vmnet.tar
cd /usr/src/linux-headers-2.6.35-22-generic/include/linux/
ln -sf ../generated/autoconf.h .
ln -sf ../generated/utsrelease.h .
cd /usr/lib/vmware/modules/source
cp -a vsock.tar vsock-orig.tar
tar xf vsock.tar
cd /usr/lib/vmware/modules/sourcevsock-only/linux
patch -p0 < /path/to/vsock.patch
cd /usr/lib/vmware/modules/source
tar cf vsock.tar vsock-only
rm -rf vsock-only

and now finally

cd /tmp
sudo vmware-modconfig --console --install-all

hopefully everything went fine 😉

thanks for all the fish!

[1] “VMWare Workstation 6.5.4 with Linux kernel 2.6.33.4” (http://bovitron.com/blogostu/2010/06/01/vmware-workstation-with-linux-kernel-2-6-33-4)

[2] “Persuading VMware Workstation 7.1 to cooperate with Linux kernel 2.6.35” (http://www.linuxinsight.com/persuading-vmware-workstation-7.1-to-cooperate-with-linux-kernel-2.6.35.html)

[3] vsock.patch

6 thoughts on “vmware on ubuntu revival

  1. Matthias F.

    Warum muss es überhaupt VMWare sein? Das ist ja ur zach zum einrichten, würds Sun (äh. Oracle) Virtualbox nicht auch tun?

    Reply
  2. mike Post author

    in der kürze liegt die würze … 😉

    chmod u+x VMware-Workstation-6.5.*.x86_64.bundle
    while true; do sudo killall -9 vmware-modconfig-console; sleep 1; done

    sudo ./VMware-Workstation-6.5.*.x86_64.bundle –ignore-errors

    tar xvf /usr/lib/vmware/modules/source/vmnet.tar -C /tmp
    tar xvf /usr/lib/vmware/modules/source/vmci.tar -C /tmp

    cd /tmp

    perl -pi -e ‘s,(“vnetInt.h”),\1\n#include “compat_sched.h”,’ vmnet-only/vnetUserListener.c
    perl -pi -e ‘s,(“compat_page.h”),\1\n#include “compat_sched.h”,’ vmci-only/include/pgtbl.h

    tar cvf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only
    tar cvf /usr/lib/vmware/modules/source/vmci.tar vmci-only

    cd /usr/lib/vmware/modules/source
    cp -a vsock.tar vsock-orig.tar
    tar xf vsock.tar
    cd /usr/lib/vmware/modules/sourcevsock-only/linux
    patch -p0 < /path/to/vsock.patch cd /usr/lib/vmware/modules/source tar cf vsock.tar vsock-only rm -rf vsock-only sudo vmware-modconfig --console --install-all [1] http://www.linuxquestions.org/questions/linux-virtualization-90/vmware-workstation-6-5-5-on-ubuntu-10-04-install-freezes-854709/

    Reply

Leave a Reply to mike Cancel reply

Your email address will not be published. Required fields are marked *