You are not logged in.

#1 2008-02-11 07:33:34

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

[SOLVED] vmware-player and kernel 2.6.24

Has anyone managed to get this to work yet?

I added this to the package build (as well as the vmware-any-any download) and it builds.  It is based on information I found on the net and turns out to be equivalent to the changes floating around in an unofficial vmware-any-any-update116.

  cd $startdir/src/vmware-any-any-update115/
  tar -xf vmmon.tar
  sed -i "s#161#167#" vmmon-only/include/{iocontrols.h,iocontrols_compat.h}
  sed -i "s#asm/#linux/#" vmmon-only/include/vcpuset.h
  tar -cf vmmon.tar vmmon-only/*

  cd $startdir/src/vmware-player-distrib/lib/modules/source
  cp -f $startdir/src/vmware-any-any-update115/*.tar .

This builds and configures OK but then won't start my windows vm.  Anyone got further?

Last edited by Allan (2008-02-12 06:34:37)

Offline

#2 2008-02-11 16:51:52

gorn
Member
Registered: 2008-02-01
Posts: 56

Re: [SOLVED] vmware-player and kernel 2.6.24

I have Workstation working here. I used vmware-any-any-update-116 so I'd recommend trying that:

http://blog.creonfx.com/linux/how-to-in … 624-kernel

(I didn't follow those instructions, as I said, I'm using Workstation. But the any-any-116 is the important part I think.)

Offline

#3 2008-02-12 01:59:39

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: [SOLVED] vmware-player and kernel 2.6.24

The changes I make to any-any-115 as the same as made in that unofficial 116 version.  While this gets everything compiling and configuring fine, I still can't get my vm to run.  I have had to downgrade to the old kernel (no ssh on my system so the privilege escalation bug is not too scary....).

I see Office 2003 runs in wine these days so I may just install that and get rid of my vm all together.

Offline

#4 2008-02-12 05:05:46

gorn
Member
Registered: 2008-02-01
Posts: 56

Re: [SOLVED] vmware-player and kernel 2.6.24

I just tried running vmplayer (It comes with Workstation) and that worked for me too.
Do you get an error message, or just nothing happens?
If you think it's a module issue I can send you the source tarballs of the modules I'm using.

Note I'm not actually running arch's 2.4.24 but my own compile.

But then again the wine route is not a bad one.

Offline

#5 2008-02-12 06:07:09

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: [SOLVED] vmware-player and kernel 2.6.24

OK, I just tried using the unofficial any-any-update116 tarball and still get the same error:

Version mismatch with vmmon module: expecting 167.0, got 137.0

Hmmm....

Offline

#6 2008-02-12 06:34:18

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: [SOLVED] vmware-player and kernel 2.6.24

Solution!  vmware-player-modules was building for the wrong version of vmware.  There auto-detection seems not the best....

Anyway, on the make line add "VMWARE_VER=VME_V6" and all works brilliantly!


Edit: just learned not to use vmware in a VNC desktop...  the mouse goes crazy!

Last edited by Allan (2008-02-12 06:49:41)

Offline

#7 2008-02-14 02:59:35

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 328

Re: [SOLVED] vmware-player and kernel 2.6.24

on the make line add "VMWARE_VER=VME_V6"

Where is the "make line", can't find it sorry.

Offline

#8 2008-02-14 03:38:47

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: [SOLVED] vmware-player and kernel 2.6.24

In the PKGBUILD...

Edit: ignore this. There is an updated version in AUR now.


Here is my adjusted vmware-player-module PKGBUILD.  Get the vmware-player PKGBUILD from AUR (no adjustments necessary).

# Change this to proper kernel release
_kernver=`uname -r`

pkgname=vmware-player-modules
pkgver=2.0.2_59824
pkgrel=1
pkgdesc="Kernel modules for VMware Player"
arch=('i686' 'x86_64')
url="http://www.vmware.com/products/player/"
license=('custom')
depends=('kernel26')
conflicts=('vmware-workstation-modules' 'vmware-server-modules')
install=vmware-player-modules.install
if [ $CARCH = "i686" ]; then
  source=(http://download3.vmware.com/software/vmplayer/VMware-player-2.0.2-59824.i386.tar.gz
          http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update115.tar.gz)
  md5sums=('0c108db615943d71b78f18826611acce'
           'ab33ff7a799fee77f0f4ba5667cd4b9a')
elif [ $CARCH = "x86_64" ]; then
  source=(http://download3.vmware.com/software/vmplayer/VMware-player-2.0.2-59824.x86_64.tar.gz
          http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update115.tar.gz)
  md5sums=('f59a77f3e3b8e87591eff605c4bbb796'
           'ab33ff7a799fee77f0f4ba5667cd4b9a')
fi

build() {
  cd $startdir/src/vmware-any-any-update115/
  tar -xf vmmon.tar
  sed -i "s#161#167#" vmmon-only/include/{iocontrols.h,iocontrols_compat.h}
  sed -i "s#asm/#linux/#" vmmon-only/include/vcpuset.h
  tar -cf vmmon.tar vmmon-only/*

  cd $startdir/src/vmware-player-distrib/lib/modules/source
  cp -f $startdir/src/vmware-any-any-update115/*.tar .

  # Build and install the kernel modules
  for module in vmmon vmblock vmnet; do
    tar xf $module.tar
    make -C $module-only HEADER_DIR=/lib/modules/$_kernver/build/include VMWARE_VER=VME_V6 || return 1
    install -D -m644 $module-only/$module.ko $startdir/pkg/lib/modules/$_kernver/misc/$module.ko
  done

  # License
  mkdir -p $startdir/pkg/usr/share/licenses/vmware-player-modules
  install -m644 $startdir/src/vmware-player-distrib/doc/{EULA,open_source_licenses.txt} \
    $startdir/pkg/usr/share/licenses/vmware-player-modules

  sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='$_kernver'/" \
    $startdir/vmware-player-modules.install
}

Last edited by Allan (2008-02-14 08:33:41)

Offline

#9 2008-02-14 04:02:07

ganlu
Member
From: ChongQing, China
Registered: 2004-01-04
Posts: 328

Re: [SOLVED] vmware-player and kernel 2.6.24

Thanks.

Offline

Board footer

Powered by FluxBB