Debian Tutorials

Debian Tutorials


Step by step tutorials showing you how to install and configure various applications and services on Debian based Linux distros.

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories


Installing VMware server 2.x on Debian lenny

Ástþór IPÁstþór IP

VMware Server can create, edit, and play virtual machines. It uses a client-server model, allowing remote access to virtual machines, at the cost of some graphical performance (and 3D support). In addition to the ability to run virtual machines created by other VMware products, it can also run virtual machines created by Microsoft Virtual PC.

1. Install required packages

apt-get install psmisc make gcc gcc-4.1 linux-headers-$(uname -r)

2. Download VMware server

Register at vmware.com, download the latest VMware server binary and upload to your server.

3. Extract

tar zxvf VMware-server-2.x.tar.gz

Replace the filename with the downloaded filename.

4. Use gcc 4.1 instead of the default version: 4.3

Lenny is configured to use gcc 4.3 but WMware server requires gcc 4.1. Temporarily use 4.1 while configuring VMware server:

ln -sf /usr/bin/gcc-4.1 /usr/bin/gcc

5. Install and configure VMware server

cd vmware-server-distrib
./vmware-install.pl

You can accept the defaults for all questions in the installer and configuration tool but read carefully to make sure they fit your requirements.

6. Change the default gcc version

ln -sf /usr/bin/gcc-4.3 /usr/bin/gcc

7. Installation complete

You can now access the web interface by navigating to http://your-server:8222 or https://your-server:8333

Comments 2
  • Denis
    Posted on

    Denis Denis

    Author

    Hi, i trying to install Vmware server on debian step by step your guide and after accepting licence agreement i got the errors bellow.

    Do you accept? (yes/no) y

    Thank you.

    None of the pre-built vmmon modules for VMware Server is suitable for your
    running kernel. Do you want this program to try to build the vmmon module for
    your system (you need to have a C compiler installed on your system)? [yes]

    Using compiler “/usr/bin/gcc”. Use environment variable CC to override.

    What is the location of the directory of C header files that match your running
    kernel? [/lib/modules/2.6.32-5-amd64/build/include]

    Extracting the sources of the vmmon module.

    Building the vmmon module.

    Using 2.6.x kernel build system.
    make: Entering directory `/tmp/vmware-config1/vmmon-only’
    make -C /lib/modules/2.6.32-5-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.32-5-amd64′
    CC [M] /tmp/vmware-config1/vmmon-only/linux/driver.o
    In file included from /tmp/vmware-config1/vmmon-only/linux/driver.c:31:
    /tmp/vmware-config1/vmmon-only/./include/compat_wait.h:78: error: conflicting types for ‘poll_initwait’
    /usr/src/linux-headers-2.6.32-5-common/include/linux/poll.h:70: error: previous declaration of ‘poll_initwait’ was here
    In file included from /tmp/vmware-config1/vmmon-only/./common/vmx86.h:32,
    from /tmp/vmware-config1/vmmon-only/linux/driver.h:29,
    from /tmp/vmware-config1/vmmon-only/linux/driver.c:101:
    /tmp/vmware-config1/vmmon-only/./include/x86msr.h:164:1: warning: “MSR_THERM2_CTL” redefined
    In file included from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr.h:4,
    from /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/processor.h:21,
    from /usr/src/linux-headers-2.6.32-5-common/include/linux/prefetch.h:14,
    from /usr/src/linux-headers-2.6.32-5-common/include/linux/list.h:6,
    from /usr/src/linux-headers-2.6.32-5-common/include/linux/module.h:9,
    from /tmp/vmware-config1/vmmon-only/./include/compat_module.h:27,
    from /tmp/vmware-config1/vmmon-only/linux/driver.c:26:
    /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/msr-index.h:230:1: warning: this is the location of the previous definition
    /tmp/vmware-config1/vmmon-only/linux/driver.c: In function ‘LinuxDriverSyncCallOnEachCPU’:
    /tmp/vmware-config1/vmmon-only/linux/driver.c:1423: error: too many arguments to function ‘smp_call_function’
    /tmp/vmware-config1/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’:
    /tmp/vmware-config1/vmmon-only/linux/driver.c:1987: error: ‘struct task_struct’ has no member named ‘euid’
    /tmp/vmware-config1/vmmon-only/linux/driver.c:1987: error: ‘struct task_struct’ has no member named ‘uid’
    /tmp/vmware-config1/vmmon-only/linux/driver.c:1988: error: ‘struct task_struct’ has no member named ‘fsuid’
    /tmp/vmware-config1/vmmon-only/linux/driver.c:1988: error: ‘struct task_struct’ has no member named ‘uid’
    /tmp/vmware-config1/vmmon-only/linux/driver.c:1989: error: ‘struct task_struct’ has no member named ‘egid’
    /tmp/vmware-config1/vmmon-only/linux/driver.c:1989: error: ‘struct task_struct’ has no member named ‘gid’
    /tmp/vmware-config1/vmmon-only/linux/driver.c:1990: error: ‘struct task_struct’ has no member named ‘fsgid’
    /tmp/vmware-config1/vmmon-only/linux/driver.c:1990: error: ‘struct task_struct’ has no member named ‘gid’
    /tmp/vmware-config1/vmmon-only/linux/driver.c:2007: error: too many arguments to function ‘smp_call_function’
    make[4]: *** [/tmp/vmware-config1/vmmon-only/linux/driver.o] Error 1
    make[3]: *** [_module_/tmp/vmware-config1/vmmon-only] Error 2
    make[2]: *** [sub-make] Error 2
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-amd64′
    make: *** [vmmon.ko] Error 2
    make: Leaving directory `/tmp/vmware-config1/vmmon-only’
    Unable to build the vmmon module.

    For more information on how to troubleshoot module-related problems, please
    visit our Web site at “http://www.vmware.com/go/unsup-linux-products” and
    “http://www.vmware.com/go/unsup-linux-tools”.
    Execution aborted.

    Versions:
    VMware-server-2.0.1-156745.x86_64.tar.gz
    Linux debian 2.6.32-5-amd64

    I am beginner in Linux, what’s wrong i do?
    Please help.


  • Jeremie
    Posted on

    Jeremie Jeremie

    Author

    Got same issue as Denis, did you find a proper fix?