Skip to content

MarsBox.com

Home Search Site Map Contact Us
You are here: Home Blog Howtos How to Install VMware Tools on Debian 3.1
How to Install VMware Tools on Debian 3.1 Print
Monday, 30 October 2006 14:28

UbuntuThis document provides basic instructions on installing the VMware Tools on a base Debian 3.1 Sarge installation (no desktop). For my install I used Debian 3.1 r3 base installation (no packages) and VMWare Workstation 5.5.

Host OS: Windows XP SP2
VMware Workstation: 5.5.2 build-29772
Guest OS: Debian 3.1 r3 (No Desktop)

 

Requirements:

  • A Debian 3.1 (Sarge) installation inside VMWare.
  • A compiler (usually installed by default). Look for 'usr/bin/gcc'. If you don't have it, you can 'apt-get install gcc'.

How To:

uname -r

uname -r give your the kernel release. Replace the '2.6.8-2-386' below with your kernel release you got above.

apt-get install kernel-headers-2-6.8-2-386

On the menu bar in VMWare go to VM / Install VMWare Tools. Nothing will happen, but now the image can be mounted.

mount /media/cdrom
cp VMwareTools-5.5.2-29772.tar.gz /root
cd /root
tar xzf VMwareTools-5.5.2-29772.tar.gz
cd vmware-tools-distrib/
./vmware-install.pl

Just press 'Enter' at each prompt to accept the defaults and you will have VMWare Tools installed and working with Debian 3.1.

 

Complete screen log of the installation:

sarge:~# uname -r

   2.6.8-2-386

sarge:~# apt-get install kernel-headers-2.6.8-2-386

   The following extra packages will be installed:
   kernel-headers-2.6.8-2 kernel-kbuild-2.6-3
   The following NEW packages will be installed:
   kernel-headers-2.6.8-2 kernel-headers-2.6.8-2-386 kernel-kbuild-2.6-3
   0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
   Need to get 0B/3397kB of archives.
   After unpacking 42.8MB of additional disk space will be used.
   Do you want to continue? [Y/n] y

   Selecting previously deselected package kernel-headers-2.6.8-2.
   (Reading database ... 21271 files and directories currently installed.)
   Unpacking kernel-headers-2.6.8-2 (from .../kernel-headers-2.6.8-2_2.6.8-16sarge1_i386.deb) ...

   Selecting previously deselected package kernel-headers-2.6.8-2-386.
   Unpacking kernel-headers-2.6.8-2-386 (from .../kernel-headers-2.6.8-2-386_2.6.8-16sarge1_i386.deb) ...
   Setting up kernel-kbuild-2.6-3 (2.6.8-2) ...
   Setting up kernel-headers-2.6.8-2 (2.6.8-16sarge1) ...
   Setting up kernel-headers-2.6.8-2-386 (2.6.8-16sarge1) ...

Go to VM / Install VMWare Tools. Nothing will happen but now the VMWare Tools CDROM image can be mounted.

sarge:~# mount /cdr/media/cdrom

sarge:~# cd /media/cdrom

sarge:/media/cdrom# cp VMwareTools-5.5.2-29772.tar.gz /root

sarge:/media/cdrom# cd /root

sarge:~# tar xzf VMwareTools-5.5.2-29772.tar.gz

sarge:~# cd vmware-tools-distrib/

