You are not logged in.

#1 2005-02-07 08:10:17

benoitc
Member
Registered: 2004-11-11
Posts: 62
Website

[PKGBUILD] vmware 4.5.2 build 8848

Yesterday, I decided to install vmware to test my websites on windows and other x86 systems. Here is the pkgbuild.  I used some part of wiki to do it. P Due to license problem you should first download the archive of vmware here:

http://www.vmware.com/vmwarestore/newst … _login.jsp

Before to launch vmware you have to launch mkvmdev in /etc/rc.d and on first time configure it with this command line /opt/vmware/bin/vmware-config.pl .

PKGBUILD:

# $Id $
# Maintener: Benoit Chesneau <benoitc@archlinuxfr.org>
pkgname=vmware-workstation
pkgver=4.5.2
pkgrel=1
pkgdesc="virtual machine software "
url="http://www.vmware.com/products/desktop/ws_features.html"
backup=()
install=vmware.install
depends=('xorg' 'perl' 'pciutils' 'openssl' 'popt' 'gtk2')
makedepends=()
source=(VMware-workstation-4.5.2-8848.tar.gz http://ftp.cvut.cz/vmware/vmware-any-any-update89.tar.gz 00-vmware.rules mkvmdev vmware.sh vmware-daemon.patch)
md5sums=('cd52130a4ad753ac9d017cc031038a3c' '97bff1ea0d8e96edea8f55115cf9aee0')

build() {
    cd $startdir/src/vmware-distrib
    tar xvzf ../vmware-any-any-update89.tar.gz
    mv vmware-any-any-update89/*.tar $startdir/src/vmware-distrib/lib/modules/source 
    cd $startdir/src/vmware-distrib/vmware-any-any-update89
    chmod 755 ../lib/bin/vmware ../bin/vmnet-bridge ../lib/bin/vmware-vmx ../lib/bin-debug/vmware-vmx
    ./update bridge ../bin/vmnet-bridge || return 1
    ./update vmx ../lib/bin/vmware-vmx || return 1
    ./update vmxdebug ../lib/bin-debug/vmware-vmx || return 1
    
    cd $startdir/src/vmware-distrib
    mkdir -p $startdir/pkg/opt/vmware
    
    # install binary files
    mkdir -p $startdir/pkg/opt/vmware/bin
    cp -a bin/* $startdir/pkg/opt/vmware/bin/

    # install libs
    mkdir -p $startdir/pkg/opt/vmware/lib
    cp -dr lib/* $startdir/pkg/opt/vmware/lib/
    chmod u+s $startdir/pkg/opt/vmware/lib/bin/vmware-vmx || return 1

    # install docs
    mkdir -p $startdir/pkg/opt/vmware/doc
    cp -a doc/* $startdir/pkg/opt/vmware/doc
    
    # install man
    mkdir -p $startdir/pkg/opt/vmware/man
    cp -a man/* $startdir/pkg/opt/vmware/man/
   
    #create env
    mkdir -p $startdir/pkg/etc/profile.d
    cp ../vmware.sh $startdir/pkg/etc/profile.d/
    chmod +x $startdir/pkg/etc/profile.d/vmware.sh
    mkdir -p $startdir/pkg/etc/rc.d
    cp ../mkvmdev $startdir/pkg/etc/rc.d/
    chmod +x $startdir/pkg/etc/rc.d/mkvmdev
    mkdir -p $startdir/pkg/etc/udev/rules.d
    cp ../00-vmware.rules $startdir/pkg/etc/udev/rules.d/

    
    mkdir -p $startdir/pkg/etc/vmware
    cp -a etc/* $startdir/pkg/etc/vmware/

    mkdir $startdir/pkg/etc/vmware/init.d
    for a in `seq 0 6`; do mkdir $startdir/pkg/etc/vmware/init.d/rc$a.d; done
    cp -a installer/services.sh  $startdir/pkg/etc/vmware/init.d/vmware || return 1
    
    
    # adding answers to /etc/vmware/locations
    echo "answer BINDIR /opt/vmware/bin" >> $startdir/pkg/etc/vmware/locations
    echo "answer LIBDIR /opt/vmware/lib" >> $startdir/pkg/etc/vmware/locations
    echo "answer MANDIR /opt/vmware/man" >> $startdir/pkg/etc/vmware/locations
    echo "answer DOCDIR /opt/vmware/doc" >> $startdir/pkg/etc/vmware/locations
    echo "answer RUN_CONFIGURATOR no" >> $startdir/pkg/etc/vmware/locations
    echo "answer INITDIR /etc/vmware/init.d" >> $startdir/pkg/etc/vmware/locations
    echo "answer INITSCRIPTSDIR /etc/vmware/init.d" >> $startdir/pkg/etc/vmware/locations


    # patch vmware daemon
    cd  $startdir/pkg/etc/vmware/init.d
    patch -p0 < $startdir/src/vmware-daemon.patch || return 1

   # make symlink for vmware
   mkdir -p $startdir/pkg/usr/bin
   cd $startdir/pkg/usr/bin
   ln -s ./opt/vmware/bin/vmware vmware

}

And the files you need :
vmware.install :

pre_install() {
  /bin/true
}
post_install() {
    d=`echo ${D} | wc -c`
    for x in `find ${D}/opt/vmware ${D}/etc/vmware` ; do
        x="`echo ${x} | cut -c ${d}-`"
        if [ -d ${D}/${x} ] ; then
            echo "directory ${x}" >> ${D}/etc/vmware/locations
        else
            echo -n "file ${x}" >> ${D}/etc/vmware/locations
            if [ "${x}" == "/etc/vmware/locations" ] ; then
                echo "" >> ${D}/etc/vmware/locations
            elif [ "${x}" == "/etc/vmware/not_configured" ] ; then
                echo "" >> ${D}/etc/vmware/locations
            else
                echo -n " " >> ${D}/etc/vmware/locations
                #perl -e "@a = stat('${D}${x}'); print $a[9]" >> ${D}/etc/vmware/locations
                find ${D}${x} -printf %T@ >> ${D}/etc/vmware/locations
                echo "" >> ${D}/etc/vmware/locations
            fi
        fi
    done

    echo "You need to run /opt/vmware/bin/vmware-config.pl to complete the install."
  /bin/true
}

pre_upgrade() {
  /bin/true
}

post_upgrade() {
  /bin/true
}

pre_remove() {
  /bin/true
}

post_remove() {
  /bin/true
}

op=$1
shift
$op $*

00-vmware.rules

# tty devices
KERNEL="tty[0-9]*", NAME="vc/%n", SYMLINK="%k"

# floppy devices
KERNEL="fd[0-9]*", NAME="floppy/%n" , SYMLINK="fd%n"

vmware-daemon.patch

--- vmware-orig    2005-02-07 08:17:16.000000000 +0100
+++ vmware    2005-02-07 08:19:27.000000000 +0100
@@ -343,14 +343,14 @@
 #
 countVMs() {
     # Beware of module dependancies here. An exact match is important
-    /sbin/lsmod | awk 'BEGIN {n = 0;} {if ($1 == "'"$driver"'") n = $3;} END {print n;}'
+    /bin/lsmod | awk 'BEGIN {n = 0;} {if ($1 == "'"$driver"'") n = $3;} END {print n;}'
 }
 
 # Is a given module loaded?
 isLoaded() {
   local module="$1"
 
-  /sbin/lsmod | awk 'BEGIN {n = "no";} {if ($1 == "'"$module"'") n = "yes";} END {print n;}'
+  /bin/lsmod | awk 'BEGIN {n = "no";} {if ($1 == "'"$module"'") n = "yes";} END {print n;}'
 }
 
 # Check if there is an IP route for a given subnet via a given interface

mkvmdev

#!/bin/sh

. /etc/rc.conf
. /etc/rc.d/functions

case "$1" in
     start)
     stat_busy "Creating /dev entries for vmware and start"
     mknod /dev/vmnet0 c 119 0
     mknod /dev/vmnet1 c 119 1
     mknod /dev/vmnet2 c 119 2
     mknod /dev/vmnet3 c 119 3
     mknod /dev/vmnet4 c 119 4
     mknod /dev/vmnet5 c 119 5
     mknod /dev/vmnet6 c 119 6
     mknod /dev/vmnet7 c 119 7
     mknod /dev/vmnet8 c 119 8
     mknod /dev/vmnet9 c 119 9
     chmod 0600 /dev/vmnet0
     chmod 0600 /dev/vmnet1
     chmod 0600 /dev/vmnet2
     chmod 0600 /dev/vmnet3
     chmod 0600 /dev/vmnet4
     chmod 0600 /dev/vmnet5
     chmod 0600 /dev/vmnet6
     chmod 0600 /dev/vmnet7
     chmod 0600 /dev/vmnet8
     chmod 0600 /dev/vmnet9
     mknod /dev/parport0 c 99 0
     mknod /dev/parport1 c 99 1
     mknod /dev/parport2 c 99 2
     mknod /dev/parport3 c 99 3
     chmod 0600 /dev/parport0
     chmod 0600 /dev/parport1
     chmod 0600 /dev/parport2
     chmod 0600 /dev/parport3
     mknod /dev/vmmon c 10 165
     chmod 0660 /dev/vmmon
     /etc/vmware/init.d/vmware start
     ;;

     stop)
     stat_busy "Removing /dev entries and stop vmware"
     /etc/vmware/init.d/vmware stop
     rm /dev/vmnet0
     rm /dev/vmnet1
     rm /dev/vmnet2
     rm /dev/vmnet3
     rm /dev/vmnet4
     rm /dev/vmnet5
     rm /dev/vmnet6
     rm /dev/vmnet7
     rm /dev/vmnet8
     rm /dev/vmnet9
     rm /dev/parport0
     rm /dev/parport1
     rm /dev/parport2
     rm /dev/parport3
     ;;

     restart)
     $0 stop
     $0 start
     ;;

     *)
     echo "usage: $0 {start|stop|restart}"

esac
exit 0

vmware.sh

export PATH=$PATH:/opt/vmware/bin
export MANPATH=$MANPATH:/opt/vmware/man

Offline

#2 2005-02-08 15:21:08

Remenic
Member
Registered: 2005-02-03
Posts: 11

Re: [PKGBUILD] vmware 4.5.2 build 8848

Are you sure there's a problem with adding download URLs to pacman for VMWare? It's not like you need to grab it from an illegal source or anything!

I mean, just look at portage. I haven't head any complains from the VMWare company regarding gentoo's VMWare packages. Remember, you still need a key to get it working.

Anyways, having to fetch it manually is an unnecessary pain the ass wink

But, still I'm going to try your package!

Offline

#3 2005-02-08 15:48:24

Remenic
Member
Registered: 2005-02-03
Posts: 11

Re: [PKGBUILD] vmware 4.5.2 build 8848

Well I just installed VMWare with your pkgbuild files. Installation was a breeze, and VMWare works flawless. One little issue however, the /usr/bin/vmware symlink links to /opt/bin/vmware. That should have been /opt/vmware/bin/vmware.

Other than that, it's perfect! Thank you very much.

Offline

#4 2005-02-08 16:55:39

benoitc
Member
Registered: 2004-11-11
Posts: 62
Website

Re: [PKGBUILD] vmware 4.5.2 build 8848

ok, thanks for the bug I will fix it. For the license I don't know exactly. Since you have to accept EULA when you download vmware archive, I think it could be an issue. Anyone can confirm ?

Offline

#5 2005-02-08 19:58:33

Remenic
Member
Registered: 2005-02-03
Posts: 11

Re: [PKGBUILD] vmware 4.5.2 build 8848

You are right, that could be an issue. However, the license is shown again when you manually install VMWare.

I suggest that the package does the same, using a pre_install script. The user can then always decline the license and thereby abort the installation.

Offline

#6 2005-02-09 08:08:08

tx-cary
Member
From: China
Registered: 2004-12-13
Posts: 43

Re: [PKGBUILD] vmware 4.5.2 build 8848

patching file vmware
Hunk #1 FAILED at 343.
1 out of 1 hunk FAILED -- saving rejects to file vmware.rej
==> ERROR: Build Failed.  Aborting...


The repo for Chinese software、fonts and IM
[archcn]
Server = http://arch.ourlinux.net:81/archcn

Offline

#7 2005-02-09 08:51:11

benoitc
Member
Registered: 2004-11-11
Posts: 62
Website

Re: [PKGBUILD] vmware 4.5.2 build 8848

You have a problem when you copy-paste the patch. It should work.

Offline

#8 2005-02-09 09:25:23

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: [PKGBUILD] vmware 4.5.2 build 8848

Remenic wrote:

You are right, that could be an issue. However, the license is shown again when you manually install VMWare.

I recommend contacting vmware directly, and saving the email discussion for archive if possible. Generally, when dealing with software liscences, it is best to get it from the *cough* "horses mouth" so to speak. Most legal departments are pretty straightforward when you bring things like this to them, even more so if they support mulitple platforms.

I think it would be worthwhile having a nicely packaged vmware, and see no reason why it would be a problem. But, to be safe, always contact legal dep. when in doubt about such things. Better to find out before hand, then to go ahead and do it, and have $$ problems down the road...


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#9 2005-04-09 21:54:13

notz
Member
From: Graz, Austria
Registered: 2005-04-05
Posts: 23

Re: [PKGBUILD] vmware 4.5.2 build 8848

thank you, for the great PKGBUILD.

slightly modified it also works for vmware workstation 5.0.0 - vmware 5 rocks - near native speed

Offline

#10 2005-04-11 07:57:45

benoitc
Member
Registered: 2004-11-11
Posts: 62
Website

Re: [PKGBUILD] vmware 4.5.2 build 8848

If you want you could have the pkgbuild for vmware 5 here :
http://archlinuxfr.org/websvn/filedetai … rev=0&sc=0

Offline

#11 2005-04-11 08:59:37

notz
Member
From: Graz, Austria
Registered: 2005-04-05
Posts: 23

Re: [PKGBUILD] vmware 4.5.2 build 8848

the release version of vmware 5.0.0 is build 13124. in your PKGBUILD you use a rc version.

i think it's better to name /etc/rc.d script vmware than mkvmdev. it's more comfortable.

Offline

#12 2005-04-11 10:46:12

corky
Member
From: Norway
Registered: 2004-12-17
Posts: 76

Re: [PKGBUILD] vmware 4.5.2 build 8848

Thanks for your work on this, I've been to lazy to do for this for a while  smile

It built, installed and configured correctly and I can create virtual machines ok, but when I run a virtual machine it starts booting the cd and after about 10 secs it hardlocks the machine, I've tried several different cd's and os's but always with the same result.  ie. I can boot a linux cd, select the kernel I want, and as it starts up it freezes.

Any ideas would be greatly appreciated.

[solved] bloody dodgy hardware  :evil:


mov ah, 0
int 16h

Offline

#13 2005-05-08 01:58:50

pobudz
Member
From: scottsdale, az
Registered: 2005-05-03
Posts: 35
Website

Re: [PKGBUILD] vmware 4.5.2 build 8848

I've been fighting with this for a while now, I've finally got this far but when I run makepkg -c i get this:

==> Making package: vmware-workstation  (Sun May  8 02:04:51 UTC 2005)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Found VMware-workstation-4.5.2-8848.tar.gz in build dir
==>     Using local copy of vmware-any-any-update89.tar.gz
==>     Found 00-vmware.rules in build dir
==>     Found mkvmdev in build dir
==>     Found vmware.sh in build dir
==>     Found vmware-daemon.patch in build dir
==> WARNING: MD5sums are missing or incomplete.  Cannot verify source integrity.
==> Extracting Sources...
==>     tar --use-compress-program=gzip -xf VMware-workstation-4.5.2-8848.tar.gz
==>     tar --use-compress-program=gzip -xf vmware-any-any-update89.tar.gz
==> Removing existing pkg/ directory...
==> Starting build()...
vmware-any-any-update89/
vmware-any-any-update89/services.sh
vmware-any-any-update89/runme.pl
vmware-any-any-update89/vmmon.tar
vmware-any-any-update89/update
vmware-any-any-update89/update.c
vmware-any-any-update89/vmnet.tar
Updating ../bin/vmnet-bridge ... Unknown version
Sorry, there is no binary patch available for your version of ../bin/vmnet-bridge.
==> ERROR: Build Failed.  Aborting...

EDIT:

I commented out the update lines and everything went smoothly. I did pacman -A blah.blah.blah.plg.tar.gz and im running vmware-config.pl... and it went smoothly. The only thing I could see is that loading NAT failed.

and... well shit! back to square one. I get this when I run /opt/vmware/bin/vmware:

VMware is installed, but it has not been (correctly) configured for your running kernel. To (re)configure it, your system administrator must find and run vmware-config.pl. For more information please read the INSTALL file.

but that makes no sense since I JUST ran it.'

[root@xereve vmware]# uname -r
2.6.11.7-ARCH
[root@xereve vmware]# ls -l /usr/src/
total 4
lrwxrwxrwx   1 root root   20 2005-05-05 22:01 linux -> linux-2.6.11.7-ARCH/
drwxr-xr-x  15 root root 4096 2005-05-05 01:31 linux-2.6.11.7-ARCH
[root@xereve vmware]# ls -l /lib/modules/
total 4
drwxr-xr-x  4 root root 4096 2005-05-07 23:13 2.6.11.7-ARCH


If its out there, I'll sniff it

http://www.wifiscan.net/

Offline

#14 2005-06-09 22:21:56

johnisevil
Member
From: Hamilton, ON Canada
Registered: 2003-08-07
Posts: 221
Website

Re: [PKGBUILD] vmware 4.5.2 build 8848

patching file vmware
Hunk #1 FAILED at 343.
1 out of 1 hunk FAILED -- saving rejects to file vmware.rej
==> ERROR: Build Failed. Aborting...

I get this exact same error.  Recopying and repasting it does absolutely nothing.

Offline

#15 2005-06-10 18:48:17

cyberphiliac
Member
From: Golgafrincham
Registered: 2004-08-20
Posts: 9

Re: [PKGBUILD] vmware 4.5.2 build 8848

johnisevil said:
I get this exact same error. Recopying and repasting it does absolutely nothing.

What browser are you using? I get the same error whenever I cut & paste from Konqueror. Cutting & pasting from Firefox works, though. I get the following message (makepkg continues & completes successfully):

patching file vmware
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 343 with fuzz 1.

Offline

#16 2005-06-26 14:54:41

mic64
Member
Registered: 2005-03-03
Posts: 173

Re: [PKGBUILD] vmware 4.5.2 build 8848

Hi

could someone post the PKGBUILD for vmware 5.
I tried to edit the above one, but with no luck.

thanks
mic

Offline

#17 2005-07-02 15:50:08

mic64
Member
Registered: 2005-03-03
Posts: 173

Re: [PKGBUILD] vmware 4.5.2 build 8848

Hi

I tried now to install the 8848 version. But after running the condif.pl I get always thi:

cc1plus: Warnung: Kommandozeilenoption "-Wstrict-prototypes" ist gültig für C/ObjC, aber nicht für C++
cc1plus: Warnung: Kommandozeilenoption "-Wdeclaration-after-statement" ist gültig für C/ObjC, aber nicht für C++
cc1plus: Warnung: Kommandozeilenoption "-Wstrict-prototypes" ist gültig für C/ObjC, aber nicht für C++
cc1plus: Warnung: Kommandozeilenoption "-ffreestanding" ist gültig für C/ObjC, aber nicht für C++
  CC [M]  /tmp/vmware-config11/vmmon-only/common/vmx86.o
  CC [M]  /tmp/vmware-config11/vmmon-only/vmcore/compat.o
  CC [M]  /tmp/vmware-config11/vmmon-only/vmcore/moduleloop.o
  LD [M]  /tmp/vmware-config11/vmmon-only/vmmon.o
  Building modules, stage 2.
  MODPOST
  CC      /tmp/vmware-config11/vmmon-only/vmmon.mod.o
  LD [M]  /tmp/vmware-config11/vmmon-only/vmmon.ko
make[1]: Leaving directory `/usr/src/linux-2.6.11.10-ARCH'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config11/vmmon-only'
Unable to make a vmmon module that can be loaded in the running kernel:
insmod: error inserting '/tmp/vmware-config11/vmmon.o': -1 Invalid module formatThere is probably a slight difference in the kernel configuration between the
set of C header files you specified and your running kernel.  You may want to
rebuild a kernel based on that directory, or specify another directory.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference … linux.html".

Execution aborted.


any idea?

mic

Offline

#18 2005-07-02 18:23:55

scarecrow
Member
From: Greece
Registered: 2004-11-18
Posts: 715

Re: [PKGBUILD] vmware 4.5.2 build 8848

For 8848 or any 4.X VMware version and any kernel newer to 2.6.9, you need the latest Vmware "any-any" patch from Petr (moderator at Vmware forums).
For version 5.X the any-any patch is not needed, but you have to configure the virtual network manually on Arch (or at least I had to do so) and not use the wizard.


Microshaft delenda est

Offline

#19 2005-07-02 20:40:37

mic64
Member
Registered: 2005-03-03
Posts: 173

Re: [PKGBUILD] vmware 4.5.2 build 8848

hmm I applied the any-any patch, but it didn´t help. same message.

mic

Offline

#20 2005-07-03 10:45:57

scarecrow
Member
From: Greece
Registered: 2004-11-18
Posts: 715

Re: [PKGBUILD] vmware 4.5.2 build 8848

Did you follow the wiki instructions prior to trying the installation?


Microshaft delenda est

Offline

#21 2005-07-03 17:47:30

mic64
Member
Registered: 2005-03-03
Posts: 173

Re: [PKGBUILD] vmware 4.5.2 build 8848

yes I also followed the wiki and all suggestions here in the forum, but no luck.
always the same message.

mic64

Offline

#22 2005-07-03 19:31:02

mic64
Member
Registered: 2005-03-03
Posts: 173

Re: [PKGBUILD] vmware 4.5.2 build 8848

ok..finally it build the modules, run the config.pl, but
still can´t start vmware. It always tells me to run it again.

Everything is the same as mentioned in the wiki.

holy crap..never spend so much time to get a program running

Update: ..finally I got vmware running. Just need to find cd with windows on it.

mic

Offline

#23 2005-08-16 03:15:46

oggb4mp3
Member
Registered: 2005-06-17
Posts: 77

Re: [PKGBUILD] vmware 4.5.2 build 8848

I know this is basic, but I got so into the habit of making packages as user, that it tripped me up.  This PKGBUILD must be run as root user, otherwise vmware will not configure properly.

Offline

#24 2005-09-11 12:49:56

sven
Member
Registered: 2005-02-01
Posts: 311

Re: [PKGBUILD] vmware 4.5.2 build 8848

At first I tried to follow the wiki and set up v. 5.0 and had no luck. But then tried 4.5.2 with the PKGBUILD and it worked perfectly. Only had to restart and run the vmware-configure.pl from shell. I also changed any-to-any patch version from 89 to 93.

Offline

#25 2005-09-11 13:48:52

Lowe
Member
Registered: 2005-07-11
Posts: 89

Re: [PKGBUILD] vmware 4.5.2 build 8848

4.5.2 just crashes when I click new virtual machine.

Offline

Board footer

Powered by FluxBB