sarge:~/vmware-tools-distrib# ./vmware-install.pl

   Creating a new installer database using the tar3 format.
   Installing the content of the package.
   In which directory do you want to install the binary files?
   [/usr/bin] <Enter>

   What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
   [/etc] <Enter>

   What is the directory that contains the init scripts?
   [/etc/init.d] <Enter>

   In which directory do you want to install the daemon files?
   [/usr/sbin] <Enter> In which directory do you want to install the library files?
   [/usr/lib/vmware-tools] <Enter>

   The path "/usr/lib/vmware-tools" does not exist currently. This program is
   going to create it, including needed parent directories. Is this what you want?
   [yes] <Enter>

   In which directory do you want to install the documentation files?
   [/usr/share/doc/vmware-tools] <Enter>

   The path "/usr/share/doc/vmware-tools" does not exist currently. This program
   is going to create it, including needed parent directories. Is this what you
   want? [yes] <Enter>

   The installation of VMware Tools 5.5.2 build-29772 for Linux completed
   successfully. You can decide to remove this software from your system at any
   time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl". <Enter>

   Before running VMware Tools for the first time, you need to configure it by
   invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
   this program to invoke the command for you now? [yes] <Enter>


   Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon: done
   Trying to find a suitable vmhgfs module for your running kernel.

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

   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.8-2-386/build/include] <Enter>

   Extracting the sources of the vmhgfs module.

   Building the vmhgfs module.

   Using 2.6.x kernel build system.
   make: Entering directory `/tmp/vmware-config0/vmhgfs-only'
   make -C /lib/modules/2.6.8-2-386/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
   make[1]: Entering directory `/usr/src/kernel-headers-2.6.8-2-386'
   CC [M] /tmp/vmware-config0/vmhgfs-only/cpName.o
   CC [M] /tmp/vmware-config0/vmhgfs-only/cpNameLinux.o
   CC [M] /tmp/vmware-config0/vmhgfs-only/dev.o
   CC [M] /tmp/vmware-config0/vmhgfs-only/driver.o
   CC [M] /tmp/vmware-config0/vmhgfs-only/hgfsUtil.o
   CC [M] /tmp/vmware-config0/vmhgfs-only/main.o
   CC [M] /tmp/vmware-config0/vmhgfs-only/staticEscape.o
   LD [M] /tmp/vmware-config0/vmhgfs-only/vmhgfs.o
   Building modules, stage 2.
   MODPOST
   CC /tmp/vmware-config0/vmhgfs-only/vmhgfs.mod.o
   LD [M] /tmp/vmware-config0/vmhgfs-only/vmhgfs.ko
   make[1]: Leaving directory `/usr/src/kernel-headers-2.6.8-2-386'
   cp -f vmhgfs.ko ./../vmhgfs.o
   make: Leaving directory `/tmp/vmware-config0/vmhgfs-only'
   The module loads perfectly in the running kernel.

   pcnet32 25864 0
   Unloading pcnet32 module

   Extracting the sources of the vmxnet module.

   Building the vmxnet module.
  
   Using 2.6.x kernel build system.
   make: Entering directory `/tmp/vmware-config0/vmxnet-only'
   make -C /lib/modules/2.6.8-2-386/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
   make[1]: Entering directory `/usr/src/kernel-headers-2.6.8-2-386'
   CC [M] /tmp/vmware-config0/vmxnet-only/vmxnet.o
   Building modules, stage 2.
   MODPOST
   CC /tmp/vmware-config0/vmxnet-only/vmxnet.mod.o
   LD [M] /tmp/vmware-config0/vmxnet-only/vmxnet.ko
   make[1]: Leaving directory `/usr/src/kernel-headers-2.6.8-2-386'
   cp -f vmxnet.ko ./../vmxnet.o
   make: Leaving directory `/tmp/vmware-config0/vmxnet-only'
   The module loads perfectly in the running kernel.

   No X install found.

   Starting VMware Tools services in the virtual machine:
   Switching to guest configuration: done
   Guest filesystem driver: done
   DMA setup: done
   Guest operating system daemon: done

   The configuration of VMware Tools 5.5.2 build-29772 for Linux for this running
   kernel completed successfully.

   You must restart your X session before any mouse or graphics changes take
   effect.

   You can now run VMware Tools by invoking the following command:
   "/usr/bin/vmware-toolbox" during an XFree86 session.

   To use the vmxnet driver, restart networking using the following commands:
   /etc/init.d/networking stop
   rmmod pcnet32
   rmmod vmxnet
   depmod -a
   modprobe vmxnet
   /etc/init.d/networking start

   Enjoy,

   --the VMware team

 

Bookmark and Share

Comments (0)

Subscribe to this comment's feed

Write comment


busy
 
[+]
narrow screen wide screen Increase font size Decrease font size Default font size